Prelim Lab Quiz 1
Prelim Lab Quiz 1
Programming
1. Home
2. My courses
3. UGRD-CS6203C-2123T
4. Week 1 - 2: Java Language
5. Prelim Lab Quiz 1
Flag question
Question text
When an overridden method is called from within a subclass, it will always refer to the
version of that method defined by the -
a.
Super class
b.
Interpreter will choose
c.
Compiler will choose randomly
d.
Subclass
Feedback
Your answer is correct.
Question 2
Correct
Mark 2.00 out of 2.00
Flag question
Question text
The default value of a static integer variable of a class in Java is -
a.
0
b.
Garbage Value
c.
1
d.
-1
Feedback
Your answer is correct.
Question 3
Correct
Mark 2.00 out of 2.00
Flag question
Question text
Which is not feature of OOP in general definitions -
a.
Modularity
b.
Duplicate/Redundant data
c.
Efficient Code
d.
Code reusability
Feedback
Your answer is correct.
Question 4
Correct
Mark 2.00 out of 2.00
Flag question
Question text
Which was the first purely object oriented programming language developed?
a.
Kotlin
b.
SmallTalk
c.
C++
d.
Java
Feedback
Your answer is correct.
Question 5
Correct
Mark 2.00 out of 2.00
Flag question
Question text
In Java, a character constant’s value is its integer value in the _________character set.
a.
EBCDIC
b.
Unicode
c.
ASCII
d.
Binary
Feedback
Your answer is correct.
Question 6
Correct
Mark 2.00 out of 2.00
Flag question
Question text
Which one presents a uniform, easy-to-use, object-oriented interface between the program
and the input/output devices :
a.
Input
b.
Ouptput
c.
Reader
d.
Stream
Feedback
Your answer is correct.
Question 7
Correct
Mark 2.00 out of 2.00
Flag question
Question text
Which of the following is not a component of Java Integrated Development Environment
(IDE)?
a.
Net Beans
b.
Microsoft Visual Fox Pro
c.
Symantec’s Visual Café
d.
Borland’s Jbuilder
Feedback
Your answer is correct.
Question 8
Incorrect
Mark 0.00 out of 2.00
Flag question
Question text
In java, objects are passed as -
a.
Method called call by value
b.
Copy of that object
c.
Memory address
d.
Constructor
Feedback
Your answer is incorrect.
Question 9
Correct
Mark 2.00 out of 2.00
Flag question
Question text
All syntax errors are known as following errors :
a.
Exception
b.
Logical
c.
Compile-time
d.
Run-time
Feedback
Your answer is correct.
Question 10
Correct
Mark 2.00 out of 2.00
Flag question
Question text
The java run time system automatically calls this method while garbage collection-
a.
finally()
b.
finalized()
c.
finalize()
d.
finalizer()
Feedback
Your answer is correct.