WorksheetsCSNP-04103 C++ Chapter 7 - Different Data Types
Total questions: 10
Worksheet time: 5mins
What do we use the #define compiler directive for?.
Load a C++ library or class.
Define constants
Define variables
Load functions
Is #define the newest way to define constants?.
True
False
Are integer numbers stored in memory as hexadecimals?.
True
False
Are floating-points numbers stored in memory as binary numbers using scientific notation composed of Mantissa, sign and exponent?.
True
False
What is the largest integer data type in C++?
short
int
long long int
long long double
What is the largest floating-point data type?.
long long short
long double
long long long float
double
The value of average in: int average = float (10/2); is
5.0
5
5.0000000
1/2
In order to get the ASCII representation of a character your cast the character using int(' ')?.
True
False
In order to print the ASCII symbol you cast the number representation as int( );
True
False
What does the function toupper(char); does?.
It converts numbers to a higher precision.
It rounds numbers to the next integer.
It converts lower case characters to uppercase.
it converts upper case characters to lowercase.
