wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz for Jul 20_Connect

Total questions: 10

Worksheet time: 4mins

Name
Class
Date
1.

Which of the following functions will you choose to join two Strings?

a)

split()

b)

replace()

c)

substring()

d)

concat()

2.

Predict the output:

a)

javaissimple

b)

compilation error at line1

c)

compilation error at line2

d)

None of the above

3.

Predict the output:

a)

avaJ

b)

Java

4.

Predict the output:

a)

5

b)

10

5.

Predict the output:

a)

11

b)

10

c)

9

d)

8

6.

Predict the output:

a)

10

b)

25

c)

Error - cannot modify the final variable x.

d)

0

7.

Predict the output:

a)

01234

b)

43210

c)

Infinite loop

d)

12345

8.

Predict the output:

a)

LOCKDOWN

b)

true

c)

false

d)

None of the above

9.

Which of the following are Java keywords?

1. boolean

2. goto

3. enum

a)

1

b)

1 & 2

c)

1 & 3

d)

1 & 2 & 3

10.
What is the size of char datatype in Java?
a)
1 Byte
b)
2 Bytes
c)
4 Bytes
d)
1 bit