Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Home / My courses /

UGRD-CS6203-2113T /
Object-Oriented Programming /
Prelim MP1

Started on Sunday, 26 September 2021, 11:02 AM


State Finished
Completed on Sunday, 26 September 2021, 11:08 AM
Time taken 6 mins 30 secs
Marks 18.00/20.00
Grade 90.00 out of 100.00

Question 1
Correct

Mark 2.00 out of 2.00

Which was the first purely object oriented


programming language developed?

a. C++

b. SmallTalk

c. Kotlin

d. Java

Your answer is correct.

Question 2
Correct

Mark 2.00 out of 2.00

In Java, a
character constant’s value is its integer value in the _________character set.

a.  EBCDIC           

b. Binary

c. ASCII

d. Unicode 

Your answer is correct.


Question 3
Correct

Mark 2.00 out of 2.00

The
default value of a static integer  variable of a class in Java is - 

a. 0 

b. Garbage Value

c. -1

d. 1

Your answer is correct.

Question 4
Correct

Mark 2.00 out of 2.00

The java run time system automatically


calls this method while garbage collection-

a. finalized()    

b. finally()

c. finalize()    

d. finalizer()                    

Your answer is correct.


Question 5
Correct

Mark 2.00 out of 2.00

Which
is not feature of OOP in general definitions - 

a. Code reusability

b. Modularity

c. Duplicate/Redundant
data

d. Efficient
Code

Your answer is correct.

Question 6
Correct

Mark 2.00 out of 2.00

 All syntax errors


are known as following errors : 

a. Compile-time

b. Run-time

c. Exception

d. Logical

Your answer is correct.


Question 7
Correct

Mark 2.00 out of 2.00

When
an overridden method is called from within a subclass, it will always 
refer to the version of that     method
defined by the -

a. Subclass 

b. Super class

c. Interpreter
will choose

d. Compiler
will choose randomly  

Your answer is correct.

Question 8
Correct

Mark 2.00 out of 2.00

Which
of the following is not a component of Java Integrated Development Environment
(IDE)?

a. Net
Beans

b. Symantec’s
Visual Café

c. Microsoft Visual Fox Pro

d. Borland’s
Jbuilder

Your answer is correct.

Question 9
Incorrect

Mark 0.00 out of 2.00

In
java, objects are passed as - 

a. Memory
address

b. Copy
of that object

c. Constructor

d. Method
called call by value

Your answer is incorrect.


Question 10
Correct

Mark 2.00 out of 2.00

Which one presents a uniform, easy-to-use, object-oriented interface between the


program and the input/output devices : 

a. Reader

b. Stream

c. Ouptput

d. Input

Your answer is correct.

◄ Google drive Folder for Submitting Activity

Jump to...

Prelim MP2 ►

You might also like