
CHAPTER 19 - C++
Presentation
•
Instructional Technology
•
8th Grade
•
Easy
Klea h
Used 8+ times
FREE Resource
25 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
JAVA VS C++
8
9
Multiple Choice
C++ is __________ sensitive.
keyword
case
time
syntax
10
Multiple Choice
What is mandatory in every C++ program?
Class definition
Skeleton program
Public inheritance
Static methods
11
Multiple Choice
In C++, every statement must end with a __________.
12
13
Multiple Choice
In C++, the operator << is known as:
14
15
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";
16
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
17
18
Multiple Choice
Which is an example of a single-line comment in C++?
19
Multiple Choice
Block comments in C++ are enclosed by:
20
21
Fill in the Blanks
22
23
Multiple Choice
Which of the following is a valid C++ variable declaration?
integer myVariable;
charactor myVariable;
int myVariable
24
25
Multiple Choice
Which variable name is invalid in C++?
distance_covered
26
27
Multiple Choice
Which is a correctly written constant in C++?
28
Multiple Choice
Which keyword is used to define a constant in C++?
class
Constant
29
30
31
Multiple Choice
Which command is used for standard input in C++?
32
33
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)
34
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
35
36
Multiple Choice
Which operator is used for multiplication in C++?
x
**
mult
37
38
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
39
40
Multiple Choice
Which relational operator means "not equal to" in C++?
!=
!==
><
=!
41
Multiple Choice
Which relational operator checks for greater than or equal to?
=>
>=
=>=
>==
=<=
42
43
Multiple Choice
In C++, which operator represents logical AND?
44
Multiple Choice
Which symbol is used for logical OR in C++?
OR
45
46
Multiple Choice
Which is a correct if statement syntax in C++?
if (condition) {
// code to execute
}
47
48
Multiple Choice
Which keyword must immediately follow if, if you ned to add 2 other conditions?
elif
else if
else
49
Multiple Choice
In C++, else without an if block is:
50
51
Show answer
Auto Play
Slide 1 / 51
SLIDE
Similar Resources on Wayground
46 questions
PERUBAHAN LINGKUNGAN
Presentation
•
8th Grade
44 questions
Zgradba periodnega sistema elementov
Presentation
•
8th Grade
46 questions
Unit 1 Lesson 4
Presentation
•
8th Grade
46 questions
TOday
Presentation
•
8th Grade
47 questions
LT 5 HR Diagram Synchronous
Presentation
•
8th Grade
45 questions
ÔN TẬP CUỐI KÌ 1 LỚP 9 NĂM 2024
Presentation
•
9th Grade
44 questions
Unit 4 Waves Test Review
Presentation
•
7th Grade
48 questions
Studio 2 Module1 REVISION
Presentation
•
8th Grade
Popular Resources on Wayground
28 questions
US History Regents Review
Quiz
•
11th Grade
36 questions
Biology Regents Review
Quiz
•
9th - 10th Grade
20 questions
Math Review
Quiz
•
3rd Grade
38 questions
Regents Life Science General Review
Quiz
•
9th Grade
20 questions
Math Review
Quiz
•
6th Grade
21 questions
EOY Grade 6 Benchmark Assessment - Content Skills
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Instructional Technology
45 questions
Earth and Space Science Regents: Exam Cram
Presentation
•
7th - 12th Grade
16 questions
Summer school Trivia
Quiz
•
5th - 8th Grade
20 questions
summer trivia
Quiz
•
8th Grade
20 questions
logos
Quiz
•
8th Grade
15 questions
Middle School Fun Trivia Questions
Quiz
•
7th - 8th Grade
45 questions
Final Review 2
Quiz
•
8th Grade
20 questions
Adjacent, Vertical, Complementary, Supplementary Angles
Quiz
•
8th Grade
40 questions
Grade 7 - General Knowledge
Quiz
•
6th - 8th Grade