New Year Special Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Question # 4

Given the code fragment:

What is the result?

A.

a memory address1 in hexadecimal number format

a memory address2 in hexadecimal number format

B.

10, 15

[10, 15]

C.

0, 10, 15

[10, 15, null]

D.

a memory address in hexadecimal number format

[10, 15]

Full Access
Question # 5

What is the meaning of “write once, run anywhere” in Java?

A.

Java programs are designed to run only in web browsers and, thus, can run wherever there is a browser.

B.

It is a marketing statement because Java programs must be compiled for a specific platform in order to run.

C.

Java programs can run on any Java Virtual Machine without being recompiled.

D.

Java programs, after being compiled, can run on any platform or device even without a Java Virtual Machine.

Full Access
Question # 6

Given the code fragment:

What is the result?

A.

25.67

B.

25.00

C.

25.7

D.

26

Full Access
Question # 7

Given:

What is the result?

A.

300

B.

100

C.

200

D.

A compilation error occurs.

Full Access
Question # 8

Given the code fragment:

What is the result?

A.

3 : 1

B.

3 : 2

C.

0 : 1

D.

2 : 0

Full Access
Question # 9

Which statement is true about exception handling?

A.

At least one catch block must accompany a try statement.

B.

All statements in a try block are executed, even if an exception occurs in the middle of the try block.

C.

At least one statement in a try block must throw an exception.

D.

All catch blocks must be ordered from general to most specific.

Full Access
Question # 10

Given the code fragment:

What is the result?

A.

false

false

false

false

B.

true

false

false

false

C.

true

true

true

true

D.

true

true

true

false

Full Access
Question # 11

Given:

Which statement, when inserted at line n1, enables the Course class to compile?

A.

int newFee;

B.

double newFee;

C.

long newFee;

D.

float newFee;

Full Access