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

XSSFSheet is a class which represents high level representation of excel spreadsheet. It is under org.apache.poi.hssf.usermodel package.

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.

Answer : D

Explanation

XSSFPrintSetup is a class under the org.apache.poi.xssf.usermodel package. It implements the PrintSetup interface. It is used to set print page size, area, options, and settings.

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

A - XSSFFont

B - XSSFCellFont

C - Font

D - None of the above.

Answer : A

Explanation

XSSFFont class is used to add a font to a 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