CH 4 MCQ
CH 4 MCQ
Category: Fill in the blank/ True & False/ MCQ’s/ Match the following
QNo. Question Correct Answer Type (Knowledge
based/ Conceptual
Understanding/
Reasoning
Based/Skill Based)
1 Wrapping up of data and methods together in a c. Encapsulation Knowledge
single unit is known as
a. Inheritance
b. Polymorphism
c. Encapsulation
d. None of the above
2 A class must have b. Methods Conceptual
a. Data members
b. Methods
c. Both (a) and (b)
d. Either (a) and (b)
3 An instance of a class is called c. Object Conceptual
a. Variable
b. Constant
c. Object
d. Token
4 A Swing control can be hidden from the GUI at c. setVisible Reasoning
run time using method
a. setEditable( )
b. setEnabled( )
c. setVisible( )
d. setHidden( )
5. Which of the following is not OOPS concept in d) Compilation Knowledge
Java?
a) Inheritance
b) Encapsulation
c) Polymorphism
d) Compilation
6. When does method overloading is determined? b) At compile time Conceptual
a) At run time
b) At compile time
c) At coding time
d) At execution time
7. Which of the following best defines a class? b) Instance of an object Conceptual
a) Parent of an object
b) Instance of an object
c) Blueprint of an object
d) Scope of an object
WORKSHOP ON OBJECTIVE TYPE QUESTIONS (OTQ’s)
Category: Fill in the blank/ True & False/ MCQ’s/ Match the following
8. Which Feature of OOP illustrates the code d) Inheritance Conceptual
reusability?
a) Polymorphism
b) Abstraction
c) Encapsulation
d) Inheritance
9. Which of the two features match each other? c) Encapsulation and Conceptual
a) Inheritance and Encapsulation Abstraction
b) Encapsulation and Polymorphism
c) Encapsulation and Abstraction
d) Abstraction and Polymorphism
10. Which feature in OOP is used to allocate a) Operator Overloading Conceptual
additional function to a predefined operator in
any language?
a) Operator Overloading
b) Function Overloading
c) Operator Overriding
d) Function Overriding
11. Which among the following preserves the c) Public Reasoning
visibility modeof the class members during
inheritance?
a) Private
b) Protected
c) Public
d) All three
12 Which among the following can restrict class a) Private Reasoning
members to get inherited?
a) Private
b) Protected
c) Public
d) All three
13 Which type of programming language is Java? b) Object Oriented Knowledge
a) Procedural
b) Object Oriented
c) Object Based
d) None of these
14 Class is group of d) Objects Knowledge
a) Data
b) Methods
c) Variables
d) Objects
15 Data members and methods can appear in a d) All of the above Conceptual
class in the following visibility mode(s)
a) Private
WORKSHOP ON OBJECTIVE TYPE QUESTIONS (OTQ’s)
Category: Fill in the blank/ True & False/ MCQ’s/ Match the following
b) Public
c) Protected
d) All of the above
16 The ability of a method to execute in many a) Operator Overloading Conceptual
forms is known as
a) Operator Overloading
b) Method Overloading
c) Operator Overriding
d) Method Overriding
17 Following is an of example abstract class d) JOptionPane Conceptual
a) JTextField
b) JList
c) JButton
d) JOptionPane
18 The ability of an operator to execute in many a) Operator Overloading Conceptual
forms is known as
a) Operator Overloading
b) Method Overloading
c) Operator Overriding
d) Method Overriding
19 Which feature of Object Oriented c) Inheritance Conceptual
Programming Language supports reusability of
code?
a) Data Encapsulation
b) Polymorphism
c) Inheritance
d) All of these
20 The classes for which objects are required to be b) Concrete Classes Conceptual
declared are known as
a) Abstract Classes
b) Concrete Classes
c) Both a) and b)
d) Neither a) nor b)