C Programming Data Type Multiple choice question

Exercise : - Multiple Choice Question On C Programming, MCQ C Programming Data type

This section contains a lot of c programming question and answer with explanation on the topic data type. These question and answer are very much helpful for interview(campus interviews, walkin interviews, company interviews), competitive examination ,entrance test and placements. Each question having answer and explanation that would help you to understand easily. These question are designed from basic to advance level. So anyone can learn from here (beginner, fresher, engineering graduate, an experienced IT professional).

All the question of c programming are listed below on data type along with detailed explanation / solution and answer.

6) Which is correct with respect to size of the datatypes?
A. char > int > float
B. int > char > float
C. double > char > int
D. char < int < double

Answer:

char < int < double

Option:

( D )


Explanation :

char has lesser bytes than int and int has lesser bytes than double in any system.


7) Which of the datatypes have size that is variable?
A. struct
B. int
C. float
D. double

Answer:

struct

Option:

( A )


Explanation :

Since the size of the structure depends on its fields, it has a variable size.


8) integer datayape in c define by
A. int
B. integer
C. init
D. None of Above

Answer:

int

Option:

( A )


Explanation :

integer datatype in c language define by int


9) Identify the type(s) if data type.
A. Scalar
B. Drived
C. Pointer
D. All Of Above

Answer:

All Of Above

Option:

( D )


Explanation :

All are the type of data type. Scalar include integer, float, double, char. Derived include structure, union, array/string. Pointer is also data type.


10) What is the size of signed char in case of 16 bit compiler
A. 0 to 255
B. -128 to + 127
C. 0 to 254
D. None of Above

Answer:

-128 to + 127

Option:

( B )


Explanation :

No explanations available for this question.