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

Viewing page 1 out of 7 pages
Viewing questions 1-10 out of questions
Questions # 1:

Given the code fragment:

Question # 1

What is the result?

Question # 1

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


E.

Option E


Expert Solution
Questions # 2:

Given the following classes:

Question # 2

Which two options fail to compile when placed at line n1 of the main method? (Choose two.)

Options:

A.

employee.salary = 50_000;


B.

director.salary = 80_000;


C.

employee.budget = 200_000;


D.

manager.budget = 1_000_000;


E.

manager.stockOption = 500;


F.

director.stockOptions = 1_000;


Expert Solution
Questions # 3:

Which three are advantages of the Java exception mechanism? (Choose three.)

Options:

A.

Improves the program structure because the error handling code is separated from the normal program function


B.

Provides a set of standard exceptions that covers all possible errors


C.

Improves the program structure because the programmer can choose where to handle exceptions


D.

Improves the program structure because exceptions must be handled in the method in which they occurred


E.

Allows the creation of new exceptions that are customized to the particular program being created


Expert Solution
Questions # 4:

Given the code fragment:

Question # 4

What is the result?

Options:

A.

2 : 7 : 3


B.

7 : 7 : 9


C.

2 : 7 : 0


D.

7 : 2 : 3


Expert Solution
Questions # 5:

Given:

Question # 5

What is the result?

Options:

A.

100 200 : 0 0 :


B.

100 200 : 100 0 :


C.

100 200 : 100 200 :


D.

0 0 : 100 0 :


Expert Solution
Questions # 6:

Which two initialization statements are valid? (Choose two.)

Options:

A.

Boolean available = “TRUE”:


B.

String tmpAuthor = author, author =”Mc Donald”;


C.

Double price = 200D;


D.

Integer pages = 20;


Expert Solution
Questions # 7:

Given:

Question # 7

What is the result?

Options:

A.

Hello Log 1:0


B.

Hello Log 2:1


C.

Welcome Log 2:1


D.

Welcome Log 1:0


Expert Solution
Questions # 8:

Given the code fragment:

Question # 8

What is the result?

Options:

A.

3142


B.

2413


C.

1324


D.

4231


Expert Solution
Questions # 9:

Given the code fragment:

Question # 9

Which action enables the code to print Helping… Done?

Options:

A.

replace class Humanoid extends Robot {

with abstract class Humanoid extends Robot {


B.

replace interface Speakable {

with abstract class Speakable


C.

replace public void process();

with public abstract void process();


D.

replace abstract class Robot implements Speakable {

with class Robot extends Speakable {


Expert Solution
Questions # 10:

Given the code fragment:

Question # 10

Which two modifications enable the code to compile?

Options:

A.

Make the method at line 8 protected.


B.

Make the method at line 8 public.


C.

Make the method at line 10 protected.


D.

Make the method at line 4 public.


E.

Make the method at line 2 public.


Expert Solution
Viewing page 1 out of 7 pages
Viewing questions 1-10 out of questions