0% found this document useful (0 votes)
85 views1 page

Test: Java Fundamentals Final Exam: Previous Next

The document is a test summary for a Java Fundamentals Final Exam. It provides the questions, answers, and feedback for sections 4. The questions cover topics like using the Math class to calculate square roots, order of operations in expressions, method printing output, the purpose of import statements, and whether entire packages must be imported.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
85 views1 page

Test: Java Fundamentals Final Exam: Previous Next

The document is a test summary for a Java Fundamentals Final Exam. It provides the questions, answers, and feedback for sections 4. The questions cover topics like using the Math class to calculate square roots, order of operations in expressions, method printing output, the purpose of import statements, and whether entire packages must be imported.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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