C++ SHS B1-B2
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
John Oli
Used 1+ times
FREE Resource
Enhance your content in a minute
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
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?
Similar Resources on Wayground
10 questions
Grade 11 Term 4 Practice 2
Quiz
•
11th Grade
20 questions
Yr 11 ICT quiz 1 Networks & Security
Quiz
•
10th - 11th Grade
16 questions
A2 Computer Science 4.10 Databases
Quiz
•
10th - 12th Grade
15 questions
CIW
Quiz
•
9th - 12th Grade
12 questions
HTML
Quiz
•
9th - 12th Grade
10 questions
Logic Gates
Quiz
•
9th - 12th Grade
20 questions
Quiz/Review in Servicing 2
Quiz
•
11th Grade
18 questions
MS Word Columns and Tables
Quiz
•
10th - 11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
