mcq 2
mcq 2
Both Assertion (A) and Reason (R) are true and Reason
(R) is not correct explanation of Assertion (A).
Programming concepts c. Assertion (A) is true and Reason (R) is false.
d. Assertion (A) is false and Reason (R) is true.
Multiple choice question: 12. Name the feature of java depicted in the picture.
1. Procedure Oriented Programming mainly uses
a. Top-down approach
b. Top-down and bottom-up approach
c. Bottom-up approach
d. None of these
2. ____is the feature using which one class acquires the a. Encapsulation b. Inheritance
properties of another class. c. Abstraction d. Polymorphism
a. Abstraction b. Inheritance 13. Name the principle of java depicted in the given image:
c. Encapsulation d. Polymorphism
3. The ability of a method or object to take on multiple forms
is called
a. Abstraction b. Inheritance
c. Encapsulation d.Polymorphism
4. An object has
a. Attributes b. State a. Abstraction b. Inheritance
c. Behavior d. All of these c. Polymorphism d. Data hiding
5. A class is …. 14. Name the feature of java depicted in the above picture.
a. An object factory b. A blueprint to create objects
c. A specification for objects d. All of these
6. ______represents an entity in the real-world with its
identity and behavior.
a. A class b. An object
c. A procedure d. A method
7. ______is a template to create similar objects that
share common characteristics and behavior. a) Encapsulation (b) Inheritance
a. A method b. A procedure (c) Abstraction (d) Dynamic Binding
c. An attribute d. class 15. Name the feature of java depicted in the adjoining
8. The values of an object's …………. represent the state of picture.
the object. (a) Abstraction
a. methods b. procedures (b) Encapsulation
c. Attributes d. classes (c) Inheritance
9. The terms object and……………are often interchangeable. (d) Polymorphism
a. instance b. Behaviour
c. attribute d. State
10. Name the feature of java depicted in the picture. 16. Name the feature of java depicted in the adjoining
picture
(a) class (b) object
(c) object factory (d) Polymorphism
18. Name the feature of java depicted in the adjoining 7. A program that translates an assembly language program
picture. into machine code is called a/an
(a) Abstraction (a) Assembler (b) Linker
(b) Encapsulation (c) Compiler (d) None of these
(c) Inheritance 8.Java is___________
(d) Polymorphism (a) Robust (b) Object oriented
(c) Secure (d) All of these
9. Java can be used to write.
(a) Stand-alone applications only
(b) Both stand-alone and internet applications
(c) Internet applications only
(d) None of these
10. Java applications can run on
(a) Windows platform (b) Macintosh platform
(c) UNIX platform (d) All of these
Elementary Concept of Objects and Classes
11. Which among the following doesn’t come under OOP
concept?
1. Java applications (a) Data hiding (b) Message passing
(a) Are platform dependent
(c) Platform independent (d) Data binding
(b) Don't need a platform to run
12. Which among the following, for a pure OOP language,
(c) Are platform independent
is true?
(d) Can't run on Windows
a) The language should follow at least 1 feature of OOP
2. JVM stands for
b) The language must follow only 3 features of OOP
(a) Java Visual Monitor (b) Java Video Monitor
c) The language must follow all the rules of OOP
(c) Java Virtual Monitor (d) Java Virtual Machine
d) The language should follow 3 or more features of OOP
3. JRE stands for
13. Which feature of OOP reduces the use of nested
(a) Java Runtime Editor
classes?
(b) Java Runtime Environment (a) Inheritance (b) Binding
(c) Java Runtime Expression
(c) Abstraction (d) Encapsulation
(d) Java Runtime Enabler
14. Which feature can be implemented using encapsulation?
4. Stand-alone Java applications for execution.
(a) Polymorphism (b) Overloading
(a) Need Java-compatible web browser
(c) Inheritance (d) Abstraction
(b) Need an assembler
(c) Don't need Java-compatible web browser