Data Types in C Language

Programming Language > C Programming Language

This MCQ quiz tests your knowledge of data types in the C programming language. Test your understanding of the different types of data, such as integers, floats, and characters, and how they are used in C programming. ➲ Data Types in C Language - Quiz


  • A Temperature in Fahrenheit is 31.00
  • B Temperature in Fahrenheit is 46.00
  • C Temperature in Fahrenheit is 40.00
  • D Temperature in Fahrenheit is 37.00
  • A Program will compile and print the output ATNYLA
  • B Program will compile and print ATNYLA for 5 times
  • C Program will compile and print the ASCII value of ATNYLA
  • D The compiler will flag an error
  • A Array
  • B Structure
  • C Union
  • D All
  • A Unsigned short
  • B Long
  • C Int
  • D Signed short
  • A 4 Bytes
  • B 8 Bytes
  • C 2 Bytes
  • D Depends on the system/compiler
  • A not equal
  • B equal
  • C Output depends on compiler
  • D None of the mentioned
  • A not equal
  • B equal
  • C Output depends on compiler
  • D None of the mentioned
  • A char > int > float
  • B int > char > float
  • C char < int < double
  • D double > char > int
  • A 5
  • B 4
  • C 8
  • D 9
  • A b
  • B b.0000000
  • C run time error
  • D 98.000000
  • A 10
  • B 9
  • C 8
  • D Cannot find size of modifiers
  • A 8
  • B 4
  • C 16
  • D 32
  • A extern
  • B interrupt
  • C huge
  • D All
  • A 4 4 1
  • B 16 8 4
  • C 8 4 2
  • D 4 2 1
  • A 65536 -10
  • B 0 65536
  • C 0 0
  • D Compilation error
  • A 10 4294967286 0 0
  • B 10 65526 0 0
  • C A and B
  • D None
  • A (float)2.76
  • B 2.76f or 2.76F
  • C 2.76 itself of "float" data type i.e. nothing else required.
  • D float(2.76)
  • A 0
  • B 1
  • C True
  • D False
  • A pi = 3.14F;
  • B const float pi = 3.14F;
  • C const pi; pi = 3.14F;
  • D float pi = 3.14F;
  • A 34
  • B Garbage
  • C Compilation error
  • D We cannot predict
  • A Short
  • B Integer
  • C Long
  • D Byte
  • A No
  • B Yes
  • C Compile time error
  • D Run time Error
  • A 4 byte
  • B 8 byte
  • C 16 byte
  • D 32 byte
  • A Byte
  • B Char
  • C Integer
  • D Short
  • A Pointer
  • B Enumeration
  • C Function
  • D Array
  • A sign
  • B unsign
  • C long
  • D All
  • A short is the qualifier and int is the basic datatype
  • B All are Qualifier
  • C Basic data type of C
  • D All of the mentioned.
  • A Y12
  • B Sum_1
  • C _temperature
  • D 4th
  • A 21
  • B 20
  • C 22
  • D no output
  • A Float
  • B Union
  • C Array
  • D Pointer
  • A Single quotes
  • B Double quotes
  • C Both a and
  • D None of these