C++ MCQ online Test with Answers - 1

Question: 1

______ is the most striking feature of a class.

(A) Abstraction

(B) Encapsulation

(C) Polymorphism

(D) Inheritance

Ans: A

Encapsulation

Question: 2

_______ means, a program can be composed of existing and new modules.

(A) Modularisation

(B) Software re-use

(C) Both A and B

(D) None of these

Ans: B

Software re-use

Question: 3

______ is an approach available for problem-solving using the computer.

(A) Modular Programming

(B) Object-Oriented Programming

(C) Procedural Programming

(D) All the above

Ans: D

All the above

Question: 4

In which year the word object has appeared in relation to programming languages?

(A) 1970

(B) 1980

(C) 1990

(D) 2000

Ans: B

1980

Question: 5

Which of the following is the most important advantage of inheritance?

(A) Accessibility

(B) Code reusability

(C) Code modification

(D) Data hiding

Ans: B

Code reusability

Question: 6

The identifiable entity with some characteristics and behaviour is

(A) Member

(B) Class

(C) Object

(D) Structure

Ans: C

Object

Question: 7

Which of the following is a user defined data type?

(A) Float

(B) Class

(C) Int

(D) Object

Ans: B

Class

Question: 8

______ refers to showing only the essential features without revealing background details.

(A) Abstraction

(B) Encapsulation

(C) Inheritance

(D) Redundancy

Ans: A

Abstraction

Question: 9

_____ implements abstraction.

(A) Encapsulation

(B) Abstraction

(C) Polymorphism

(D) Inheritance

Ans: A

Encapsulation

Question: 10

______ is the term used to describe a programming approach based on classes and objects.

(A) Object-Oriented Programming

(B) Procedural Programming

(C) Modular Programming

(D) None of these

Ans: A

Object-Oriented Programming