Pass the Oracle Oracle Certified Associate 1z0-808 Questions and answers with CertsForce

Viewing page 3 out of 7 pages
Viewing questions 21-30 out of questions
Questions # 21:

Given the following code:

Question # 21

What are the values of each element in intArr after this code has executed?

Options:

A.

15, 60, 45, 90, 75


B.

15, 90, 45, 90, 75


C.

15, 30, 75, 60, 90


D.

15, 30, 90, 60, 90


E.

15, 4, 45, 60, 90


Expert Solution
Questions # 22:

Given the code fragment:

Question # 22

Assume that the system date is June 20, 2014. What is the result?

Question # 22

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


Expert Solution
Questions # 23:

Given the code fragment:

Question # 23

What is the result?

Options:

A.

Match 1


B.

Match 2


C.

No Match


D.

A NullPointerException is thrown at runtime.


Expert Solution
Questions # 24:

Which statement is true about the switch statement?

Options:

A.

It must contain the default section.


B.

The break statement, at the end of each case block, is mandatory.


C.

Its case label literals can be changed at runtime.


D.

Its expression must evaluate to a single value.


Expert Solution
Questions # 25:

Given these requirements:

    Bus and Boat are Vehicle type classes.

    The start() and stop() methods perform common operations across the Vehicle class type.

    The ride() method performs a unique operations for each type of Vehicle.

Which set of actions meets the requirements with optimized code?

Options:

A.

1. Create an abstract class Vehicle by defining start() and stop() methods, and declaring the ride()

abstract method.

2. Create Bus and Boat classes by inheriting the Vehicle class and overriding the ride() method.


B.

1. Create an interface Vehicle by defining start() and stop() methods, and declaring the ride()

abstract method.

2. Create Bus and Boat classes by implementing the Vehicle class.


C.

1. Create an abstract class Vehicle by declaring stop(), start(), and ride() abstract methods.

2. Create Bus and Boat classes by inheriting the Vehicle class and overriding all the methods.


D.

1. Create an interface Vehicle by defining default stop(), start(), and ride() methods.

2. Create Bus and Boat classes by implementing the Vehicle interface and overriding the ride()

method.


Expert Solution
Questions # 26:

Given:

Question # 26

What is the result?

Options:

A.

C B A


B.

C


C.

A B C


D.

Compilation fails at line n1 and line n2


Expert Solution
Questions # 27:

Given:

Question # 27

What is the result?

Options:

A.

true:true


B.

true:false


C.

false:true


D.

false:false


Expert Solution
Questions # 28:

Given the code fragment:

Question # 28

Which code fragment, when inserted at line n1, enables the App class to print Equal?

Question # 28

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


Expert Solution
Questions # 29:

Given:

Question # 29

What is the result?

Options:

A.

BaseDerivedA


B.

BaseDerivedB


C.

DerivedBDerivedB


D.

DerivedBDerivedA


E.

A ClassCastException is thrown at runtime.


Expert Solution
Questions # 30:

Given the code fragment:

Question # 30

Which three lines fail to compile? (Choose three.)

Options:

A.

Line 7


B.

Line 8


C.

Line 9


D.

Line 10


E.

Line 11


F.

Line 12


Expert Solution
Viewing page 3 out of 7 pages
Viewing questions 21-30 out of questions