C++ Basics Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Thi (Artist)
Used 4+ times
FREE Resource
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
Similar Resources on Wayground
6 questions
N5 Computing - Logical Operators Starter - Plenary

Quiz
•
10th Grade
15 questions
Selection in Python

Quiz
•
1st - 9th Grade
15 questions
PYTHON PROGRAMMING

Quiz
•
11th - 12th Grade
10 questions
if/else statements quiz

Quiz
•
9th Grade - University
10 questions
Python beginners quiz

Quiz
•
9th - 10th Grade
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
10 questions
Unit 23 - Pop Quiz

Quiz
•
12th Grade
15 questions
Python Basics Quiz 1

Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade