
C++ Programming Quiz
Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
Dina Sharawy
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which header file is required to use cin and cout?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? cout << 4 + 5;
9
45
4 + 5
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for division in C++?
/
\
//
div
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of cout << "Hello" << " " << "World!";?
Hello World!
HelloWorld!
Error
Hello World!
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to read a string input from the user?
cin << stringVariable;
cin >> stringVariable;
read stringVariable;
input(stringVariable);
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? int a = 10; cout << a--;
10
9
Error
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the modulus operator (%) do?
Adds two numbers
Subtracts two numbers
Returns the remainder of a division
Multiplies two numbers
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
25 questions
Kuis Tambahan Python
Quiz
•
9th - 12th Grade
22 questions
Information System
Quiz
•
12th Grade
24 questions
Mikrotik Quiz XII
Quiz
•
12th Grade
25 questions
Understanding 1D Arrays in C
Quiz
•
12th Grade
25 questions
Kelas 9 - Halaman 49 (PTS)
Quiz
•
9th Grade - University
20 questions
12A and C version 1 Final Semester 1 Exam
Quiz
•
12th Grade
20 questions
ICT G 7 Chapter 2.1 Input and Output Devices
Quiz
•
7th Grade - University
22 questions
Unit-8 (QB64) Year-6
Quiz
•
6th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
29 questions
CCG 2.2.3 Area
Quiz
•
9th - 12th Grade
15 questions
PRESENTE CONTINUO
Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview
Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)
Quiz
•
9th - 12th Grade