
CHAPTER 19 - C++
Presentation
•
Instructional Technology
•
8th Grade
•
Easy
Klea h
Used 6+ times
FREE Resource
24 Slides • 26 Questions
1
2
3
4
Multiple Choice
Which game is not coded in C++?
GTA5
PubG
5
6
Multiple Choice
Which of the following is NOT commonly created using C++?
Operating Systems
Video Games
Smart Contracts
Databases
7
8
Multiple Choice
C++ is __________ sensitive.
keyword
case
time
syntax
9
Multiple Choice
What is mandatory in every C++ program?
Class definition
Skeleton program
Public inheritance
Static methods
10
Multiple Choice
In C++, every statement must end with a __________.
11
12
Multiple Choice
In C++, the operator << is known as:
13
14
Multiple Choice
Which code will output "HelloWorld" without a space between words?
cout << "Hello" << "World";
cout << "Hello" << endl << "World";
cout << "Hello " << "World";
cout << "Hello" << endl; cout << "World";
15
Multiple Choice
What is the effect of inserting << endl in C++ output?
It adds a tab space
It deletes previous output
It moves to the next line
It prints a special symbol
16
17
Multiple Choice
Which is an example of a single-line comment in C++?
18
Multiple Choice
Block comments in C++ are enclosed by:
19
20
Fill in the Blanks
21
22
Multiple Choice
Which of the following is a valid C++ variable declaration?
integer myVariable;
charactor myVariable;
int myVariable
23
24
Multiple Choice
Which variable name is invalid in C++?
distance_covered
25
26
Multiple Choice
Which is a correctly written constant in C++?
27
Multiple Choice
Which keyword is used to define a constant in C++?
class
Constant
28
29
30
Multiple Choice
Which command is used for standard input in C++?
31
32
Multiple Choice
Which function is used to read an entire line, including spaces?
readLine(cin, var)
getLine(cin, var)
input(cin, var)
scanLine(cin, var)
33
Task: Write a program that asks the user for their name, age and grade, then prints a greeting.
Requirements:
✅ Use cout to ask for the user's name, age, and grade
✅ Use cin to receive input from the user
✅ Display a message to welcome them to Computer Lab.
✅ Add at least one single-line comment explaining a line of code
✅ Add one multi-line comment describing what the program does at the beginning
✅ Share the link of your program via Quickschools
34
35
Multiple Choice
Which operator is used for multiplication in C++?
x
**
mult
36
37
Multiple Choice
C++ does NOT have an exponent (power) operator
True, you cannot do exponent calculations in C++
False, C++ uses the ^ operator for exponentiation.
I have no idea what exponent is
True, but it provides a method from Math library
38
39
Multiple Choice
Which relational operator means "not equal to" in C++?
!=
!==
><
=!
40
Multiple Choice
Which relational operator checks for greater than or equal to?
=>
>=
=>=
>==
=<=
41
42
Multiple Choice
In C++, which operator represents logical AND?
43
Multiple Choice
Which symbol is used for logical OR in C++?
OR
44
45
Multiple Choice
Which is a correct if statement syntax in C++?
if (condition) {
// code to execute
}
46
47
Multiple Choice
Which keyword must immediately follow if, if you ned to add 2 other conditions?
elif
else if
else
48
Multiple Choice
In C++, else without an if block is:
49
50
Show answer
Auto Play
Slide 1 / 50
SLIDE
Similar Resources on Wayground
44 questions
USAHA DAN PESAWAT SEDERHANA
Presentation
•
8th Grade
48 questions
Plate Tectonics
Presentation
•
8th Grade
49 questions
LESSON: Translating Expressions/Equations/Inequalities
Presentation
•
8th Grade
45 questions
FSA review unit 6: Biology
Presentation
•
8th Grade
43 questions
Computer Hardware
Presentation
•
7th Grade
47 questions
Unit 3 Ratios & Proportions Review
Presentation
•
7th Grade
45 questions
B3C5_溫度與熱
Presentation
•
8th Grade
44 questions
Math Benchmark Q2 PT.2
Presentation
•
8th Grade
Popular Resources on Wayground
20 questions
STAAR Review Quiz #3
Quiz
•
8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
6 questions
Marshmallow Farm Quiz
Quiz
•
2nd - 5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
12 questions
What makes Nebraska's government unique?
Quiz
•
4th - 5th Grade
Discover more resources for Instructional Technology
20 questions
STAAR Review Quiz #3
Quiz
•
8th Grade
8 questions
Amoeba Sister Asexual vs Sexual Reproduction
Interactive video
•
8th Grade
15 questions
Pythagorean Theorem Word Problems Quizizz
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
4 questions
Spring Break rest and recharge
Presentation
•
6th - 8th Grade
20 questions
Scatter Plots and Line of Best Fit
Quiz
•
8th Grade
19 questions
Introduction to Properties of Waves
Presentation
•
6th - 8th Grade
16 questions
Interactions within Ecosystems
Presentation
•
6th - 8th Grade