
C++ Programming Quiz
Authored by Mark Freeman
Computers
10th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a "function" in C++?
A symbol or container that holds a value
A collection of commands and functions
A language that uses tags to format documents
A method to translate code into machine code
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an assignment operator in C++?
==
=
!=
<=
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the "if" statement do?
Terminates the entire code
Executes a block of code if a condition is true
Repeats a block of code
Declares a new variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of "library" in C++?
To execute the program
To store data
To provide pre-written code to use in programs
To format and parse elements within a document
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator would you use to compare two values in C++?
=
==
+
/
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a "loop" used for in programming?
To execute code once
To repeat a block of code multiple times
To terminate a program
To declare a variable
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which control structure allows you to loop through a block of code as long as a specified condition remains true?
If statement
While loop
Switch statement
Break statement
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
UH - 01 VII
Quiz
•
1st - 12th Grade
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
20 questions
CSS 10 - QUIZ
Quiz
•
10th Grade
16 questions
Kod Arahan
Quiz
•
9th - 11th Grade
18 questions
MS Word Columns and Tables
Quiz
•
10th - 11th Grade
20 questions
Yr 11 ICT quiz 1 Networks & Security
Quiz
•
10th - 11th Grade
20 questions
AĞ TEKNOLOJİLERİ
Quiz
•
9th - 10th Grade
16 questions
A2 Computer Science 4.10 Databases
Quiz
•
10th - 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