wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Data Types in C Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which data type in C is used to store only a single character?

a)

int

b)

char

c)

double

d)

float

2.

What is the range of the integer data type in C?

a)

-2,147,483,648 to 2,147,483,647

b)

0 to 65,535

c)

-128 to 127

d)

1.2E-38 to 3.4E+38

3.

Which data type in C is used to store decimal numbers with single precision?

a)

double

b)

int

c)

char

d)

float

4.

What is the size of the char data type in C?

a)

2 bytes

b)

8 bytes

c)

4 bytes

d)

1 byte

5.

Which data type in C is used to store decimal numbers with double precision?

a)

int

b)

char

c)

double

d)

float

6.

What is the range of the float data type in C?

a)

1.2E-38 to 3.4E+38

b)

0 to 65,535

c)

1.7E-308 to 1.7E+308

d)

-2,147,483,648 to 2,147,483,647

7.

Which data type in C is used to specify that no value is present?

a)

double

b)

float

c)

void

d)

int

8.

What is the size of the float data type in C?

a)

1 byte

b)

8 bytes

c)

4 bytes

d)

2 bytes

9.

Which data type in C is used to store integer numbers without decimal part?

a)

double

b)

int

c)

char

d)

float

10.

What is the range of the double data type in C?

a)

1.7E-308 to 1.7E+308

b)

1.2E-38 to 3.4E+38

c)

0 to 65,535

d)

-2,147,483,648 to 2,147,483,647