MCQ on Data Types in c

Hello students welcome to CSE Study247, Today I am provide you MCQ on Data Types in c.

This page provide 20 Multiple choice question with Answer that is very useful of Computer science students like preparation of many exam Like ( ISRO,DRDO ,Semester, Interview, TCS , Railway & another Government Sector)

C programming is the basic language of programming that help to learn another language. So this MCQ is very useful for you.

C-Programming-MCQ-Multiple-Choice-Questions

C is a general purpose ,high level language that originally developed by Dennis Ritchie to develop the UNIX operating system at Bell labs.

Q.1 Which of the following is a predefined data type?

  • A) Array
  • B) Pointer
  • C) int
  • D) union

Q.2 What is the size of char data type?

  • A) 1 Byte
  • B) 8 Bits
  • C) Both A & B
  • D) 4 Bits

Q.3 What is the size of int data type (Turbo C)?

  • A) 1 Byte
  • B) 2 Byte
  • C) 4 Byte
  • D) 8 Byte

Q.4 Which of the following is not a basic data type in C language?

  • A) char
  • B) int
  • C) float
  • D) real

Q.5 Output of the program: void main(){ int x=15; printf('%d %d', x, x++); }

  • A) 15 15
  • B) 15 16
  • C) 16 15
  • D) Undefined behavior

Q.6 What is the range of signed char data type?

  • A) -127 to 128
  • B) -128 to 127
  • C) -32768 to 32767
  • D) 0 to 255

Q.7 Storage size of float data type is ______ bytes.

  • A) 1
  • B) 2
  • C) 4
  • D) 8

Q.8 Storage size of int data type (Turbo C) is ______ bytes.

  • A) 1
  • B) 2
  • C) 4
  • D) 8

Q.9 Storage size of double data type is ______ bytes.

  • A) 2
  • B) 4
  • C) 8
  • D) 16

Q.10 Output of program: void main(){ float x='a'; printf('%f', x); }

  • A) a
  • B) 0.000000
  • C) 97.000000
  • D) Error

Q.11 ____ is an empty data type.

  • A) char
  • B) int
  • C) void
  • D) struct

Q.12 Enumerated data types are defined using the ____ keyword.

  • A) char
  • B) enum
  • C) struct
  • D) typedef

Q.13 ____ values cannot be changed during program execution.

  • A) Variable
  • B) Constant
  • C) Integer
  • D) Pointer

Q.14 Return type of sqrt() function is?

  • A) int
  • B) float
  • C) double
  • D) void

Q.15 Which datatype gives error with modulus (%) operator?

  • A) int
  • B) short
  • C) float
  • D) long

Q.16 Format specifier '%i' is used for:

  • A) int
  • B) char
  • C) float
  • D) double

Q.17 Signed and unsigned representation is available for:

  • A) float
  • B) double
  • C) int
  • D) void

Q.18 Turbo C/C++ compiler is a:

  • A) 16-bit
  • B) 32-bit
  • C) 64-bit
  • D) None

Q.19 Output of program: void main(){ int x=2; x+=5; printf('%d', x); }

  • A) 2
  • B) 5
  • C) 7
  • D) Garbage

Q.20 Range of int data type (16-bit) is:

  • A) -128 to 127
  • B) -32768 to 32767
  • C) 0 to 65535
  • D) -2147483648 to 2147483647

1. Official TelegramClick Here
2. Telegram For CSE MCQsClick Here
3. You TubeClick Here
Scroll to Top