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

Exact2Pass Menu

Question # 4

Given:

A.

Hello

B.

Compilation fails

C.

A NumberFormatException is thrown

D.

there

Full Access
Question # 5

Given:

What is the result?

A.

B A C

B.

D A D

C.

B A D

D.

D D D

Full Access
Question # 6

Given the code fragment:

A.

True:false:true:true

B.

True:true:false:false

C.

True:false:true:false

D.

True:false:false:false

Full Access
Question # 7

Given:

Which statement is true?

A.

The program throws StockException.

B.

The program fails to compile.

C.

The program throws outofStockException.

D.

The program throws ClassCastException

Full Access
Question # 8

Given:

What is the result?

A.

1001

1001

1000

B.

101

101

1000

C.

100

100

1000

D.

1001

100

1000

Full Access
Question # 9

Given:

What is the result?

A.

flipsflips

B.

Compilation fails

C.

flipsruns

D.

runsflips

E.

runsruns

Full Access
Question # 10

Given:

What is the result?

A.

Bicycle =7, car=7, motorcycle=7, truck=7)

B.

(3:bicycle, 0:car, 0motercycle, 5:truck)

C.

(Bicycle, car, motorcycle, truck)

D.

Bicycle-1, car=3, motorcycle=1, truck=2)

E.

Compilation fails.

Full Access
Question # 11

Given the directory structure:

Given the definition of the Doc class:

Which two are valid definition of the wordDoc class?

A.

Package p1;

Public non-sealed class wordDoc extends Doc ()

B.

Package p1;

Public class wordDoc extends Doc ()

C.

Package p1, p2;

Public non-sealed class WordDoc extends Doc ()

D.

Package p1, p2;

Public sealed class WordDoc extends Doc ()

E.

Package p1,

non-sealed abstract class WordDoc extends Doc ()

F.

Package p1;

Public final class WordDoc extends Doc ()

Full Access
Question # 12

Given:

What is the result

A.

Marketing

Finance

Technical

B.

Marketing

Undefined

C.

UnDefined

D.

Marketing

Full Access
Question # 13

Given the code fragment:

Which two statements at Line nl independently enable you to print 1250?

A.

Integer res = 250 + integer.parseint (s)

B.

Integer res = 250 + s:

C.

Integer res = 250 + integer (s2):

D.

Integer res= 250 + s2;

E.

Integer res = 250 + integer . valueof (s);

F.

Integer res = 250;

Res = + s2;

Full Access
Question # 14

Given the code fragment:

What is the result:

A.

ADEABCB // the order of element is unpredictable

B.

ABCE

C.

ABCDE // the order of elements is unpredictable

D.

ABBCDE // the order of elements is unpredictable

Full Access
Question # 15

Daylight Saving Time (DST) is the practice of advancing clocks at the start of spring by one hour and

adjusting them backward by one hour in autumn.

Considering that in 2021, DST in Chicago (Illinois) ended on November 7th at 2 AM, and given the fragment:

What is the output?

A.

true

false

B.

False

false

C.

true

true

D.

false

true

Full Access