Object-Oriented Programming MCQs (Part-7)

What is the primary purpose of Memory Management in OOP?

A Optimize execution
B Manage memory leaks
C Allocate memory
D Handle objects

Which method is primarily used for Memory Allocation in OOP?

A New operator
B Clone method
C Constructor
D Destructor

Which of the following is NOT a type of File Handling operation in OOP?

A Read
B Append
C Write
D Compile

What is the primary function of File Input/Output (I/O) in OOP?

A Optimize performance
B Store data
C Retrieve data
D Handle exceptions

What does GUI Development primarily deal with in OOP?

A User interfaces
B Object creation
C File handling
D Memory management

Which of the following is an important feature of GUI development in OOP?

A Memory allocation
B File encryption
C Static data handling
D User interaction

Which of the following is NOT a core principle of Memory Management in OOP?

A Dynamic Memory Allocation
B Data Encapsulation
C Automatic Garbage Collection
D Explicit Memory Deallocation

What does Garbage Collection do in OOP languages like Java?

A Frees unused memory
B Optimizes code execution
C Handles file operations
D Allocates memory

What is the main purpose of Memory Leaks in OOP?

A Reallocate memory
B Optimize memory
C Prevent memory waste
D Monitor memory usage

Which of the following OOP principles is NOT directly related to File Handling?

A Abstraction
B Inheritance
C Polymorphism
D Encapsulation

Which of these methods is used for File Reading in OOP?

A WriteFile()
B ReadFile()
C Open()
D FileRead()

What is the role of Access Modifiers in GUI Development?

A Control method visibility
B Hide data in objects
C Handle user events
D Control memory usage

Which of the following is NOT part of Exception Handling in OOP?

A Try block
B Finally block
C Catch block
D Write block

Which design principle is crucial for Effective Memory Management in OOP?

A Code Reusability
B Interface Implementation
C Proper Object Destruction
D Method Overloading

What does the File Handling process in OOP help to achieve?

A Optimize system performance
B Create new objects
C Read and write data
D Secure data transfer