

MCQOPTIONS
Saved Bookmarks
This section includes 20 Mcqs, each offering curated multiple-choice questions to sharpen your Object Oriented Programming knowledge and support exam preparation. Choose a topic below to get started.
1. |
Using higher degree of abstraction __________ |
A. | May get unsafe |
B. | May reduce readability |
C. | Can be safer |
D. | Can increase vulnerability |
Answer» D. Can increase vulnerability | |
2. |
Which among the following is not a level of abstraction? |
A. | Logical level |
B. | Physical level |
C. | View level |
D. | External level |
Answer» E. | |
3. |
A phone is made up of many components like motherboard, camera, sensors and etc. If the processor represents all the functioning of phone, display shows the display only, and the phone is represented as a whole. Which among the following have highest level of abstraction? |
A. | Motherboard |
B. | Display |
C. | Camera |
D. | Phone |
Answer» E. | |
4. |
If two classes combine some private data members and provides public member functions to access and manipulate those data members. Where is abstraction used? |
A. | Using private access specifier for data members |
B. | Using class concept with both data members and member functions |
C. | Using public member functions to access and manipulate the data members |
D. | Data is not sufficient to decide what is being used |
Answer» D. Data is not sufficient to decide what is being used | |
5. |
In terms of stream and files ____________ |
A. | Abstraction is called a stream and device is called a file |
B. | Abstraction is called a file and device is called a stream |
C. | Abstraction can be called both file and stream |
D. | Abstraction can’t be defined in terms of files and stream |
Answer» B. Abstraction is called a file and device is called a stream | |
6. |
Encapsulation and abstraction differ as ____________ |
A. | Binding and Hiding respectively |
B. | Hiding and Binding respectively |
C. | Can be used any way |
D. | Hiding and hiding respectively |
Answer» B. Hiding and Binding respectively | |
7. |
Higher the level of abstraction, higher are the details. |
A. | True |
B. | False |
Answer» C. | |
8. |
Abstraction principle includes___________ |
A. | Use abstraction at its minimum |
B. | Use abstraction to avoid longer codes |
C. | Use abstraction whenever possible to avoid duplication |
D. | Use abstraction whenever possible to achieve OOP |
Answer» D. Use abstraction whenever possible to achieve OOP | |
9. |
Which among the following can be viewed as combination of abstraction of data and code. |
A. | Class |
B. | Object |
C. | Inheritance |
D. | Interfaces |
Answer» C. Inheritance | |
10. |
Abstraction can apply to ____________ |
A. | Control and data |
B. | Only data |
C. | Only control |
D. | Classes |
Answer» B. Only data | |
11. |
Abstraction gives higher degree of ________ |
A. | Class usage |
B. | Program complexity |
C. | Idealized interface |
D. | Unstable interface |
Answer» D. Unstable interface | |
12. |
Object is ________ abstraction. |
A. | Object |
B. | Logical |
C. | Real |
D. | Hypothetical |
Answer» D. Hypothetical | |
13. |
Class is _________ abstraction. |
A. | Object |
B. | Logical |
C. | Real |
D. | Hypothetical |
Answer» C. Real | |
14. |
Hiding the implementation complexity can ____________ |
A. | Make the programming easy |
B. | Make the programming complex |
C. | Provide more number of features |
D. | Provide better features |
Answer» B. Make the programming complex | |
15. |
Which among the following best defines abstraction? |
A. | Hiding the implementation |
B. | Showing the important data |
C. | Hiding the important data |
D. | Hiding the implementation and showing only the features |
Answer» E. | |
16. |
HIGHER_THE_LEVEL_OF_ABSTRACTION,_HIGHER_ARE_THE_DETAILS.?$ |
A. | True |
B. | False |
Answer» C. | |
17. |
In terms of stream and files________$ |
A. | Abstraction is called a stream and device is called a file |
B. | Abstraction is called a file and device is called a stream |
C. | Abstraction can be called both file and stream |
D. | Abstraction can’t be defined in terms of files and stream |
Answer» B. Abstraction is called a file and device is called a stream | |
18. |
Encapsulation_and_abstraction_differ_as:$ |
A. | Binding and Hiding respectively |
B. | Hiding and Binding respectively |
C. | Can be used any way |
D. | Hiding and hiding respectively |
Answer» B. Hiding and Binding respectively | |
19. |
If_two_classes_combine_some_private_data_members_and_provides_public_member_functions_to_access_and_manipulate_those_data_members._Where_is_abstraction_used? |
A. | Using private access specifier for data members |
B. | Using class concept with both data members and member functions |
C. | Using public member functions to access and manipulate the data members |
D. | Data is not sufficient to decide what is being used |
Answer» D. Data is not sufficient to decide what is being used | |
20. |
Abstraction principle includes__________? |
A. | Use abstraction at its minimum |
B. | Use abstraction to avoid longer codes |
C. | Use abstraction whenever possible to avoid duplication |
D. | Use abstraction whenever possible to achieve OOP |
Answer» D. Use abstraction whenever possible to achieve OOP | |