
C++ Unit 1 Day 4 Warm-Up
Authored by Richard Ghiorse
Computers
9th - 12th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will correctly declare an integer variable called total?
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.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?