C++ QUIZ

Quiz
•
Information Technology (IT)
•
12th Grade
•
Medium
AHMAD AINI
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
17 questions
Экзамен C++ ОП

Quiz
•
9th - 12th Grade
10 questions
Quiz aula 8

Quiz
•
9th - 12th Grade
15 questions
ความรู้พื้นฐานการเขียนโปรแกรม Python

Quiz
•
12th Grade
10 questions
Aula 5

Quiz
•
9th - 12th Grade
15 questions
HTML 5 2o. TEC

Quiz
•
12th Grade
10 questions
python conditional statements intermediate level

Quiz
•
9th - 12th Grade
15 questions
Review Time

Quiz
•
11th Grade - University
10 questions
Basic Logic & Programming pt.2

Quiz
•
6th Grade - University
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 Information Technology (IT)
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie

Quiz
•
5th - 12th Grade
20 questions
Macromolecules

Quiz
•
9th - 12th Grade