C++ Programming MCQ Questions with Answers - 1

Question: 1

Which punctuator is used to group a set of C++ statements?

(A) {}

(B) []

(C) ()

(D) /

Ans: A

{}

Question: 2

____ refers to the process of changing the data type of the value stored in a variable.

(A) Type char

(B) Type int

(C) Type float

(D) Type cast

Ans: D

Type cast

Question: 3

____ data types are structure, union, class and enumeration.

(A) Derived

(B) Integer

(C) Built-in

(D) User defined

Ans: D

User defined

Question: 4

Which operator is used to compare numerical values?

(A) Relational

(B) Conditional

(C) Assignment

(D) Arithmetic

Ans: A

Relational

Question: 5

____ allocates memory, based on the data type of the variable.

(A) Interpreter

(B) Link

(C) Converter

(D) Compiler

Ans: D

Compiler

Related Questions