(
~ Facebook
+- ~
mApps
T D Student Sign In
D 2013-2015 Or~le Acader
X./
Smiley feat Pacha Ma
C ~ I D ilea rn ing.o racle.com/ilearn/enj learner/jsp/player.jsp?rco_id=l340353197&classroom_id=l361817065&scorm_a ttempt= l429282683005&sessionld= 6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guid e)Theme yo ur ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
0 ... & Creating Clasc-..es, Objects, and
0 ....
Passing Objects and O.oerloading
Outline
1. Which of the following defines a driver class?
D Understanding Recursion, Static
0 Understanding Recursion, Static
~lark
for Review
( 1) Points
~lark
for Review
( 1) Points
Correct
2. The following defines a package keyword:
0 ... & Understanding Recursion, Static
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.
Precedes the name of the class.
Understanding lnheitance: Slid~Jil"'
D Understanding lnhe1itance:
0.. Understanding lnhe1itance:
Correct
3. What symbols are required for a compiler to ignore a comment?
Mark for Review
( 1) Points
D Understanding Polymorphi-sm:
0 Understanding Polymorphi"Sm:
0 ....
II (*J
/*
*I
I*/
Unde"tanding Polymorphism:
0 ... & Understanding Polymorphi"Sm:
o....
Appendix A:. Self Study Guide \Vhars
0 ..0 Appendix A:. Self Study Guide \Vhat
Correct
4. A workspace is:
Mark for Review
( 1) Points
0 ..0 Appendix A:. Self Study Guide Speaki1~ l
0 ..0 Appendix A:. Self Study Guide lntrest!l
The physical location onto which you will store and save your files.
The location where all projects are developed and modified.
The location where you can have one or more stored perspectives.
All of the above. (* )
0 ..0 Appendix A:. Self Study Guide Work
f3
0 ..0 Appendix A:. Self Study Guide L.eaaer>O
0 ..0 Appendix A:. Self Study Guide Creati,j[
0 ..0 Appendix A:. Self Study Guide Creati,j[
Contains classes that define objects.
Contains a main method, a package, static methods, and classes that define objects.
None of the above.
O ..fJ Passing Objects and O.oerloading
o Contains a main method and other static methods. (* )
Passing Objects and O.oerloading
0.. Understanding Recursion, Static
Other bookmarks
(Answer all questions in this section)
D Passing Objects and Overloading
0 ....
LJ
Incorrect. Refer to Section 4 Lesson 1.
5. For eve1y opening curly brace { there does not need to be a closing curly brace} for the program to compile without error. True or False?
Mark for Review
( 1) Points
0 ..0 Appendix A:. Self Study Guide The
0 ..0 Appendix A:. Self Study Guide \'ilitter>ll
True
False(* )
0 ..0 Appendix A:. Self Study Guide lnt<,vi<ol
0 ..0 Appendix A:. Self Study Guide Searchi(l
0,.0 Appendix A:. Self Study Guide NelYIOoH
Page 1 of 10
Correct
I Next I I Summary I
.-
RO ""'
'
I" t;l
C )
18:14
17.04.2015
'
~ Facebook
+- ~
mApps
T D Student Sign In
D 2013-2015 Or~le Acader
X./
Smiley feat Pacha Ma
C ~ I D ilearning.o racle.com/ilearn/enj learner/jsp/player.jsp?rco_id=l340353197&classroom_id=l361817065&scorm_a ttempt= l429282683005&sessionld= 6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guide)Theme your ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
LJ
Outline
6. In Eclipse, when you run a Java Application, the results are displayed in a new window. True or False>
Passing Objects and O.oerloading
D Passing Objects and Overloading
True
False(* )
0 ....
Passing Objects and O.oerloading
O..fJ Passing Objects and O.oerloading
0.. Understanding Recursion, Static
0 ... & Understanding Recursion, Static
0
Understanding lnheitance: Slid~Jil"'
D Understanding lnhe1itance:
7 . A combination of views and editors are referred to as - - - - - - -
~lark for Review
(1) Points
A workspace
A physical location
A perspective (* )
All of the above
Correct
8. Examine the following code:
~lark for Review
0.. Understanding lnhe1itance:
D Understanding Polymorphi-sm:
0 Understanding Polymorphi'Sm:
0 ....
Unde"tanding Polymorphism:
0 ... & Understanding Polymorphism:
Incorrect. Refer to Section 4 Lesson 1.
D Understanding Recursion, Static
0 Understanding Recursion, Static
Mark for Review
(1) Points
0 ... & Creating Clasc-..es, Objects, and
0 ....
Other bookmarks
~s
/ *Th i s Java pr og ram
2
3
4
class Sect i onFourEx am{ public sta t ic vo i d main
( String args[] )
{int Xi i nt y = 4i i nt z = l Oi
System.out.print l n ( x ); }}
5
6
(1) Points
for t he Sect i on four exam*/
x = z % Yi
What is the value of variable x?
o....
Appendix A:. Self Study Guide \Vhars
0 ..0 Appendix A:. Self Study Guide What
0 ..0 Appendix A:. Self Study Guide Speaki1~ l
0 ..0 Appendix A:. Self Study Guide L.eaaer>O
0 ..0 Appendix A:. Self Study Guide Creati,j[
0 ..0 Appendix A:. Self Study Guide lntrest!l
0 ..0 Appendix A:. Self Study Guide Work
0 ..0 Appendix A:. Self Study Guide Creati,j[
0 ..0 Appendix A:. Self Study Guide The
0 ..0 Appendix A:. Self Study Guide Search:i(l
0 ..0 Appendix A:. Self Study Guide \'ilittel>ll
0 ..0 Appendix A:. Self Study Guide lnt<,vi<ol
0 ..0 Appendix A:. Self Study Guide NelYIOoH
2 (* )
2.5
6
14
Incorrect. Refer to Section 4 Lesson 3.
9. Which line of Java code properly calculates the area of a triangle using A= 1/ 2(b)(h) where band h are Java primitive integers?
~lark for Review
( 1) Points
double A= 1/ 2* b* h;
double A= 1/ 2bh;
double A=(double) 1/ (double)2* b*h; (* )
double A=(double)( 1/ 2)* b* h;
Incorrect. Refer to Section 4 Lesson 3.
10. Consider the following code snippet.
1
2
St ring [) mountains =
{"Ch i mbora zo","Ma tterho r n 11 ,"0l ympus","Evere st","Ki nab alu",
~lark for Review
( 1) Points
.-
RO ""'
'
I" t;l
C )
18:14
17.04.2015
'
~ Facebook
+- ~
mApps
T D Student Sign In
X./
D 2013-2015 Or~le Acader
Smiley feat Pacha Ma
C ~ I D ilearn ing .o racle .com/ilearn/enj learner/jsp/player.jsp?rco_id= l340353197&classroom_id = l361817065&scorm_a ttempt= l429282683005&sessionld= 6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guide)Theme yo ur ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
0 ... & Creating Clasc-..es, Objects, and
0 ....
Passing Objects and O.oerloading
D Passing Objects and Overloading
0 ....
Passing Objects and O.oerloading
for t he Sec t i on four exam/
2
3
4
class Sect i onFourEx am{ public sta t i c vo i d main
(String args[] )
{ i nt x; i nt y = 4; i nt z = 1 0 ; x = z % y;
System . out.print l n (x ) ; }}
5
6
What is the value of variable x?
O ..fJ Passing Objects and O.oerloading
D Understanding Recursion, Static
2 (* )
2.5
6
14
0 Understanding Recursion, Static
0.. Understanding Recursion, Static
0 ... & Understanding Recursion, Static
0
~s
/ *Th i s Java pr ogram
Understanding lnheitance: Slid~Jil"'
f)
D Understanding lnhe1itance:
Incorrect. Refer to Section 4 Lesson 3.
9. Which line of Java code properly calculates the area of a triangle using A=1/ 2(b)(h) where band h are Java primitive integers>
Mark for Review
(1) Points
0.. Understanding lnhe1itance:
double A=1/ 2* b* h;
double A=1/ 2bh;
double A=(double) 1/ (double)2* b* h; (* )
double A=(double)( 1/ 2)* b* h;
0 Understanding Polymorphi-sm:
0 Understanding Polymorphi-sm:
0 ....
Unde"tanding Polymorphism:
0 ... & Understanding Polymorphism:
o....
Other bookmarks
Outline
LJ
f)
Incorrect. Refer to Section 4 Lesson 3.
10. Consider the following code snippet.
Appendix A: Self Study Guide \Vhars
0 ..0 Appendix A: Self Study Guide What
0 ..0 Appendix A: Self Study Guide Speaki1~ l
0 ..0 Appendix A: Self Study Guide L.eaaer>O
St ring [) mountains =
2
3
4
{"Ch i mbora zo","Ma tterho r n","Ol ympus","Evere st","Ki na balu",
"Adriondac k",n Blue Ri dge","Zugspi tze", };
0 ..0 Appendix A: Self Study Guide lntrest!l
for Review
( 1) Points
for ( i nt i=O; i<mountains[1) . length( ); i++ )
System.out.print (mountains[ i[ .length()) ;
5
6
0 ..0 Appendix A: Self Study Guide Creati,j[
~lark
What is printed>
0 ..0 Appendix A: Self Study Guide Work
55555
87658
AtlanticPacificindianArcticSouthern
Code does not compile
ArrayindexDutofBoundsException is thrown (* )
0 ..0 Appendix A: Self Study Guide Creati,j[
0 ..0 Appendix A: Self Study Guide The
0 ..0 Appendix A: Self Study Guide Search:i(l
0 ..0 Appendix A: Self Study Guide \'ilittel>ll
0 ..0 Appendix A: Self Study Guide lnt<,vi<ol
0 ..0 Appendix A: Self Study Guide NelYIOoH
Previous
Correct
Page 2 of 10
I Next I I Summary I
.-
RO ""'
'
I" t;l
C )
18:14
17.04.2015
'
~ Facebook
+- ~
mApps
T D Student Sign In
D 2013-2015 Or~le Acader
X./
Smiley feat Pacha Ma
C ~ I D ilea rn ing .oracle.com/ilearn/enj learner/jsp/player.jsp?rco_id= l340353197&classroom_id = l361817065&scorm_a ttempt= l429282683005&sessionld= 6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guide)Theme your ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
0 ... & Creating Clasc-..es, Objects, and
0 ....
Passing Objects and O.oerloading
D Passing Objects and Overloading
0 ....
Passing Objects and O.oerloading
O ..fJ Passing Objects and O.oerloading
D Understanding Recursion, Static
0 Understanding Recursion, Static
0.. Understanding Recursion, Static
0 ... & Understanding Recursion, Static
0
Understanding lnheitance: Slid~Jil"'
D Understanding lnhe1itance:
0.. Understanding lnhe1itance:
LJ
Outline
0 Understanding Polymorphi"Sm:
0 ....
Unde"tanding Polymorphism:
0 ... & Understanding Polymorphi"Sm:
Appendix A:. Self Study Guide \Vhars
0 ..0 Appendix A:. Self Study Guide What
11. Given the code:
Mark for Review
(1) Points
String s = new String(" abc");
Which of the following statements will change the length of s to the largest length?
s.trim()
s.replace("a", "aa")
s.substring(2)
s.toUpperCase()
None of the above will change the length of s. (* )
f)
Incorrect. Refer to Section 4 Lesson 4.
Correct
13. What is printed by the following code segment?
1
for (i nt i=O; i<S; i++ )
3
4
5
s +="\\ ";
0 ..0 Appendix A:. Self Study Guide Work
0 ..0 Appendix A:. Self Study Guide Creati,j[
0 ..0 Appendix A:. Self Study Guide \'ilittel>ll
Syst em .out .print l n (s ) ;
\\\\
\\\\\\\\\\\\\\
\\
~
Correct
14. The following program prints "Not EQual". True or false?
Mark for Review
(1) Points
0 ..0 Appendix A:. Self Study Guide lnt<,vi<ol
0 ..0 Appendix A:. Self Study Guide NelYIOoH
for Review
(1) Points
\\\\\\\ (* )
0 ..0 Appendix A:. Self Study Guide The
0 ..0 Appendix A:. Self Study Guide Search:i(l
~lark
S t ring s = "\ \ \ \ ";
0 ..0 Appendix A:. Self Study Guide L.eaaer>O
0 ..0 Appendix A:. Self Study Guide lntrest!l
Mark for Review
(1) Points
String str3 = str1 - str2;
str1 + = str2; (* )
str1 >= str2
Str1 -= str2;
0 ..0 Appendix A:. Self Study Guide Speaki1~ l
0 ..0 Appendix A:. Self Study Guide Creati,j [
Section 4
(Answer all Questions in this section)
o....
Review your answers, feedback, and QUestion scores below. An asterisk (*) indicates a correct answer.
12. Suppose that str1 and str2 are two strings. Which of the statements or expressions are valid>
D Understanding Polymorphi-sm:
Other bookmarks
S t ring s = "a b cdef";
i f (s.charAt( 3) == 'd' )
.-
RO ""'
'
I" t;l
C )
18:15
17.04.2015
'
~ Facebook
+- ~
mApps
T D Student Sign In
D 2013-2015 Or~le Acader
X./
Smiley feat Pacha Ma
C ~ I D ilearn ing.oracle.com/ilearn/enj learner/jsp/player.jsp?rco_id=l340353197&classroom_id =l361817065&scorm_attempt= l429282683005&sessionld= 6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guide)Theme your ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
Passing Objects and O.oerloading
D Passing Objects and Overloading
0 ....
Passing Objects and O.oerloading
1
2
3
4
D Understanding Recursion, Static
0 Understanding Recursion, Static
0.. Understanding Recursion, Static
System.out.print l n (s);
\\\\
Understanding lnheitance: Slid~Jil"'
\\\\\\\ (* )
0.. Understanding lnhe1itance:
\\
~
Unde"tanding Polymorphism:
0 ..0 Appendix A:. Self Study Guide \Vhat
0 ..0 Appendix A:. Self Study Guide Speaki1~ l
System.out.print l n ( "Equal n);
else
System.out.print l n ( "Not Equal n ) ;
True
False(* )
0 ..0 Appendix A:. Self Study Guide L.eaaer>O
0 ..0 Appendix A:. Self Study Guide Creati,j[
0 ..0 Appendix A:. Self Study Guide Creati,j[
i f ( s.ch arAt ( 3 ) ==' d')
3
4
5
6
Appendix A:. Self Study Guide \Vhars
Mark for Review
(1) Points
String s = "a b cdef";
0 ... & Understanding Polymorphi"Sm:
0 ..0 Appendix A:. Self Study Guide Work
Correct
14. The following program prints "Not Equal". True or false?
0 Understanding Polymorphi"Sm:
0 ..0 Appendix A:. Self Study Guide lntrest!l
Mark for Review
(1) Points
String s = "\ \ \ \ ";
for ( i nt i=O; i<S ; i++ )
s +="\ \ ";
\\\\\\\\\\\\\\
o....
Correct
D Understanding lnhe1itance:
0 ....
0 ... & Understanding Recursion, Static
D Understanding Polymorphi-sm:
Outline
13. What is printed by the following code segment>
O ..fJ Passing Objects and O.oerloading
Other bookmarks
str1 >= str2
Str1 -= str2;
0 ... & Creating Clasc-..es, Objects, and
0 ....
LJ
Incorrect. Refer to Section 4 Lesson 4.
Section 5
(Answer all questions in this section)
15. switch statements work on all input types including, but not limited to, int, char, and String. True or false>
Mark for Review
(1) Points
0 ..0 Appendix A:. Self Study Guide The
0 ..0 Appendix A:. Self Study Guide \'ilitter>ll
True
False(* )
0 ..0 Appendix A:. Self Study Guide lnt<,vi<ol
0 ..0 Appendix A:. Self Study Guide Searchi(l
0,.0 Appendix A:. Self Study Guide NelYIOoH
Prev i ou s
Correct
Page 3 of 10
I Next I I Summary I
.-
RO ""'
'
I" t;l
C )
18:15
17.04.2015
'
~ Facebook
+- ~
mApps
T D Student Sign In
D 2013-2015 Or~le Acader
X./
Smiley feat Pacha Ma
C ~ I D ilearning.oracle.com/ilearn/enj learner/jsp/player.jsp?rco_id=l340353197&classroom_id=l361817065&scorm_a ttempt= l429282683005&sessionld= 6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guide)Theme your ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
0 ... & Creating Clasc-..es, Objects, and
0 ....
Passing Objects and O.oerloading
D Passing Objects and Overloading
0 ....
Passing Objects and O.oerloading
LJ
Outline
16. Which of the following could be a reason to use a switch statement in a Java program?
Mark for Review
(1) Points
Because it allows the code to be run through until a ce1tain conditional statement is true.
Because it allows the program to run ce1tain segments of code and neglect to run others based on the input given. (* )
Because it terminates the current loop.
Because it allows the user to enter an input in the console screen and prints out a message that the user input was successfully read in.
0 Understanding Recursion, Static
0.. Understanding Recursion, Static
0 ... & Understanding Recursion, Static
D Understanding lnhe1itance:
0.. Understanding lnhe1itance:
o....
0 ..0 Appendix A:. Self Study Guide Speakir~ l
0 ..0 Appendix A:. Self Study Guide Work
0 ..0 Appendix A:. Self Study Guide Creati,j[
0 ..0 Appendix A:. Self Study Guide The
0 ..0 Appendix A:. Self Study Guide Search:i(l
0 ..0 Appendix A:. Self Study Guide \'ilitter>ll
0 ..0 Appendix A:. Self Study Guide lnt<,vi<ol
0 ..0 Appendix A:. Self Study Guide NelYIOoH
for Review
( 1) Points
~lark
for Review
( 1) Points
True
False (*)
0 ..0 Appendix A:. Self Study Guide What
0 ..0 Appendix A:. Self Study Guide lntrest!l
~lark
Correct
18. One advantage to using a while loop over a for loop is that a while loop always has a counter. True or false?
Appendix A:. Self Study Guide \Vhars
0 ..0 Appendix A:. Self Study Guide Creati,j [
for Review
( 1) Points
True
False (*)
Unde"tanding Polymorphism:
0 ..0 Appendix A:. Self Study Guide L.eaaer>O
~lark
if ((5. 1 > 4.3 && 6.2 < 8.4) && !(7.2 < 3.5 I I 1.2 == 2. 1 I I 2.2 != 2.25)) <
System.out.print("TRUE"); else
System.out.print("FALSE");
0 Understanding Polymorphi"Sm:
0 ... & Understanding Polymorphi"Sm:
Incorrect. Refer to Section 5 Lesson 1.
17. What will print if the following Java code is executed>
D Understanding Polymorphi-sm:
0 ....
Section 5
(Answer all Questions in this section)
D Understanding Recursion, Static
Understanding lnheitance: Slid~Jil"'
Review your answers, feedback, and QUestion scores below. An asterisk (*) indicates a correct answer.
O ..fJ Passing Objects and O.oerloading
Other bookmarks
Correct
19. How many times will the following loop be executed?
What is the value of x after the loop has finished>
What is the value of count after the loop has finished>
int count= 17;
int
x = 1;
while( count > x){
x* =3;
count-=3;
}
4;
3;
5;
5;
8; 27
27; 8 (* )
27; 8
30; 5
3; 9; 11
. ...
RO ""'
'
I" t;l
C )
18:15
17.04.2015
'
~ Facebook
+- ~
mApps
T D Student Sign In
D 2013-2015 Or~le Acader
X./
Smiley feat Pacha Ma
C ~ I D ilearning.o racle.com/ilearn/enj learner/jsp/player.jsp?rco_id=l340353197&classroom_id=l361817065&scorm_a ttempt= l429282683005&sessionld= 6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guide)Theme your ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
LJ
Other bookmarks
Outline
0 ... & Creating Clasc-..es, Objects, and
0 ....
True
False (*)
Passing Objects and O.oerloading
D Passing Objects and Overloading
0 ....
Passing Objects and O.oerloading
O..fJ Passing Objects and O.oerloading
Correct
18. One advantage to using a while loop over a for loop is that a while loop always has a counter. True or false?
Mark for Review
( 1) Points
D Understanding Recursion, Static
True
False(* )
0 Understanding Recursion, Static
0.. Understanding Recursion, Static
0 ... & Understanding Recursion, Static
0
Understanding lnheitance: Slid~Jil"'
D Understanding lnhe1itance:
19. How many times will the following loop be executed?
What is the value of x after the loop has finished>
What is the value of count after the loop has finished?
0.. Understanding lnhe1itance:
x*=3;
count-=3;
0 Understanding Polymorphi"Sm:
Unde"tanding Polymorphism:
0 ... & Understanding Polymorphi"Sm:
o....
Mark for Review
(1) Points
int count= 17;
int x = 1;
while( count > x){
D Understanding Polymorphi-sm:
0 ....
Correct
Appendix A:. Self Study Guide \Vhars
0 ..0 Appendix A:. Self Study Guide What
0 ..0 Appendix A:. Self Study Guide Speakir~ l
0 ..0 Appendix A:. Self Study Guide L.eaaer>O
4;
3;
5;
5;
3;
8; 27
27; 8 (* )
27; 8
30; 5
9; 11
Correct
20. What should replace the comment "//your answer here" in the code below if the code is meant to take no action when i o/o 2 is 0 (in other words when i is even)?
~lark
for(int i = 0; i < 10; i++){<br> if(i%2 == O)
//your answer here
else
k+=3;
}
0 ..0 Appendix A:. Self Study Guide Creati,j[
0 ..0 Appendix A:. Self Study Guide lntrest!l
0 ..0 Appendix A:. Self Study Guide Work
for Review
( 1) Points
0 ..0 Appendix A:. Self Study Guide Creati,j[
continue; (* )
break;
0 ..0 Appendix A:. Self Study Guide The
0 ..0 Appendix A:. Self Study Guide Search:i(l
return;
0 ..0 Appendix A:. Self Study Guide \'ilitter>ll
k+ =1;
0 ..0 Appendix A:. Self Study Guide lnt<,vi<ol
0 ..0 Appendix A:. Self Study Guide NelYIOoH
Previous
Correct
Page 4 of 10
I Next I I Summary I
.-
RO ""'
'
I" t;l
C )
18:15
17.04.2015
'
~ Facebook
+- ~
mApps
T D Student Sign In
D 2013-201S Or~le Acadeo-
X./
Don Baxterfeat. Smile
C ~ I D ilearning.oracle.com/ilearn/enj learner/jsp/player.jsp?rco_id=l340353197&classroom_id =l361817065&scorm_attempt= l429282683005&sessionld= 6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guid e)Theme your ... How To Build A Dec... LJ de cautat
lfr 20 132015 Oracle Academy English Java Fundamentals Student
0 ... & Creating Clasc-..es, Objects, and
0 ....
Passing Objects and O.oerloading
D Passing Objects and Overloading
0 ....
Passing Objects and O.oerloading
LJ
Outline
0 Understanding Recursion, Static
0.. Understanding Recursion, Static
0 ... & Understanding Recursion, Static
0
0.. Understanding lnhe1itance:
D Understanding Polymorphi-sm:
0 Understanding Polymorphi"Sm:
0 ....
Unde"tanding Polymorphism:
0 ... & Understanding Polymorphi"Sm:
o....
21. Big-0 Notation is used in Computer Science to describe the performance of Sorts and Searches on arrays. True or false?
Mark for Review
(1) Points
True(* )
False
~
Correct
22. Which of the following sorting algorithms utilizes a "divide and conQuer" techniQue to sort arrays with optimal speed>
~lark
for Review
(1) Points
~lark
for Review
( 1) Points
~lark
for Review
( 1) Points
SeQuential Search
Merge So1t (* )
Selection So1t
Binary Search
All of the above
0 ..0 Appendix A:. Self Study Guide Speakio~ l
0 ..0 Appendix A:. Self Study Guide L.eaaer>O
0 ..0 Appendix A:. Self Study Guide Creati,oj[
Incorrect. Refer to Section 6 Lesson 2.
23. Which of the following is the correct lexicographical order for the conents of the int array?
so, 28, 29, 3, 71, 22}
{71, 1, 3, 28,29, so, 22, 83, 1, 17}
{83, 71, so, 29, 28, 22, 17, 3, 1, 1}
{1, 1, 17, 22, 28, 29, 3, so, 71, 83}
{17, 1, 1, 83,
Appendix A:. Self Study Guide \Vhars
0 ..0 Appendix A:. Self Study Guide What
{ 1, 2, 7, 0, 9, 5, 6, 4, 8, 3}
{1, 1, 3, 17, 22, 28, 29, so, 71, 83} (*)
Correct
24. Of the options below, what is the fastest run-time?
0 ..0 Appendix A:. Self Study Guide lntrest!l
0 ..0 Appendix A:. Self Study Guide Work
0 ..0 Appendix A:. Self Study Guide Creati,oj[
nA2
0 ..0 Appendix A:. Self Study Guide The
lg(n) (* )
n* lg(n)
0 ..0 Appendix A:. Self Study Guide Search1i(l
0 ..0 Appendix A:. Self Study Guide Woitter>ll
0 ..0 Appendix A:. Self Study Guide lnt<,vi<ol
0 ..0 Appendix A:. Self Study Guide NelYIOoH
Section 6
(Answer all Questions in this section)
Understanding lnheitance: Slid~JII"'
D Understanding lnhe1itance:
Review your answers, feedback, and QUestion scores below. An asterisk (* ) indicates a correct answer.
O ..fJ Passing Objects and O.oerloading
D Understanding Recursion, Static
Other bookmarks
Incorrect. Refer to Section 6 Lesson 2.
25. What is wrong with this code?
1
t r y{
i f ( x< O)
Mark for Review
( 1) Points
.-
RO ""'
'
I" t;J
C 1)
18:16
17.04.201S
'
W (} Facebook
+- ~
mApps
T Cl Student Sign In
J Cl 2013-201S Oracle Acader
D Don Baxter fea t. Smile ~ x
C ~ I Cl ilearning.oracle.com/ilearn/enj learner/jsp/player.jsp?rco_id=l340353197&classroom_id =l361817065&scorm_a ttempt= l429282683005&sessionld= 6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guide)Theme your ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
Passing Objects and O.oerloading
D Passing Objects and Overloading
0 ....
Passing Objects and O.oerloading
O..fJ Passing Objects and O.oerloading
0 ... & Understanding Recursion, Static
{ 1, 2, 7, 0, 9, 5, 6, 4, 8, 3}
{1, 1, 3, 17, 22, 28, 29, so, 71, 83} (* )
Understanding lnheitance: Slid~Jll"'
D Understanding lnhe1itance:
Correct
24. Of the options below, what is the fastest run-time?
D Understanding Polymorphi-sm:
Mark for Review
(1) Points
0 Understanding Polymorphi"Sm:
nA2
0 ....
lg(n) (* )
n* lg(n)
Unde"tanding Polymorphism:
0 ... & Understanding Polymorphi"Sm:
Appendix A: Self Study Guide \Vhars
Mark for Review
(1) Points
so, 28, 29, 3, 71, 22}
{71, 1, 3, 28,29, so, 22, 83, 1, 17}
{ 83, 71, so, 29, 28, 22, 17, 3, 1, 1}
{1, 1, 17, 22, 28, 29, 3, so, 71, 83}
0.. Understanding Recursion, Static
o....
Incorrect. Refer to Section 6 Lesson 2.
{17, 1, 1, 83,
0 Understanding Recursion, Static
0.. Understanding lnhe1itance:
Outline
2 3. Which of the following is the correct lexicographical order for the conents of the int array?
D Understanding Recursion, Static
Other bookmarks
Merge So1t (*)
Selection So1t
Bina1y Search
All of the above
0 ... & Creating Clasc-..es, Objects, and
0 ....
LJ
Incorrect. Refer to Section 6 Lesson 2.
25. What is wrong with this code>
0 ..0 Appendix A: Self Study Guide What
0 ..0 Appendix A: Self Study Guide Speaki1~ l
2
3
4
0 ..0 Appendix A: Self Study Guide L.eaaer>O
0 ..0 Appendix A: Self Study Guide Creati, j[
5
6
7
0 ..0 Appendix A: Self Study Guide lntrest!l
0 ..0 Appendix A: Self Study Guide Work
0 ..0 Appendix A: Self Study Guide Creati, j[
Mark for Review
( 1) Points
t r y{
i f ( x < 0)
thr ow new Exception ( "Your a nswer 1. s nega t i ve");
catch {
System .out.print l n ( "Enter your v alue again.");
It is missing a semicolon.
It does not compile. (* )
It gives you an out of bounds exception.
There is nothing wrong with this code.
0 ..0 Appendix A: Self Study Guide The
0 ..0 Appendix A: Self Study Guide Search:i(l
0 ..0 Appendix A: Self Study Guide \'ilittel>ll
0 ..0 Appendix A: Self Study Guide lnt<,vi<ol
0 ..0 Appendix A: Self Study Guide NelYIOoH
Prev iou s
Incorrect. Refer to Section 6 Lesson 3.
Page 5 of 10
I Next I I Summary I
.-
RO """
'
I" t;J
C )
18:17
17.04.201S
'
W (} Facebook
+- ~
mApps
T Cl Student Sign In
J Cl 2013-2015 Oracle Acader
Don Baxter feat. Smile
C ~ I Cl ilearn ing.oracle .com/ilearn/enjlearner/jsp/player.jsp?rco_id= l340353197&classroom_id = l361817065&scorm_attempt=l429282683005&sessionld=6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guid e)Theme your ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
0 ... & Creating Clasc-..es, Objects, and
0 ....
Passing Objects and O.oerloading
D Passing Objects and Overloading
0 ....
Passing Objects and O.oerloading
O ..fJ Passing Objects and O.oerloading
D Understanding Recursion, Static
0 Understanding Recursion, Static
1
2
3
4
111
0.. Understanding lnhe1itance:
D Understanding Polymorphi-sm:
( 1) Points
1 1 1 (*)
001
0 10
100
0 Understanding Polymorphi"Sm:
Unde"tanding Polymorphism:
Incorrect. Refer to Section 6 Lesson 1.
27. What is the output of the following segment of code?
~lark for Review
Appendix A:. Self Study Guide \Vhars
0 ..0 Appendix A:. Self Study Guide \Vhat
0 ..0 Appendix A:. Self Study Guide Speaki1~ l
0 ..0 Appendix A:. Self Study Guide Work
0 ..0 Appendix A:. Self Study Guide Creati, j[
0 ..0 Appendix A:. Self Study Guide Creati, j[
0 ..0 Appendix A:. Self Study Guide lntrest!l
0 ..0 Appendix A:. Self Study Guide The
(1) Points
int num[)={ 9,8,7,6,5,4,3,2,1} ;
fo1~int i=O;i <9;i=i+3)
System.out.print(num[i]];
9630
963 (*)
987654321
97531
This code doesn't compile.
0 ..0 Appendix A:. Self Study Guide L.eaaer>O
Incorrect. Refer to Section 6 Lesson 1.
28. Which of the following declares and initializes a one dimensional array named words of size 3 so that all entries can be Strings>
~lark for Review
(1) Points
0 ..0 Appendix A:. Self Study Guide Searchi(l
0 ..0 Appendix A:. Self Study Guide \'ilitter>ll
0 ..0 Appendix A:. Self Study Guide lnt<,vi<ol
0 ..0 Appendix A:. Self Study Guide NelYIOoH
0 11
001
100
0 10
001
100
110
Understanding lnheitance: Slid~Jil"'
D Understanding lnhe1itance:
o....
~lark for Review
i nt ( ) [ ) t ab l e =new i nt [3] [3] ;
fo r ( i nt i=O; i <3; i++ )
fo r ( i nt j =O; j<3; j ++ )
i f ( j<=i )
t ab l e[ i ] [j ) = 1;
0 ... & Understanding Recursion, Static
0 ... & Understanding Polymorphi"Sm:
Outline
26. What will be the content of the a1ray variable table after executing the following code?
5
6
0 ....
Other bookmarks
Section 6
(Answer all questions in this section)
0.. Understanding Recursion, Static
LJ
String strings= new String[3];
String[) word={ "Dver","the","mountain"} ; (*)
String[) word=new String[3);
String[) words={ "Dracle","Academy"} ];
Incorrect. Refer to Section 6 Lesson 1.
.-
RO ""'
'
I" t;J
C )
18:17
17.04.2015
'
W (} Facebook
+- ~
mApps
X '
Cl
Student Sign In
J Cl 2013-2015 Oracle Acad er
Don Baxter feat. Smile
C ~ I Cl ilea rn ing.o racle.com/ilearn/enj learner/jsp/player.jsp?rco_id=l340353197&classroom_id =l361817065&scorm_a ttempt= l429282683005&sessionld= 6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guid e)Theme your ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
0 ... & Creating Clasc-..es, Objects, and
0 ....
D Understanding Recursion, Static
0 Understanding Recursion, Static
0.. Understanding Recursion, Static
f3
0 ... & Understanding Recursion, Static
Understanding lnheitance: Slid~Jll"'
Incorrect. Refer to Section 6 Lesson 1.
2 8. Which of the following declares and initializes a one dimensional array named words of size 3 so that all entries can be Strings>
Mark for Review
( 1) Points
D Understanding lnhe1itance:
D Understanding Polymorphi-sm:
String strings= new String[ 3);
String() word ={ "Over","the","mountain"} ; (* )
String() word =new String[ 3);
String[ ) words={ "Oracle","Academy"} );
0 Understanding Polymorphi"Sm:
f3
0.. Understanding lnhe1itance:
0 ....
Unde"tanding Polymorphism:
Incorrect. Refer to Section 6 Lesson 1.
29. Which of the following statements is not a valid array declaration?
Mark for Review
( 1) Points
0 ... & Understanding Polymorphi"Sm:
o....
9630
963 (* )
987654321
97531
This code doesn't compile.
O..fJ Passing Objects and O.oerloading
Mark for Review
( 1) Points
int num() ={ 9,8,7,6,5,4,3,2,1} ;
for(int i=O;i<9;i =i+3)
System.out.print(num[ i]];
Passing Objects and O.oerloading
Other bookmarks
Outline
2 7. What is the output of the following segment of code?
Passing Objects and O.oerloading
D Passing Objects and Overloading
0 ....
LJ
int number();
float ()averages;
double marks[ 5);
counter int(); (* )
Appendix A:. Self Study Guide \Vhars
0 ..0 Appendix A:. Self Study Guide \Vhat
0 ..0 Appendix A:. Self Study Guide Speakir~ l
f3
Incorrect. Refer to Section 6 Lesson 1.
0 ..0 Appendix A:. Self Study Guide L.eaaer>O
0 ..0 Appendix A:. Self Study Guide Creati,j[
0 ..0 Appendix A:. Self Study Guide lntrest!l
0 ..0 Appendix A:. Self Study Guide Work
Section 7
(Answer all questions in this section)
30. Which segment of code correctly defines a method that contains two objects of class Tree as parameters?
Mark for Review
( 1) Points
0 ..0 Appendix A:. Self Study Guide Creati,j[
void bloom(Tree pine, Tree oak) {//code here } ; (* )
Tree bloom (pine, oak) {//code here } ;
void bloom, Tree pine, Tree oak {//code here } ;
None of the above, objects cannot be passed as parameters.
0 ..0 Appendix A:. Self Study Guide The
0 ..0 Appendix A:. Self Study Guide Searchi(l
0 ..0 Appendix A:. Self Study Guide \'ilitter>ll
0 ..0 Appendix A:. Self Study Guide lnt<,vi<ol
0 ..0 Appendix A:. Self Study Guide NelYIOoH
Previou s
Correct
Page 6 of 10
I Next I I Summary I
.-
RO ""'
'
I" t;J
C )
18:17
17.04.2015
'
W (} Facebook
+- ~
mApps
X '
Cl Student Sign In
J Cl 2013-2015 Oracle Acader
D Don Baxter feat. Smile ~ x
C ~ I Cl ilea rn ing.o racle.com/ilearn/enj learner/jsp/player.jsp?rco_id=l340353197&classroom_id =l361817065&scorm_a ttempt= l429282683005&sessionld= 6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guide)Theme yo ur ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
0 ... & Creating Clasc-..es, Objects, and
0 ....
Passing Objects and O.oerloading
D Passing Objects and Overloading
0 ....
Passing Objects and O.oerloading
LJ
Outline
31. Which of the following is the definition of a constructor?
0.. Understanding Recursion, Static
0 ... & Understanding Recursion, Static
Understanding lnheitance: Slid~Jll"'
Mark for Review
(1) Points
Correct
32. Which of the following correctly defines overloading?
~lark
for Review
(1) Points
~lark
for Review
( 1) Points
D Understanding lnhe1itance:
0.. Understanding lnhe1itance:
D Understanding Polymorphi-sm:
0 Understanding Polymorphi"Sm:
0 ....
Unde"tanding Polymorphism:
0 ... & Understanding Polymorphi"Sm:
o....
Appendix A:. Self Study Guide \Vhars
0 ..0 Appendix A:. Self Study Guide What
0 ..0 Appendix A:. Self Study Guide Speaki1~ l
0 ..0 Appendix A:. Self Study Guide L.eaaer>O
0 ..0 Appendix A:. Self Study Guide Creati,j [
0 ..0 Appendix A:. Self Study Guide lntrest!l
0 ..0 Appendix A:. Self Study Guide Work
0 ..0 Appendix A:. Self Study Guide Creati,j[
0 ..0 Appendix A:. Self Study Guide The
0 ..0 Appendix A:. Self Study Guide Search1i(l
Having more than one constructor with the same name but different arguments. (* )
Having more than one constructor with different names and the same arguments.
A variable argument method that returns an array.
A type of access specifier that only allows access from inside the same class.
~
Correct
33. Which of the following is the correct way to code a method with a return type an object Automobile?
Automobile upgrade( String carA){
carA="Turbo";
return carA;}
Automobile upgrade(Automobile carA){
carA.setTurbo("yes");
return carA;} (*)
String upgrade(String carA){
carA="Turbo";
return carA;}
upgrade(Automobile carA) Automobile{
carA.setTurbo("yes");
return carA;}
None of the above. It is not possible to return an object.
~
Correct
34. Which of the following is the definition for a variable argument method?
Mark for Review
( 1) Points
0 ..0 Appendix A:. Self Study Guide \'ilittel>ll
0 ..0 Appendix A:. Self Study Guide lnt<,vi<ol
0 ..0 Appendix A:. Self Study Guide NelYIOoH
Section 7
(Answer all Questions in this section)
A keyword that specifies accessibility of code.
A special method that is used to assign initial values to instance variables in a class. (* )
A way to call a method with a variable number of arguments using an elipse.
A variable in a method declaration that gets passed into the method.
0 Understanding Recursion, Static
Review your answers, feedback, and QUestion scores below. An asterisk (*) indicates a correct answer.
O ..fJ Passing Objects and O.oerloading
D Understanding Recursion, Static
Other bookmarks
A way to create a new class.
Specifies accessibility to code.
Having more than one constructor with the same name but different arguments.
A type of argument that enables calling the same method with a different number of arguments. (* )
..
RO ""'
'
I" t;J
C )
18:18
17.04.2015
'
W (} Facebook
+- ~
mApps
X '
Cl Student Sign In
J Cl 2013-2015 Oracle Acader
D Don Baxter feat. Smile ~ x
C ~ I Cl ilea rn ing.o racle.com/ilearn/enj learner/jsp/player.jsp?rco_id=l340353197&classroom_id =l361817065&scorm_a ttempt= l429282683005&sessionld= 6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guide)Theme yo ur ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
LJ
Outline
Passing Objects and O.oerloading
D Passing Objects and Overloading
0 ....
Passing Objects and O.oerloading
O ..fJ Passing Objects and O.oerloading
D Understanding Recursion, Static
Mark for Review
(1) Points
Automobile upgrade( String carA){
carA="Turbo";
return carA;}
o Automobile upgrade(Automobile carA){
carA.setTurbo("yes");
return carA;} (* )
String upgrade(String carA){
carA="Turbo";
return carA;}
upgrade(Automobile carA) Automobile{
carA.setTurbo("yes");
return carA;}
None of the above. It is not possible to return an object.
0 ... & Understanding Recursion, Static
Understanding lnheitance: Slid~Jll"'
D Understanding lnhe1itance:
0.. Understanding lnhe1itance:
D Understanding Polymorphi-sm:
0 Understanding Polymorphi"Sm:
Unde"tanding Polymorphism:
0 ... & Understanding Polymorphi"Sm:
o....
Correct
34. Which of the following is the definition for a variable argument method?
Mark for Review
( 1) Points
Appendix A:. Self Study Guide \Vhars
0 ..0 Appendix A:. Self Study Guide What
A way to create a new class.
Specifies accessibility to code.
Having more than one constructor with the same name but different arguments.
o A type of argument that enables calling the same method with a different number of arguments. (* )
0 ..0 Appendix A:. Self Study Guide Speaki1~ l
0 ..0 Appendix A:. Self Study Guide L.eaaer>O
0 ..0 Appendix A:. Self Study Guide Creati,j [
0 ..0 Appendix A:. Self Study Guide lntrest!l
0 ..0 Appendix A:. Self Study Guide Work
Correct
33. Which of the following is the correct way to code a method with a return type an object Automobile?
0.. Understanding Recursion, Static
0 ....
Having more than one constructor with the same name but different arguments. (*)
Having more than one constructor with different names and the same arguments.
A variable argument method that returns an array.
A type of access specifier that only allows access from inside the same class.
0 Understanding Recursion, Static
Mark for Review
(1) Points
0 ... & Creating Clasc-..es, Objects, and
0 ....
Other bookmarks
Correct
35. Which of the following correctly describes the use of the keyword super>
0 ..0 Appendix A:. Self Study Guide Creati,j[
A keyword that
A keyword that
A keyword that
A keyword that
0 ..0 Appendix A:. Self Study Guide The
0 ..0 Appendix A:. Self Study Guide Search:i(l
0 ..0 Appendix A:. Self Study Guide \'ilittel>ll
0 ..0 Appendix A:. Self Study Guide lnt<,vi<ol
0 ..0 Appendix A:. Self Study Guide NelYIOoH
Previous
Mark for Review
( 1) Points
restricts access to only inside the same class.
allows subclasses to access methods, data, and const1uctors from their parent class. (* )
signals the end of a program .
allows access from anywhere.
Correct
Page 7 of 10
I Next I I Summary I
.-
RO ""'
'
I" t;J
C )
18:18
17.04.2015
'
W (} Facebook
+- ~
mApps
X '
Cl Student Sign In
J Cl 2013-2015 Oracle Acader
Don Baxter fea t. Smile
C ~ I Cl ilea rn ing .o racle.com/ilearn/enjlearner/jsp/player.jsp?rco_id= l340353197&classroom_id = l361817065&scorm_attempt =l429282683005&sessionld =6361287741L
,.,. Sa msung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guid e)Theme yo ur ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
0 ... & Creating Clasc-..es, Objects, and
0 ....
Passing Objects and O.oerloading
D Passing Objects and Overloading
0 ....
Passing Objects and O.oerloading
LJ
Outline
0 Understanding Recursion, Static
0.. Understanding Recursion, Static
0 ... & Understanding Recursion, Static
0
Understanding lnheitance: Slid~Jll"'
D Understanding Polymorphi-sm:
0 Understanding Polymorphi"Sm:
0 ....
Unde"tanding Polymorphism:
0 ... & Understanding Polymorphism:
o....
Appendix A:. Self Study Guide \Vhars
0 ..0 Appendix A:. Self Study Guide What
0 ..0 Appendix A:. Self Study Guide Speaki1~ l
0 ..0 Appendix A:. Self Study Guide L.eaaer>O
36. What is encapsulation>
Mark for Review
( 1) Points
A keyword that allows or restricts access to data and methods.
A programming philosophy that promotes simpler, more efficient coding by using exiting code for new applications.
A structure that categorizes and organizes relationships among ideas, concepts of things with the most general at the top and the most specific at the bottom.
A programming philosophy that promotes protecting data and hiding implementation in order to prese1ve the integrity of data and methods. (* )
Incorrect. Refer to Section 7 Lesson 4.
37. If a variable in a superclass is p1ivate, could it be directly accessed or modified by a subclass? Why or why not?
~lark
for Review
( 1) Points
~lark
for Review
( 1) Points
Yes. A subclass inherits full access to all contents of its super class.
Yes. Any variable passed through inheritance can be changed, but private methods cannot.
No. A private variable can only be modified by the same class with which it is declared regardless of its inheritance. (* )
No. Nothing inherited by the super class can be changed in the subclass.
~
True (*)
False
~
0 ..0 Appendix A:. Self Study Guide lntrest!l
2
3
4
5
6
7
0 ..0 Appendix A:. Self Study Guide The
0 ..0 Appendix A:. Self Study Guide Search1i(l
0 ..0 Appendix A:. Self Study Guide \'ilitter>ll
0 ..0 Appendix A:. Self Study Guide lnt<,vi<ol
0 ..0 Appendix A:. Self Study Guide NelYIOoH
Correct
39. If we ovenide the toString() method with the code below, what would be the result of printing?
0 ..0 Appendix A:. Self Study Guide Creati,j[
Correct
38. An access modifier is a keyword that allows subclasses to access methods, data, and constructors from their parent class. True or false?
0 ..0 Appendix A:. Self Study Guide Creati,j [
0 ..0 Appendix A:. Self Study Guide Work
Section 7
(Answer all Questions in this section)
D Understanding lnhe1itance:
0.. Understanding lnhe1itance:
Review your answers, feedback, and QUestion scores below. An asterisk (*) indicates a correct answer.
O ..fJ Passing Objects and O.oerloading
D Understanding Recursion, Static
Other bookmarks
Mark for Review
( 1) Points
arr . t oSt ring ( ) g i ve n arr = ( 0 ,18 ,215,64,11,42}?
public St ring t oSt ring ()
S t ring t emp = " [ ";
for ( i nt i=O; i <t h i s . l engt h; i++ )
t emp += arr[i]+ n,";
t emp += " ] ";}
It would print the array one element at a time. The console screen would display: 0 18 215 64 11 42
It would print the string returned from the method. The console screen would display: (0, 18,215,64, 11,42,] (* )
It would print the array backwards. The console screen would display: 42 11 64 215 18 0
It would print the string returned from the method. The console screen would display: {0, 18, 2 15, 64, 11, 42}
. ...
RO ""'
'
I" t;J
C )
18:18
17.04.2015
'
W (} Facebook
+- ~
mApps
X '
Cl Student Sign In
J Cl 2013-2015 Oracle Acader
Don Baxter feat. Smile
C ~ I Cl ilea rn ing.oracle.com/ilearn/enj learner/jsp/player.jsp?rco_id=l340353197&classroom_id=l361817065&scorm_a ttempt= l429282683005&sessionld= 6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guid e)Theme your ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
0 ... & Creating Clasc-..es, Objects, and
0 ....
Passing Objects and O.oerloading
2
3
4
5
6
7
D Understanding Recursion, Static
0 Understanding Recursion, Static
0.. Understanding Recursion, Static
0 ... & Understanding Recursion, Static
Understanding lnheitance: Slid~Jll"'
It
It
It
It
D Understanding lnhe1itance:
0.. Understanding lnhe1itance:
0 Understanding Polymorphi'Sm:
0 ....
( 1) Points
S t ring t emp = "[";
fo r ( i n t
i =O; i<th i s. l ength; i++ )
t emp += arr[i]+",";
t emp += "]";}
would
would
would
would
print
print
print
print
the
the
the
the
array one element at a time. The console screen w ould display: 0 18 215 64 11 42
string returned from the method. The console screen would display : [ 0, 18,215,64, 11,42,] (* )
array backwards. The console screen would display: 42 11 64 215 18 0
string returned from the method. The console screen would display: {0, 18, 215, 64, 11, 42}
Incorrect. Refer to Section 7 Lesson 5.
40. Consider the following method of the class Test:
~lark for Review
(1) Points
public static List returnlist(List list)
Unde"tanding Polymorphism:
public St ring t oSt ring ()
D Understanding Polymorphi-sm:
~lark for Review
arr . t oSt ring () g i ven arr = ( 0 ,18 ,215,64,11,42}?
O..fJ Passing Objects and O.oerloading
Outline
39. If we override the toString() method with the code below, what would be the result of printing>
Passing Objects and O.oerloading
Other bookmarks
Correct
D Passing Objects and Overloading
0 ....
LJ
0 ... & Understanding Polymorphi"Sm:
return list;
o....
Appendix A:. Self Study Guide \Vhars
Which of the following program segments in Test's client class will compile with no errors>
0 ..0 Appendix A:. Self Study Guide What
0 ..0 Appendix A:. Self Study Guide Speaki1~ l
= new Arraylist();
nums = Test.returnlist(nums);
II. Arraylist nums = new Arraylist();
nums = Test.returnlist(nums);
III. Arraylist nums1 = new Arraylist();
List nums2 = Test.returnlist(nums1);
I. List nums
0 ..0 Appendix A:. Self Study Guide L.eaaer>O
0 ..0 Appendix A:. Self Study Guide Creati,j[
0 ..0 Appendix A:. Self Study Guide lntrest!l
0 ..0 Appendix A:. Self Study Guide Work
0 ..0 Appendix A:. Self Study Guide \'ilittel>ll
I only
I and III (* )
II only
II and III
I, II, and III
0 ..0 Appendix A:. Self Study Guide lnt<,vi<ol
0 ..0 Appendix A:. Self Study Guide Creati,j[
0 ..0 Appendix A:. Self Study Guide The
0 ..0 Appendix A:. Self Study Guide Search:i(l
0 ..0 Appendix A:. Self Study Guide NelYIOoH
Previou s
Correct
Page 8 of 10
I Next I I Summary I
.-
RO ""'
'
I" t;J
C )
18:19
17.04.2015
'
W (} Facebook
+- ~
mApps
X '
Cl
Student Sign In
J Cl 2013-2015 Oracle Acader
Don Baxter feat. Smile
C ~ I Cl ilearn ing.o racle.com/ilearn/enj learner/jsp/player.jsp?rco_id=l340353197&classroom_id=l361817065&scorm_a ttempt= l429282683005&sessionld= 6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guide)Theme your ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
0 ... & Creating Clasc-..es, Objects, and
0 ....
Passing Objects and O.oerloading
LJ
Outline
Section 7
(Answer all questions in this section)
41. Which of the following are true about abstract methods?
Mark for Review
( 1) Points
D Passing Objects and Overloading
0 ....
Other bookmarks
(Choose all correct answers)
Passing Objects and O.oerloading
O..fJ Passing Objects and O.oerloading
" They cannot have a method body, (* )
" They must be overridden in a non-abstract subclass. (* )
" They must be declared in an abstract class. (* )
They may contain implementation.
They must be overloaded.
D Understanding Recursion, Static
0 Understanding Recursion, Static
0.. Understanding Recursion, Static
0 ... & Understanding Recursion, Static
0
Understanding lnheitance: Slid~Jil"'
D Understanding lnhe1itance:
Correct
4 2. A non-linear recursive method calls how many copies of itself in the recursive case?
~lark
0.. Understanding lnhe1itance:
for Review
(1) Points
0
1
D Understanding Polymorphi-sm:
2 or more (* )
0 Understanding Polymorphi"Sm:
0 ....
Unde"tanding Polymorphism:
Incorrect. Refer to Section 7 Lesson 3.
43. The base case condition can work with a constant or variable. True or false?
Mark for Review
( 1) Points
0 ... & Understanding Polymorphi"Sm:
o True (*)
o....
False
Appendix A:. Self Study Guide \Vhars
0 ..0 Appendix A:. Self Study Guide \Vhat
0 ..0 Appendix A:. Self Study Guide Speaki1~ l
Correct
44. Static classes can have different access specifiers than the parent class. True or false?
Mark for Review
(1) Points
0 ..0 Appendix A:. Self Study Guide L.eaaer>O
0 ..0 Appendix A:. Self Study Guide Creati,j[
0 ..0 Appendix A:. Self Study Guide lntrest!l
True (*)
False
0 ..0 Appendix A:. Self Study Guide Work
0 ..0 Appendix A:. Self Study Guide Creati,j[
Incorrect. Refer to Section 7 Lesson 3.
45. A class always has a constructor. True or false?
Mark for Review
( 1) Points
0 ..0 Appendix A:. Self Study Guide The
0 ..0 Appendix A:. Self Study Guide \'ilitter>ll
True (*)
False
0 ..0 Appendix A:. Self Study Guide lnt<,vi<ol
0 ..0 Appendix A:. Self Study Guide Searchi(l
0 ..0 Appendix A:. Self Study Guide NelYIOoH
Previous
Incorrect. Refer to Section 7 Lesson 1.
Page 9 of 10
I Next I I Summary I
.-
RO ""'
'
I" t;l
C )
18:19
17.04.2015
'
W (} Facebook
+- ~
mApps
X '
Cl Student Sign In
J Cl 2013-2015 Oracle Acader
D Don Baxter fea t. Smile ~ x
C ~ I Cl ilearning.oracle.com/ilearn/enj learner/jsp/player.jsp?rco_id=l340353197&classroom_id =l361817065&scorm_a ttempt= l429282683005&sessionld= 6361287741L
,.,. Samsung Galaxy s II... xda [KITCHEN] ArchiKitc... E [Guide)Theme your ... How To Build A Dec... LJ de cautat
lfr 2013-2015 Oracle Academy English Java Fundamentals - Student
0 ... & Creating Clasc-..es, Objects, and
0 ....
Passing Objects and O.oerloading
D Passing Objects and Overloading
0 ....
Passing Objects and O.oerloading
O ..fJ Passing Objects and O.oerloading
LJ
Other bookmarks
Outline
46. In Java, an instance field referenced using the this keyword generates a compilation error. True or false?
True
False(* )
~
Correct
4 7. The basic unit of encapsulation in Java is the primitive data type. True or false?
0.. Understanding Recursion, Static
True
False(* )
0 ... & Understanding Recursion, Static
Understanding lnheitance: Slid~Jll"'
D Understanding lnhe1itance:
~lark
for Review
(1) Points
~lark
for Review
(1) Points
Correct
48. The following code creates an object of type Horse:
Whale a=new Whale();
0.. Understanding lnhe1itance:
True
False(* )
D Understanding Polymorphi-sm:
0 Understanding Polymorphi"Sm:
0 ....
o....
Correct
49. All objects, in Java, are created using int. True or false?
Mark for Review
( 1) Points
Unde"tanding Polymorphism:
0 ... & Understanding Polymorphi"Sm:
Appendix A:. Self Study Guide \Vhars
0 ..0 Appendix A:. Self Study Guide What
0 ..0 Appendix A:. Self Study Guide Speaki1~ l
True
False(* )
~
Correct
50. Which of the following calls the method calculate correctly>
public class Th i sC la ss {
p riv a t e i nt a=4, b=S;
0 ..0 Appendix A:. Self Study Guide The
2
3
4
5
6
7
0 ..0 Appendix A:. Self Study Guide Search1i(l
0 ..0 Appendix A:. Self Study Guide L.eaaer>O
0 ..0 Appendix A:. Self Study Guide Creati,j [
0 ..0 Appendix A:. Self Study Guide lntrest!l
0 ..0 Appendix A:. Self Study Guide Work
0 ..0 Appendix A:. Self Study Guide Creati,j[
0 ..0 Appendix A:. Self Study Guide \'ilittel>ll
0 ..0 Appendix A:. Self Study Guide lnt<,vi<ol
0 ..0 Appendix A:. Self Study Guide NelYIOoH
Mark for Review
(1) Points
D Understanding Recursion, Static
0 Understanding Recursion, Static
Mark for Review
(1) Points
public i nt calcu lat e {i nt x, i nt y) {
a=x+y;
retur n a;
ThisCiass t=new ThisCiass(); int x=t.calculate(3,4); (* )
int x=calculate(3,4);
ThisCiass t=new ThisCiass(); int x=t.calculate(3];
ThisCiass t=new ThisCiass(); int x=t.calculate();
.-
RO ""'
'
I" t;J
C )
18:19
17.04.2015
'