C++ SHS B1-B2

Quiz
•
Computers
•
11th Grade
•
Hard
John Oli
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
True or False: In C++, the `cout` object is used to output data to the console.
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
True or False: The following code will correctly declare an integer variable in C++:
int number = 5;
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
True or False: The `<<` operator is used with `cout` for input operations.
True
False
Answer explanation
False (It is used for output operations)
4.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
True or False:
The statement `cout >> "Hello, World!";` is a valid way to print "Hello, World!" in C++.
True
False
Answer explanation
False (The correct syntax is `cout << "Hello, World!";`)
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
True or False: In C++, a variable declared as `float` can store decimal values.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
True or False:
The following code snippet will print `25` to the console:
int x = 5; cout << x * 5;
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
True or False:
The keyword `double` is used in C++ to declare a variable that can store a floating-point number with double precision.
True
False
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Массивы C++

Quiz
•
10th - 11th Grade
20 questions
Phyton-Midterm

Quiz
•
11th Grade
15 questions
Proses Pemrograman

Quiz
•
11th Grade
20 questions
Javascript Conditional Statements

Quiz
•
9th - 12th Grade
11 questions
Python Boolean

Quiz
•
11th - 12th Grade
11 questions
X-11

Quiz
•
11th Grade
18 questions
PH kelas 10 Bab 1

Quiz
•
9th - 12th Grade
20 questions
K11_Kiểm tra thường xuyên_Lần 1_HK1

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade