
Quiz on Data Types in C
Authored by NARENDRA BAVISETTI
Education
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid C data type for representing a floating-point number?
int
char
float
bool
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of an int data type on most 32-bit systems?
1 byte
2 bytes
4 bytes
8 bytes
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type would you use to store a single character in C?
char
int
float
double
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the range of values for an unsigned int in C?
-2,147,483,648 to 2,147,483,647
0 to 4,294,967,295
-128 to 127
0 to 255
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types has the highest precision for floating-point numbers?
float
double
long double
int
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of a char data type in C?
1 byte
2 bytes
4 bytes
8 bytes
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type should be used to store large integers that exceed the range of int?
short
long
long long
float
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?