C++ QUIZ
Quiz
•
Information Technology (IT)
•
12th Grade
•
Practice Problem
•
Medium
AHMAD AINI
Used 1+ times
FREE Resource
Enhance your content in a minute
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Who is the creator of C++?
Dennis Ritchie
James Gosling
Bjarne Stroustrup
Guido van Rossum
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
In which year was C++ created?
1980✅
1983
1972
1991
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is a correct C++ comment?
This is a comment
<-- This is a comment -->
# This is a comment
/* This is a comment */
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the correct syntax to print "Hello, World!" in C++?
print("Hello, World!");
Console.WriteLine("Hello, World!");
cout << "Hello, World!";
printf("Hello, World!");
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this if-else statement?
int x = 10;
if (x > 10)
cout << "Greater";
else
cout << "Smaller";
Smaller
Greater
Error
No output
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will this loop execute?
for(int i = 0; i < 5; i++) {
cout << i << " ";
}
Infinite
6 times
4 times
5 times
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this loop?
int i = 1;
while (i < 4) {
cout << i << " ";
i++;
}
1 2 3
0 1 2
1 2 3 4
Infinite loop
Create a free account and access millions of resources
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
0- and 1-Pixel Art Activity
Quiz
•
9th - 12th Grade
10 questions
Sem 2 IT Test 1
Quiz
•
12th Grade - University
15 questions
Asesmen Formatif Arduino LCD Kelas XII
Quiz
•
12th Grade
10 questions
Tin 9 Bài 8. SUMIF
Quiz
•
9th Grade - University
15 questions
UJIAN SUB SUMATIF INFORMATIKA KELAS XII SEMESTER 1 TP 2024/2025
Quiz
•
12th Grade
16 questions
Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data
Quiz
•
11th Grade - University
14 questions
Week 3-Database Quiz 1
Quiz
•
9th - 12th Grade
10 questions
Mikrotik
Quiz
•
12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
11 questions
Solve Systems of Equations and Inequalities
Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 2 Review (CED)
Quiz
•
9th - 12th Grade
20 questions
Winter Jokes
Quiz
•
5th - 12th Grade
