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
20 questions
HTML and CSS

Quiz
•
9th - 12th Grade
10 questions
Le basi C++

Quiz
•
11th Grade
15 questions
Advanced HTML and CSS

Quiz
•
9th - 12th Grade
12 questions
HTML & CSS

Quiz
•
10th - 12th Grade
12 questions
Divide et Impera

Quiz
•
11th Grade - University
17 questions
Operators in Python

Quiz
•
9th Grade - Professio...
15 questions
Latihan Soal

Quiz
•
11th Grade
14 questions
C ++ For Loop

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade