Vous êtes sur la page 1sur 2

http://ilearning.oracle.com/ilearn/en/assessment/jsp/test_player.

jsp

Test: Java Fundamentals Final Exam


Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.
Section 7
(Answer all questions in this section)
41.Which of the following creates a class named Diver with one constructor, and 2 instance variables maxDepth and Mark for Review
certified? (1) Points

(*)
Correct

42.What is wrong with the following class declaration? Mark for Review
(1) Points
class Account{
private int number;
private String name;
public Account;
}
The constructor method has no definition. (*)
Classes cannot include mixed data types.
Classes cannot include strings.
There is nothing wrong.

Correct

43.Which of the following creates a method that returns a boolean value? Mark for Review
(1) Points

1 dari 2 28/10/2016 21:48


http://ilearning.oracle.com/ilearn/en/assessment/jsp/test_player.jsp

(*)

None of the above.

Correct
44.The basic unit of encapsulation in Java is the primitive data type. True or false? Mark for Review
(1) Points
True
False (*)

Correct

45.You can create static classes as independent classes. True or false? Mark for Review
(1) Points
True
False (*)

Correct

Previous Page 9 of 10 Next Summary

2 dari 2 28/10/2016 21:48

Vous aimerez peut-être aussi