Test: Java Fundamentals Final Exam: Previous Next

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

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 4
(Answer all questions in this section)
11.Which line of Java code will assign the value of the square root of 11 to a variable named a? Mark for Review
(1) Points
double a=sqrt(11);
double a=11^(1/2);
double a=Math.sqrt*11;
int a=Math.sqrt(11);
double a=Math.sqrt(11); (*)

Correct
12.What is the output of the following lines of code? Mark for Review
(1) Points
int j=7,k=5,m=8,result;
result=j/m*k;
System.out.println(result);
0 (*)
280
4.375
0.175

Correct

13.What will the method methodA print to the screen? Mark for Review
(1) Points

6
15
3
18 (*)

Incorrect. Refer to Section 4 Lesson 3.


14.The following defines an import keyword: Mark for Review
(1) Points
Precedes the name of the class.
Defines where this class lives relative to other classes, and provides a level of access control.
Provides the compiler information that identifies outside classes used within the current class. (*)

Correct

15.When importing another package into a class you must import only the package classes that will be called and Mark for Review
not the entire package. True or false? (1) Points
True
False (*)

Correct

Previous Page 3 of 10 Next Summary

1 dari 1 28/10/2016 21:39

You might also like