C++ Virtual Functions MCQ Questions and Answers - 2

Question: 6

The functions that return no value is declared as ___

(A) Null

(B) Void

(C) Static

(D) Public

Ans: B

Void

Question: 7

In ___ method any change in the formal parameters is not reflected back to the actual parameter.

(A) Call by value

(B) Call by reference

(C) Call

(D) Return

Ans: B

Call by reference

Question: 8

The main purpose of function prototype is to help the ____ to check the data requirement of the function.

(A) Object

(B) Linker

(C) Interpreter

(D) Compiler

Ans: D

Compiler

Question: 9

An ___ looks like a normal function in the source file but inserts the function’s code directly into the calling program.

(A) Inline

(B) Online

(C) Mainline

(D) Line

Ans: A

Inline

Question: 10

Inline keyword is just a request to the ___

(A) Object

(B) Linker

(C) Interpreter

(D) Compiler

Ans: D

Compiler

Related Questions