Apache POI - Mock Test



This section presents you various set of Mock Tests related to Apache POI. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.

Questions and Answers

Apache POI Mock Test IV

Q 1 - 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 2 - 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.

Answer : A

Explanation

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

Answer : B

Explanation

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

Answer : A

Explanation

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

Answer : A

Explanation

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

Q 7 - Which of the following is a valid way to compute factorial in a formula cell?

A - cell.setCellValue("FACTOR(C2)")

B - cell.setCellValue("FACT(C2)")

C - cell.setCellValue("FACTORIAL(C2)")

D - None of the above.

Answer : B

Explanation

cell.setCellValue("FACT(C2)") method is used to compute factorial in a formula cell.

Q 8 - Which of the following is a valid way to compute square root in a formula cell?

A - cell.setCellValue("SQUARE_ROOT(C2)")

B - cell.setCellValue("SQUARE(C2)")

C - cell.setCellValue("SQRT(C2)")

D - None of the above.

Answer : C

Explanation

cell.setCellValue("SQRT(C2)") method is used to compute square root in a formula cell.

Q 9 - 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.

Answer Sheet

Question Number Answer Key
1 B
2 B
3 A
4 B
5 A
6 A
7 B
8 C
9 A
apache_poi_questions_answers.htm
Advertisements