C++ Basics Quiz
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Thi (Artist)
Used 4+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is #include ?
An object
A header file library
A namespace
A function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
C++ is case-sensitive: 'main' and 'Main' has different meaning.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++, each code statement must end with a semicolon (;)
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store a single character in C++?
char
int
bool
float
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What operator is used with cin to read input?
>> (extraction operator)
% (modulus operator)
<< (insertion operator)
== (comparison operator)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? cout << "Hello World!"
Hello World!
cout
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which character can be used to insert a new line in your output?
\c
\n
\i
\l
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
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
15 questions
LA1.C1: Introduction to Small Basic
Quiz
•
9th Grade
10 questions
Microsoft Excel
Quiz
•
10th Grade
13 questions
Melody Tone
Quiz
•
9th Grade
15 questions
MVC-PHP
Quiz
•
12th Grade
10 questions
Scratch
Quiz
•
KG - Professional Dev...
10 questions
Network Security
Quiz
•
9th - 11th Grade
10 questions
What is a program slides(6:16)
Quiz
•
8th - 12th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
