C++ Virtual Functions MCQ Questions and Answers - 1

Question: 1

____ are the building blocks C++ programs.

(A) Switch

(B) For

(C) If-else

(D) Functions

Ans: D

Functions

Question: 2

How many types of scopes in C++?

(A) 2

(B) 3

(C) 4

(D) 5

Ans: C

4

Question: 3

Which function executes faster but requires more memory space?

(A) Inline function

(B) Regular function

(C) Void function

(D) Normal function

Ans: A

Inline function

Question: 4

A variable declared above all blocks and functions has the ___

(A) Class scope

(B) Function scope

(C) Local scope

(D) Scope of a file

Ans: D

Scope of a file

Question: 5

The starting point for the execution of a program is ___

(A) Class

(B) Public

(C) Void ()

(D) Main()

Ans: D

Main()

Error Report!

Related Questions
Recent Articles
Trending Posts

REGISTER TO GET FREE UPDATES