C++ QUIZ
Quiz
•
Information Technology (IT)
•
12th Grade
•
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
REVIEW TIME
Quiz
•
9th Grade - University
14 questions
Programming Bach
Quiz
•
9th - 12th Grade
15 questions
Exploring Drone Technology in Career Clusters
Quiz
•
10th Grade - University
10 questions
Materi Berpikir Komputasional
Quiz
•
9th Grade - University
15 questions
Recap Handout 3 & 4
Quiz
•
6th Grade - University
15 questions
Table,Image formatting
Quiz
•
5th Grade - University
12 questions
UX: Week 2 CFU
Quiz
•
12th Grade
13 questions
Parcial 1 Reparación y Soporte- 5to BACO - I Unidad Forma B
Quiz
•
10th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
11 questions
Halloween Trivia #2
Quiz
•
12th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
8 questions
Veterans Day Quiz
Quiz
•
12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
21 questions
Halloween & Math
Quiz
•
8th - 12th Grade
