Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » Java » Arrays

Java Interview Questions on Arrays - 14


Question: 1

(A) 12345
(B) 123
(C) 124
(D) 135

Level: Beginner Category of MCQ: arrays



Question: 2

(A) 12345
(B) Nothing is printed
(C) 1
(D) Infinite times

Level: Beginner Category of MCQ: arrays



Question: 3

(A) 3
(B) 2
(C) 1
(D) 0

Level: Beginner Category of MCQ: arrays



Question: 4

(A) 12345
(B) 135
(C) 22222
(D) 14385

Level: Beginner Category of MCQ: arrays



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 of MCQ: arrays



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 of MCQ: arrays



Question: 7

(A) abcde
(B) 6566676869
(C) Compilation Error
(D) Some Garbage Value

Level: Beginner Category of MCQ: arrays



Question: 8

(A) ASISH
(B) asish
(C) HSISA
(D) HSIS

Level: Practitioner Category of MCQ: arrays



Question: 9

(A) 12345
(B) 1234
(C) Compilation Error
(D) ArrayIndexOutOfBoundsException

Level: Expert Category of MCQ: arrays



Question: 10

(A) Compilation Error
(B) 12345
(C) 246810
(D) Exception

Level: Practitioner Category of MCQ: arrays



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 of MCQ: arrays



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: Practitioner Category of MCQ: arrays



Question: 13

(A) 0
(B) 10
(C) null
(D) IndexOutOfBoundsException

Level: Practitioner Category of MCQ: arrays



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 of MCQ: arrays



Browse Java Categories

Datatype Variables Operators Decision Making Loops Methods Reference Variables Arrays Classes and Objects Abstract Class Singleton Class Modifiers Inheritance Overriding Polymorphism Abstraction Encapsulation Files and I/O TypeCasting Packages Exceptions Collections Framework Numbers Class Date & Time Regular Expressions Data Structures Interfaces Multithreading Other