wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C# Data Types

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

Stores whole numbers from -2,147,483,648 to 2,147,483,647

a)

int

b)

long

c)

float

d)

double

2.

Stores whole numbers from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

a)

int

b)

long

c)

float

d)

double

3.

Stores fractional numbers. Sufficient for storing 6 to 7 decimal digits

a)

int

b)

long

c)

float

d)

double

4.

Stores fractional numbers. Sufficient for storing 15 decimal digits

a)

int

b)

long

c)

float

d)

double

5.

Stores true or false values

a)

int

b)

bool

c)

char

d)

string

6.

Stores a single character/letter, surrounded by single quotes

a)

int

b)

bool

c)

char

d)

string

7.

Stores a sequence of characters, surrounded by double quotes

a)

int

b)

bool

c)

char

d)

string

8.

Number types are divided into two groups:

Integer types and Floating point types

a)

True

b)

False

9.

Which of the following value is a string?

a)

'D'

b)

"Grade10"

c)

123

d)

5.99D

10.

Which of the following value is a double?

a)

'D'

b)

"Grade10"

c)

5.99F

d)

5.99D