1000+ C++ Questions and Answers Pdf - 2

Question: 6

A function argument is a

(A) Value sent to function by the calling program

(B) Value returned by the function to the calling program

(C) Variable in the function that receives a value from the calling program

(D) Way that functions resist accepting the calling program’s values

Ans: A

Value sent to function by the calling program

Question: 7

The break statement causes an exit

(A) From the innermost loop or switch

(B) Only from the innermost switch

(C) Only from the innermost loop

(D) From all loops and switches

Ans: D

From all loops and switches

Question: 8

Element double array [7] is which element of the array?

(A) Sixth

(B) Seventh

(C) Eighth

(D) Impossible

Ans: C

Eighth

Question: 9

In C++, a structure brings together a group of

(A) Items of the same data type

(B) Integers with user-defined names

(C) Related data items, variables

(D) All of these

Ans: C

Related data items, variables

Question: 10

In C++, which of the following can legitimately be passed to a function?

(A) A constant

(B) A variable

(C) A structure

(D) All of these

Ans: D

All of these

Related Questions