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 : A

Explanation

HSSF (Horrible Spreadsheet Format) - It is used to read and write xls format of MS-Excel files.

Answer : C

Explanation

HDGF (Horrible DiaGram Format) - It contains classes and methods for MS-Visio binary files.

Answer : D

Explanation

HSSFColor is a class under the org.apache.poi.hssf.util package. It provides different colors as nested classes. Usually these nested classes are represented by using their own indexes. It implements the Color interface.

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

A - XSSFCell.CELL_TYPE_ERROR

B - XSSFCell.CELL_ERROR

C - XSSFCell.ERROR

D - None of the above.

Answer : A

Explanation

XSSFCell.CELL_TYPE_ERROR represents error cell in Apache POI.

Q 5 - Which of the following type of cell represents text cell in Apache POI?

A - XSSFCell.CELL_TYPE_STRING

B - XSSFCell.CELL_STRING

C - XSSFCell.STRING

D - None of the above.

Answer : A

Explanation

XSSFCell.CELL_TYPE_STRING represents text cell in Apache POI.

Answer : B

Explanation

cell.setCellValue("POWER(C2:C3)") method is used to compute power in a formula cell.

apache_poi_questions_answers.htm
Advertisements