Technical Interview Questions on Datatypes – Objective Type

These C Technical Interview Questions Datatypes post providing basic, intermediate and Hard level examples in C data types. The practice of these examples makes you good in C programming.


What is type casting?

  1. Compiler time conversion of data
  2. Runtime conversion of data
  3. Neither A nor B
  4. None of above.

Answer :

Ans : 2 ; Conversion of data from one type to another type at runtime

Is C-language supports boolean data type?

  1. Yes
  2. No.
  3. Depends on a compiler.
  4. Depends on Version.

Answer :

Ans : 2 ; C doesn’t support boolean type.

How can we store a character or symbol into 1-byte memory?

  1. A language at most contains symbols of 1-byte range
  2. Represents an integer value with 1-byte range
  3. Both a and b
  4. ASCII representation
  5. All of the above.

Answer :

Ans: 5; All the above options describes the question

What is the pre-defined variable name to print signed integer minimum limit value?

  1. MIN_INT
  2. INT_MIN
  3. SINT_MIN
  4. All of the above.

Answer :

Ans : 2 ; INT_MIN in limits.h header file

Which header file represents the minimum and maximum values of each data type?

  1. limits.h
  2. stdio.h
  3. math.h
  4. ranges.h

Answer :

Ans : 1 ; limits.h header file contains pre-defined constant and global variables to represent minimum and maximum values of each data type

Which data type can hold 10 digit integer numbers?

  1. unsigned short
  2. unsigned int
  3. signed long
  4. unsigned long int
  5. All of the above.

Answer :

Ans : 4 ; Only unsigned long int can represents up to 10 digits number

%i represents the format specifier of which data type?

  1. char
  2. int
  3. float
  4. double.

Answer :

Ans : 2; integer we can also specify using ‘%i’ in c language

Which is the correct sequence with respect to the size of the data types?

  1. unsigned char > signed short < float
  2. signed short int > char < signed int
  3. char > int < double.
  4. double > char > int.

Answer :

Ans : 2 ;

C Technical Interview Questions – Operators

Share this