
C++ data types
Authored by AZLIMI MAZLAN
Computers
University
Used 28+ 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
Which data type is used to store whole numbers without decimals?
int
char
string
double
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Which data type is used to store floating point numbers with decimals?
(a)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store single characters?
int
char
double
string
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store text?
int
char
string
double
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Which data type is used to store values with two states: true or false?
(a)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct data type for int?
myNum = 9;
myDoubleNum = 8.99;
myLetter = 'A';
myBool = false;
myText = "Hello World";
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct data type for char?
myNum = 9;
myDoubleNum = 8.99;
myLetter = 'A';
myBool = false;
myText = "Hello World";
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?