PRACTICE • LEARN • GROW
Module 1 Final Quiz: Introduction to OOP MCQs
Solve topic-wise placement questions and improve your skills.
Module 1 Final Quiz: Introduction to OOP Progress
0 of 11 completed
0%
Topic Track
You are viewing MCQs in preview mode. Log in to select options, submit answers, and track your progress.
Log In to Answer
1
Which of the following is NOT a fundamental pillar of Object-Oriented Programming?
A.
Encapsulation
B.
Compilation
C.
Inheritance
D.
Polymorphism
Explanation & Key
Correct Answer:
2
How does procedural programming primarily differ from object-oriented programming in structural approach?
A.
Procedural uses a bottom-up approach; OOP uses top-down
B.
Procedural separates data and functions with top-down design; OOP bundles data and methods together with bottom-up design
C.
Procedural code cannot use functions; OOP only uses functions
D.
Procedural code supports virtual tables; OOP does not
Explanation & Key
Correct Answer:
3
What runtime memory resource does a class definition itself occupy?
A.
Stack memory for every method call
B.
Heap memory for all future instance fields
C.
Code/Metaspace segment for class metadata and bytecode, but no heap memory for instance state
D.
Registers only
Explanation & Key
Correct Answer:
4
Which feature of OOP best addresses the vulnerability of global state corruption seen in procedural code?
A.
Dynamic Method Dispatch
B.
Encapsulation and Data Hiding
C.
Multiple Inheritance
D.
Operator Overloading
Explanation & Key
Correct Answer:
5
What is an 'object' in the context of an OOP runtime?
A.
A compile-time macro expansion
B.
A concrete runtime instance of a class stored on the heap with distinct state
C.
A function prototype declaration
D.
A database transaction log
Explanation & Key
Correct Answer:
6
Which of the following languages is primarily prototype-based rather than classical class-based OOP?
A.
Java
B.
C++
C.
JavaScript
D.
C#
Explanation & Key
Correct Answer:
7
In OOP terminology, what does 'State' of an object refer to?
A.
The operating system process ID
B.
The collection of values stored in the object's instance fields at a given time
C.
The number of CPU cycles consumed by the object's methods
D.
The compiler optimization flag
Explanation & Key
Correct Answer:
8
Which characteristic distinguishes two objects even if all their instance attribute values are identical?
A.
Their method signatures
B.
Their unique identity / memory address handle
C.
Their class name
D.
Their package namespace
Explanation & Key
Correct Answer:
9
What is the primary advantage of modeling software systems around real-world objects?
A.
Faster assembly instruction execution
B.
Intuitive mapping to business domains, improved modularity, and easier long-term maintenance
C.
Zero memory overhead compared to assembly
D.
Elimination of all compiler warnings
Explanation & Key
Correct Answer:
10
Which pillar of OOP allows a derived class to automatically inherit fields and behaviors from an ancestor?
A.
Abstraction
B.
Inheritance
C.
Polymorphism
D.
Encapsulation
Explanation & Key
Correct Answer:
11
Which of the following best describes 'Behavior' of an object?
A.
The physical RAM address
B.
The methods and operations that mutate or query the object's internal state
C.
The file size on disk
D.
The compiler version
Explanation & Key
Correct Answer:
Question Palette
Answered
Current
Not Attempted
Wrong