WorksheetsC# Data Types
Total questions: 10
Worksheet time: 8mins
Stores whole numbers from -2,147,483,648 to 2,147,483,647
int
long
float
double
Stores whole numbers from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
int
long
float
double
Stores fractional numbers. Sufficient for storing 6 to 7 decimal digits
int
long
float
double
Stores fractional numbers. Sufficient for storing 15 decimal digits
int
long
float
double
Stores true or false values
int
bool
char
string
Stores a single character/letter, surrounded by single quotes
int
bool
char
string
Stores a sequence of characters, surrounded by double quotes
int
bool
char
string
Number types are divided into two groups:
Integer types and Floating point types
True
False
Which of the following value is a string?
'D'
"Grade10"
123
5.99D
Which of the following value is a double?
'D'
"Grade10"
5.99F
5.99D
