C++ Unit 1 Review

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Richard Ghiorse
Used 7+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Every C++ program will have a function that is called ____.
start
begin
main
int
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line of code is the correct way to display the message Hello World! to the console screen?
cout << Hello World!;
cout << "Hello World!"
cout << "Hello World!";
cout >> "Hello World!';
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will correctly declare an integer variable called num?
num;
num int;
int num
int num;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will correctly read in a value to the integer variable named num?
cin << num;
input >> num;
cin >> num;
cin >> num
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will display the value of the integer variable named num?
output << num;
cout >> num;
cout << num;
cout << "num";
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the division 35 / 4 in C++?
8
9
8.75
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct C++ translation of the mathematical expression below?
10a2 + b2
10a^2 + b^2
10 * (a * a) + b * b
(10a) * (10a) + b * b
10 * a ^ 2 + b ^ 2
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
C++ SHS B1-B2

Quiz
•
11th Grade
10 questions
Bài tập trắc nghiệm C++

Quiz
•
3rd - 12th Grade
20 questions
Toán tử trong C ++

Quiz
•
10th - 12th Grade
14 questions
C++ - Loops and Random Numbers

Quiz
•
9th - 12th Grade
10 questions
C++ Programming Quiz

Quiz
•
12th Grade
20 questions
8 klasa C++

Quiz
•
7th - 10th Grade
10 questions
C#

Quiz
•
11th Grade
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
9th Grade - University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade