wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

QUIZ DAILY JAVA CORE DAY4

Total questions: 21

Worksheet time: 27mins

Name
Class
Date
1.
a)

A.  Prints: false,false

b)

B.  Prints: false,true

c)

C.  Prints: true,false

d)

D.  Prints: true,true

2.
a)

A.  Prints: AABC

b)

B.  Prints: ACDE

c)

C.  Prints: ABABC

d)

D.  Prints: BDE

3.
a)

A.  Prints: false,false,false

b)

B.  Prints: false,false,true

c)

C.  Prints: false,true,false

d)

D.  Prints: false,true,true

4.
a)

A.  Prints: 3,false

b)

B.  Prints: 3,true

c)

C.  Prints: 12,false

d)

D.  Prints: 12,true

5.
a)

A. public String substring(int beginIndex,int endIndex)

b)

B. public String substring(int beginIndex)

c)

C. public boolean equalsIgnoreCase(String another)

d)

D. Both A & B

6.
a)

A.  Prints: false,false

b)

B.  Prints: false,true

c)

C.  Prints: true,false

d)

D.  Prints: true,true

7.
a)

A.  Prints: AAA

b)

B.  Prints: ABC

c)

C.  Prints: CCC

d)

D.  None of the above

8.
a)

A.  Prints: A

b)

B.  Prints: B

c)

C.  Prints: C

d)

D.  None of the above

9.
a)

A.  Prints: AAA

b)

B.  Prints: ABC

c)

C.  Prints: CCC

d)

D.  Compile-time error

10.
a)

A.  Prints: AAA

b)

B.  Prints: ABC

c)

C.  Prints: CCC

d)

D.  Compile-time error

11.
a)

A. True

b)

B. False

12.
a)

A. CONCUR_UPDATABLE

b)

B. CONCUR_READ_ONLY

c)

C. All of the above

d)

D. None of the above

13.
a)

A. CallableStatement Interface

b)

B. PreparedStatement Interface

c)

C. All the above

d)

D. None of the above

14.
a)

A. TYPE_FORWARD_ONLY

b)

B. TYPE_SCROLL_INSENSITIVE

c)

C. TYPE_SCROLL_SENSITIVE

d)

D. ALL ABOVE

15.
a)

A. forName()

b)

B. getConnection()

c)

C. createStatement()

d)

D. executeQuery()

16.
a)

A. public void rollback()

b)

B. public void commit()

c)

C. public void close()

d)

D. public Statement createStatement()

17.
a)

A. Connection

b)

B. Statement

c)

C. ResultSet

d)

D. None of the above

18.
a)

A. str3 =

b)

B. str3 = null

c)

C. str3 = blue

d)

D. Runtime Exception

19.
a)

A.  Prints: DD

b)

B.  Prints: DE

c)

C.  Prints: ED

d)

D.  Prints: EE

20.
a)

A.  Prints: AAA

b)

B.  Prints: ABC

c)

C.  Prints: CBA

d)

D.  Prints: CCC

21.
a)

A.  Prints: AAA

b)

B.  Prints: YZA

c)

C.  Prints: YAA

d)

D.  Prints: AZA