
C++ Programming Quiz
Quiz
•
Computers
•
10th Grade
•
Hard
Mark Freeman
FREE Resource
Enhance your content in a minute
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
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
19 questions
tin 5 tuan 9
Quiz
•
1st - 12th Grade
20 questions
Software
Quiz
•
10th Grade
20 questions
Quiz
•
7th - 12th Grade
20 questions
BÀI 24-25 TIN 10
Quiz
•
10th Grade
20 questions
File Extensions
Quiz
•
9th Grade - Professio...
20 questions
TEST -EXCEL 1
Quiz
•
1st - 10th Grade
18 questions
QUIZ 1 ALGEBRA DE BOOLE
Quiz
•
10th Grade
20 questions
Types of Computers
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Six Weeks Test 2 Review
Lesson
•
9th - 12th Grade
12 questions
Overview of Mexico Part 1
Lesson
•
9th - 12th Grade
10 questions
Exploring Computer Hardware and Software Components
Interactive video
•
6th - 10th Grade
