Datatype in C MCQs Exercise II

Ques 1 Datatype


Which of the following is derived datatype ?

A Array
B Structure
C Both (a) and (b)
D None of these

Common Derived Data Types:
Arrays: Collections of elements of the same data type, accessed using an index.
Structures: Composites of different data types under a single name, accessed using member names.
Unions: Similar to structures but hold only one value at a time (useful for space efficiency).
Pointers: Variables that store memory addresses, allowing indirect data access.

Ques 2 Datatype


"It takes 1 bytes memory" is known as ?

A char
B String
C short int
D None of these

The statement "It takes 1-byte memory" is known as a char data type in C.
In C, a char data type is used to store a single character or a small integer value, and it takes 1 byte of memory.
So, the correct answer is a) char.

Ques 3 Datatype


What is the range of values that can be stored by a double data type in C?

A -32768 to 32767
B -2147483648 to 2147483647
C -1.7976931348623157e+308 to 1.7976931348623157e+308
D -3.4028234663852886e+38 to 3.4028234663852886e+38