
C++ Programming Quiz
Quiz
•
Information Technology (IT)
•
12th Grade
•
Practice Problem
•
Hard
Dina Sharawy
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
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
20 questions
Digital Citizenship Test
Quiz
•
7th Grade - University
20 questions
Câu hỏi về PowerPoint
Quiz
•
4th Grade - University
20 questions
Тест по основам Python(intro1)
Quiz
•
9th - 12th Grade
20 questions
ICT G 7 Chapter 2.1 Input and Output Devices
Quiz
•
7th Grade - University
20 questions
12A and C version 1 Final Semester 1 Exam
Quiz
•
12th Grade
16 questions
Тест по Turtle(Turtle5,6)
Quiz
•
9th - 12th Grade
16 questions
AZ-D1-L1 Questions
Quiz
•
12th Grade
20 questions
KUIS CLASS OFFICE CHAMPIONSHIP
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
11 questions
Exponent Quotient Rules A1 U7
Quiz
•
9th - 12th Grade
