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 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 foolowing is a predefine data type
Q.2 What is the size of char data type ?
Q.3 What is the size of an int data type?
Q.4 Which of the following is not a basic data type in C language?
Q.5 Find out the output for the following program
void main()
{
int x=15;
printf(“%d%d”,x,x++);
}
Q.6 —- is range of char data type in c ?
Q.7 Storage size of float data type is —— bytes
Q.8 Storage size of int data type is —— bytes
Q.9 Storage size of double data type is —— bytes
Q.10 Find out the output for the following program
void main()
{
float x = ‘a’;
printf(“%f”, a);
}
Explanation ASCII value of a is 97, the same is assigned to the float variable and printed.
Q.11 — is an empty data type.
Q.12 Enumerated data types define using — keyword
Q.13 —- value can not be changed during program execution.
Q.14 What is the return_type of sqrt() ?
Q.15 Find out the output for the following program
void main()
{
int n=1;
while(n<=5)
printf(“%d”,++n);
}
Q.16 Which datatype will throw an error when we perform modulus operation(%) ?
Q.17 The format identifier “%i” is used for which datatype ?
Q.18 Signed and unsigned representataion is available for
Q.19 Size of a Turbo C C++ Compiler is ?
Q.20 Find out the output for the following program
void main()
{
int x=2;
x+=5
printf(“%d”,x);
}
Q.21 —- is range of int data type in c ?
1. Official Telegram | Click Here |
2. Telegram For CSE MCQs | Click Here |
3. You Tube | Click Here |