Top 1000 C++ Quiz - 1

Question: 1

The name assigned to a data field that can assume any of a given set of values is defined as the _____

(A) char

(B) num

(C) variables

(D) constant

Ans: C

variables

Question: 2

The data type unsigned long, long and float has _____ bits.

(A) 8

(B) 16

(C) 32

(D) 64

Ans: C

32

Question: 3

Which punctuator is used to terminate a C++ statement?

(A) ,

(B) .

(C) :

(D) ;

Ans: D

;

Question: 4

_____ data type cannot hold fractional values.

(A) double

(B) float

(C) char

(D) int

Ans: D

int

Question: 5

Relational, equality, component selection, class member conditional and comma are _____ operator.

(A) assignment

(B) binary

(C) shift

(D) unary

Ans: B

binary

Error Report!

Related Questions