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


a is the correct option

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


a is the correct option

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


c is the correct option