C++ Online Test | Questions and Answers for Gate 2020-2021 - 1

Question: 1

Which one gives special meaning to the language compiler?

(A) Constant

(B) Variable

(C) Keywords

(D) Compiler

Ans: C

Keywords

Question: 2

Which operator requires one operand?

(A) Unary

(B) Binary

(C) Ternary

(D) Both (a) and (b)

Ans: A

Unary

Question: 3

___ data type to indicate the function does not return a value.

(A) Static

(B) Main

(C) Public

(D) Void

Ans: C

Public

Question: 4

___  type is further divided into int and char.

(A) Float

(B) Int

(C) Char

(D) Integral

Ans: D

Integral

Question: 5

The enum, unsigned int, short int and int data type’s uses ___ bits.

(A) 8

(B) 16

(C) 32

(D) 64

Ans: B

16

Related Questions