
C Data Types Quiz
Authored by Dr. Mary
Education
University
Used 12+ 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
What is the size of the integer data type in C?
8 bytes
1 byte
4 bytes
2 bytes
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which format specifier is used for the float data type in C?
%lf
%f
%c
%d
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the range of the character data type in C?
0 to 65535
-32768 to 32767
0 to 255
-128 to 127
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a user-defined data type in C?
struct
char
float
int
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the range of the double data type in C?
1.2E-38 to 3.4E+38
1.7E-308 to 1.7E+308
0 to 255
-2,147,483,648 to 2,147,483,647
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the void data type represent in C?
A single character
No value
An integer
A floating-point number
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type can store negative values?
unsigned long int
short int
unsigned short int
unsigned int
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?