Question 1
Which of the following is a basic data type in C?
string
float
boolean
array
Question 2
How many bytes does an int typically occupy on a 32-bit system?
1
2
3
4
Question 3
Which of the following can be used to find the memory size of any data type in C?
memsize()
length()
size()
sizeof
Question 4
Which of the following stores a single character?
int
char
float
double
Question 5
What is the range of char in a typical C compiler?
0 to 255
-128 to 127
-127 to 127
-256 to 255
Question 6
Which data type would you use to store a large floating-point number with high precision?
float
char
int
double
Question 7
What is the keyword for an unsigned integer in C?
no_sign
negative sign
unsigned
positive
Question 8
Which of the following is a derived data type in C?
float
array
int
char
Question 9
Which data type is used for storing numbers in exponential form?
char
float
double
both B and C
Question 10
What is the size of a double on most 64-bit systems?
4 bytes
6 bytes
8 bytes
10 bytes
There are 19 questions to complete.