C++ Programming Objective Questions and Answers Pdf - 1

Question: 1

_____ variable of the same data type can be declared in a single declaration statement.

(A) Two

(B) Three

(C) Only one

(D) More than one

Ans: D

More than one

Question: 2

The special characters like tab, backspace, line feed, null, back slash are called ____ character constant

(A) Floating

(B) String

(C) Graphic

(D) Non-graphic

Ans: D

Non-graphic

Question: 3

What type of integer starts with 0X?

(A) Decimal

(B) Binary

(C) Hexadecimal

(D) Octal

Ans: C

Hexadecimal

Question: 4

The sequence of digits starting with 0 is treated as ___ constant.

(A) Penta

(B) Hexadecimal

(C) Binary

(D) Octal

Ans: D

Octal

Question: 5

The body of function contains ___

(A) Return statement

(B) A variable declaration part

(C) Processing part

(D) All the above

Ans: D

All the above

Related Questions