Which of the following will correctly declare an integer variable called total?
C++ Unit 1 Day 4 Warm-Up

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Richard Ghiorse
Used 6+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
total;
total int;
int total
int total;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will correctly read in a value to the integer variable named total?
cin << total;
input >> total;
cin >> total;
cin >> total
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will display the value of the integer variable named total?
output << total;
cout >> total;
cout << total;
print << total;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to rewrite the following line of code using endl instead of \n?
cout << "Lorem Ipsum.\n";
cout << "Lorem Ipsum.endl";
cout << "Lorem Ipsum." << endl;
cout << "Lorem Ipsum" endl;
cout << "Lorem Ipsum." << "endl";
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Write the line of code that declares the integer variable named sum.
Similar Resources on Quizizz
10 questions
Сpp 1_3

Quiz
•
9th - 12th Grade
10 questions
while

Quiz
•
1st - 10th Grade
10 questions
Post Test C++

Quiz
•
9th - 12th Grade
10 questions
Dasar Pemrograman C++

Quiz
•
10th Grade
10 questions
LATIHAN PERCABANGAN

Quiz
•
9th Grade - University
10 questions
Test if si for

Quiz
•
10th Grade
10 questions
BAHASA C++

Quiz
•
11th Grade
10 questions
С++ цикл for

Quiz
•
6th - 9th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
10 questions
Right Triangles: Pythagorean Theorem and Trig

Quiz
•
11th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
24 questions
LSO - Virus, Bacteria, Classification - sol review 2025

Quiz
•
9th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade