EXAMINATION QUESTIONS AND CORRECT ANSWER
WITH EXPLANATION GRADED A+ STUDY GUIDE
SOUTHERN NEW HAMPSHIRE UNIVERSITY
1. Object-Oriented Programming is:
A. Programming using objects and classes
B. Hardware design method
C. Database system
D. Network protocol
Answer: A
Rationale: OOP is based on objects and classes.
2. An object in OOP is:
A. Instance of a class
B. A function
C. A database
D. A loop
Answer: A
Rationale: Objects are class instances.
3. A class is:
A. Blueprint for objects
B. Variable type
C. Loop structure
D. Operating system
Answer: A
Rationale: Class defines object structure.
4. Encapsulation means:
A. Wrapping data and methods together
B. Deleting data
C. Copying objects
D. Running programs
Answer: A
Rationale: Data hiding and bundling.
,5. Inheritance means:
A. Acquiring properties from another class
B. Deleting class
C. Copying files
D. Creating database
Answer: A
Rationale: Code reuse mechanism.
6. Polymorphism means:
A. One function many forms
B. One object only
C. One class only
D. One variable only
Answer: A
Rationale: Multiple behaviors.
7. Abstraction means:
A. Hiding implementation details
B. Showing all details
C. Deleting data
D. Copying data
Answer: A
Rationale: Simplifies complexity.
8. Constructor is:
A. Method that initializes objects
B. Destructor
C. Loop
D. Variable
Answer: A
Rationale: Object setup function.
9. Destructor is used to:
A. Destroy objects
B. Create objects
C. Copy objects
D. Run loops
Answer: A
Rationale: Cleanup function.
, 10. Method in OOP is:
A. Function inside a class
B. Variable
C. Database
D. OS process
Answer: A
Rationale: Class function.
11. Attribute is:
A. Property of object
B. Function only
C. Loop
D. Database
Answer: A
Rationale: Object data.
12. Object state refers to:
A. Current values of attributes
B. Class name
C. Function name
D. OS state
Answer: A
Rationale: Object data condition.
13. Behavior of object is:
A. Methods/functions
B. Variables only
C. Hardware
D. OS process
Answer: A
Rationale: Actions of object.
14. Access specifier defines:
A. Visibility of members
B. CPU access
C. Memory size
D. OS control
Answer: A
Rationale: Encapsulation control.