Java Interview Questions on Arrays - 14
Question: 1
(A) 12345
(B) 123
(C) 124
(D) 135
Level: Beginner Category: arrays
[Posted by: Admin | Chicago, USA]
Question: 2
(A) 12345
(B) Nothing is printed
(C) 1
(D) Infinite times
Level: Beginner Category: arrays
[Posted by: Admin | Chicago, USA]
Question: 3
(A) 3
(B) 2
(C) 1
(D) 0
Level: Beginner Category: arrays
[Posted by: Admin | Chicago, USA]
Question: 4
(A) 12345
(B) 135
(C) 22222
(D) 14385
Level: Beginner Category: arrays
[Posted by: Admin | Chicago, USA]
Question: 5
(A) a b c d e
(B) abcde
(C) 97 98 99 100 101
(D) 65 66 67 68 69
Level: Expert Category: arrays
[Posted by: Admin | Chicago, USA]
Question: 6
(A) a b c d e
(B) 96 97 98 99 101
(C) 65 66 67 68 69
(D) None of the above
Level: Expert Category: arrays
[Posted by: Admin | Chicago, USA]
Question: 7
(A) abcde
(B) 6566676869
(C) Compilation Error
(D) Some Garbage Value
Level: Beginner Category: arrays
[Posted by: Admin | Chicago, USA]
Question: 8
(A) ASISH
(B) asish
(C) HSISA
(D) HSIS
Level: Practitioner Category: arrays
[Posted by: Asish | Des Moines USA]
Question: 9
(A) 12345
(B) 1234
(C) Compilation Error
(D) ArrayIndexOutOfBoundsException
Level: Expert Category: arrays
[Posted by: Admin | Chicago, USA]
Question: 10
(A) Compilation Error
(B) 12345
(C) 246810
(D) Exception
Level: Practitioner Category: arrays
[Posted by: Admin | Chicago, USA]
Question: 11
(A) Arrays are passed by Value
(B) Arrays are passed by Reference
(C) It depends on type of array
(D) It depends on Compiler
Level: Beginner Category: arrays
[Posted by: Admin | Chicago, USA]
Question: 12
(A) 0 cpp 0 buzz 1 cpp 1 buzz
(B) 0 cpp 0 buzz 1 cpp 2 buzz
(C) 0 cpp 0 buzz 1 cpp 1 buzz 2 cpp 2 buzz
(D) 0 cpp 0 buzz 1 cpp 2 cpp 2 buzz
Level: Practionar Category: arrays
[Posted by: Admin | Chicago, USA]
Question: 13
(A) 0
(B) 10
(C) null
(D) IndexOutOfBoundsException
Level: Practionar Category: arrays
[Posted by: Admin | Chicago, USA]
Question: 14
(A) Hello. How are you?Hello. How are you?
(B) Hello. How are you?
(C) Hello. How are you??
(D) Compilation/RuntimeError
Level: Expert Category: arrays
[Posted by: Admin | Chicago, USA]