Apache POI - Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to Apache POI. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Answer : D

Explanation

HWPF (Horrible Word Processor Format) - It is used to read and write doc extension files of MS-Word.

Answer : D

Explanation

HPBF (Horrible PuBlisher Format) - It is used to read and write MS-Publisher files.

Answer : D

Explanation

XSSFCell is a class under the org.apache.poi.xssf.usermodel package. It implements the Cell interface. It is a high-level representation of cells in the rows of a spreadsheet.

Q 4 - Which of the following type of cell represents number cell in Apache POI?

A - XSSFCell.CELL_TYPE_NUMERIC

B - XSSFCell.CELL_NUMERIC

C - XSSFCell.NUMERIC

D - None of the above.

Answer : A

Explanation

XSSFCell.CELL_TYPE_NUMERIC represents number cell in Apache POI.

Q 5 - Which of the following class is used to rotate a cell content in Apache POI?

A - XSSFStyle

B - XSSFCellStyle

C - Style

D - None of the above.

Answer : B

Explanation

XSSFCellStyle.setRotation() method is used to rotate a cell content in Apache POI.

Q 6 - Which of the following class is used to add a hyperlink to a cell in Apache POI?

A - XSSFHyperlink

B - XSSFLink

C - Link

D - None of the above.

Answer : A

Explanation

XSSFHyperlink class is used to add a hyperlink to a cell in Apache POI.

apache_poi_questions_answers.htm
Advertisements