Font size
WorksheetsData Types in C++
Total questions: 10
Worksheet time: 5mins
Arthur, Sophie, and Freya are having a debate about primitive data types in C++. Which of the following is a primitive data type in C++ that they should consider?
boolean
int
string
float
Lily, Elsie, and Noah are having a debate about which data type is used to store whole numbers in C++. Can you help them settle the debate?
float
boolean
int
string
Harry, Anaya, and Chloe are having a debate about which data type is used to store decimal numbers in C++. Can you help them settle the debate?
int
char
bool
float or double
Ishaan, William, and Emily are playing a game where they need to guess the data type used to store single characters in C++. Can you help them?
char
string
float
int
Scarlett, Evie, and Anaya are playing a game of C++ trivia. They come across a question: Which data type is used to store true or false values in C++?
int
float
bool
char
Aarav, Anaya, and Rohan are having a debate about the size of the 'int' data type in C++. Can you help them settle the argument?
4 bytes
8 bytes
16 bytes
2 bytes
Rosie, Rohan, and Matilda are having a debate about the size of the 'float' data type in C++. Can you help them settle the argument?
1
2
8
4
Eesha, Priya, and Aarav are having a debate about the size of the 'char' data type in C++. Can you help them settle the argument?
1 byte
8 bytes
4 bytes
2 bytes
Aarav, Max, and Neha are having a friendly debate about C++. Aarav says that the 'bool' data type in C++ is 1 byte in size. Max thinks it's 2 bytes, while Neha believes it's 4 bytes. And there's a rumor going around that it's actually 8 bytes! Who do you think is correct?
Aarav (1 byte)
Max (2 bytes)
Neha (4 bytes)
Rumor (8 bytes)
Leo, Benjamin, and Grace are having a friendly debate about C++. They can't agree on which data type is used to store a sequence of characters. Can you help them settle this?
char
int
float
string
