Search Header Logo

C++ data types

Authored by AZLIMI MAZLAN

Computers

University

Used 25+ times

C++ data types
AI

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?

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?

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?