Java Interview Questions on Conditions - 18
Question: 1
(A) 5
(B) 10
(C) 0
(D) Compilation Error
Level: Beginner Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 2
(A) 5
(B) 10
(C) 510
(D) Compilation Error
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 3
(A) 5
(B) 510
(C) 5100
(D) Compilation Error
Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 4
(A) 5
(B) 510
(C) 5100
(D) 100
Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 5
(A) 5
(B) 10
(C) 100
(D) 0
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 6
(A) 10
(B) 510
(C) 5100
(D) 100
Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 7
(A) Compilation Error
(B) 10-even-
(C) 10-even-0
(D) 10-odd
Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 8
(A) Compilation Error
(B) 10-even-
(C) 10-odd-
(D) 10-even-0
Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 9
(A) Compilation Error
(B) Length is 5-10
(C) Length not in 5-10
(D) nothing is printed
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 10
(A) SunMoon
(B) Sun
(C) Moon
(D) Compilation Error
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 11
(A) Moon
(B) Sun
(C) SunMoon
(D) error: int can not be converted to boolean
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 12
(A) Sun
(B) Moon
(C) SunMoon
(D) Compilation Error
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 13
(A) Sun
(B) Nothing is printed
(C) Compilation Error
(D) Exception
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 14
(A) Compilation Error
(B) Sun
(C) Nothing is printed
(D) error: unreachable statement
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 15
(A) Compilation Error
(B) exception: unreachable code
(C) Sun
(D) SunMoon
Level: Beginner Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 16
(A) Sun
(B) SunMoon
(C) Nothing is printed
(D) Compilation Error
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]
Question: 17
(A) Ash
(B) Ashxyz
(C) Nothing is printed
(D) AshxyzabcImn
Level: Expert Category: conditional
[Posted by: ASISH ARAVIND | Des Moines USA]
Question: 18
(A) Germany
(B) India
(C) Canada
(D) USA
Level: Practionar Category: conditional
[Posted by: Admin | Chicago, USA]