CPP Data Types MCQ

Cpp MCQ
  1. Home
  2. Tutorials
  3. Cpp
  4. Data Types
  5. Multiple Choice Question

(1) Which of the following function is used to find size in bytes of any data type ?

A) getsize
B) sizeof
C) printsize
D) size

(2) How many bytes occupied by int data type in C/C++ ?

A) 4
B) 6
C) 8
D) 10

(3) Which of the following data type commonly used as counter variable.

A) int
B) float
C) doble
D) bool

(4) How many bytes occupied by float data type in memory ?

A) 2
B) 4
C) 6
D) 8

(5) Which of the following data type is used to store large decimal values

A) float
B) double
C) int
D) long

(6) How many bytes does bool data type takes in memory ?

A) 1
B) 2
C) 3
D) 4

(7) Which of the following data type is used to store single character

A) double
B) int
C) float
D) char
Comments
Login to TRACK of Comments.