21 Core Java Basics Quiz
21 Core Java Basics Quiz
b) False
Answer: a
a) Compilation error
b) Runtime error
c) No errors
d) Runtime Exception
Answer: c
a) Windows
b) Unix/Linux
c) Mac
Answer: d
a) Initialization
b) Loop Body
c) Test statement
Answer: d
a) 4 bits
b) 7 bits
c) 8 bits
d) 16 bits
Answer: d
a) null
b) 0
Answer: d
a) Initialization
b) Loop Body
c) Test statement
d) Update
Answer: b
Question 8: What is essential in making sure that your loop is not infinite ?
Answer: d
Answer: b
a) ab
b) ac
c) ace
d) bd
Answer: b
Question 11: A null reference may be used to access a static variable or method.
a) True
b) False
Answer: a
Question 12: Is Empty .java file name a valid source file name?
a) Yes
b) No
Answer: a
c) Class and object are just different names for the same thing
d) An object is a variable, where its type is the class used to declare the variable
Answer: c
a) Compilation error
b) Runtime error
d) num being 6
Answer: a
a) Yes
b) No
Answer: b