C++ Programming MCQ Questions with Answers - 2

Question: 6

Redirection redirects

(A) Screen from a device to a stream

(B) A device from the screen to a file

(C) A stream from a file to the screen

(D) A file from a device to a stream

Ans: C

A stream from a file to the screen

Question: 7

Memorizing the new items used in C++ is

(A) Critically important

(B) Completely irrelevant

(C) The key to wealth and success

(D) Something you can return to later

Ans: D

Something you can return to later

Question: 8

The scope resolution operator usually

(A) Providing a useful conceptual frame work

(B) Specifies a particular class

(C) Tells what base class is derived from

(D) Limits the visibility of variables to a certain function

Ans: B

Specifies a particular class

Question: 9

An enumerated data type brings together a group of

(A) Constant values, integers with user defined names

(B) Related data type

(C) Items of different data type

(D) All of these

Ans: A

Constant values, integers with user defined names

Question: 10

A variable defined within a block is visible

(A) From the point of definition onward in the block

(B) From the point of definition on ward in the function

(C) From the point of definition on ward in the program

(D) Throughout the function

Ans: A

From the point of definition onward in the block

Related Questions