C++ MCQ Questions - Data Type

This section focuses on the "Data Type" in C++ programming langauge. These Multiple Choice Questions (MCQ) should be practiced to improve the C++ programming skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

1. Keyword of Floating point is?

A. double
B. float
C. char
D. floating

View Answer

2. Typical bit width of char is?

A. 0 byte
B. 1byte
C. 2byte
D. 3byte

View Answer

3. Typical range of unsigned int?

A. -127 to 127
B. 0 to 65,535
C. 0 to 4294967295
D. -2,147,483,648 to 2,147,483,647

View Answer

4. Which type has typical bit width 12 bytes?

A. float
B. double
C. long double
D. unsigned long long int

View Answer

5. We can create a new name for an existing type using?

A. type
B. tdef
C. wtype
D. typedef

View Answer

6. Each enumerator is a constant whose type is the enumeration.

C. Can be true or false
D. Can not say

View Answer

7. Keyword of Wide character is?

A. wchar
B. char
C. double
D. wchar_t

View Answer

8. signed long int typical range equal to?

A. signed short int
B. unsigned short int
C. long int
D. double

View Answer

9. By default, the value of the first name in enum data type is?

A. 0
B. 1
C. 2
D. 3

View Answer

10. We are also using sizeof() operator to get size of various data types.

A. Yes
B. No
C. Can be yes or no
D. Can not say

View Answer


* You must be logged in to add comment.