C Data Type - placement questions answers

C Data Type - placement questions answers


1. Which of the following is not a derived data type in c?

a) Function
b) Pointer
c) Enumeration
d) Array

View Answer / Hide Answer

ANSWER: Enumeration




2. Integral data type is ____?

a) Void
b) Char
c) Float
d) Double

View Answer / Hide Answer

ANSWER: Char




3. The Format Identifier %u is used for?

a) Integer
b) Float
c) Char
d) Decimal
e) Unsigned decimal

View Answer / Hide Answer

ANSWER: Unsigned Decimal.




4. Size of an int data type is ____ ?

a) 4 Bytes
b) 8 Bytes
c) Depends on Compiler/System
d) Cannot be determined

View Answer / Hide Answer

ANSWER: Depends on compiler/System




5. Sort int in C language is?

a) Basic Datatype of C
b) Qualifier
c) All of the mentioned
d) short is the qualifier and int is the basic datatype

View Answer / Hide Answer

ANSWER: short is the qualifier and int is the basic datatype




6. Data type qualifiers can be classified into?

a) 4
b) 5
c) 2
d) 8

View Answer / Hide Answer

ANSWER: 2




7. The C language defines ____ fundamental data types

a) 3
b) 4
c) 5
d) 6

View Answer / Hide Answer

ANSWER: 4




8. What is Enum datatype syntax?

a) Enum[data type]{const1, const2, const3....}
b) Enum{const1, const2,....}
c) Enum[int datatype]
d) None

View Answer / Hide Answer

ANSWER: Enum[data type]{const1, const2, const3....}




9. Character literals in C syntax are?

a) A
b) ‘A’
c) “4”
d) None

View Answer / Hide Answer

ANSWER: ‘A’




10. Range of unsigned int is?

a) 0 to 65,535 or 0 to 4,294,967,295
b) 0 to 65,535
c) 0 to 4,294,967,296
d) None

View Answer / Hide Answer

ANSWER: 0 to 65,535 or 0 to 4,294,967,295



Post your comment