C++ Unit 1 Day 4 Warm-Up

C++ Unit 1 Day 4 Warm-Up

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

Vòng lặp for

Vòng lặp for

7th Grade - University

10 Qs

C++ Programming Quiz

C++ Programming Quiz

12th Grade

10 Qs

Programación 11 grado. ILYV

Programación 11 grado. ILYV

11th Grade

7 Qs

C++ Quiz 3: Functions

C++ Quiz 3: Functions

7th - 12th Grade

7 Qs

11th cs chap9

11th cs chap9

12th Grade

10 Qs

Evaluación Programación Piton

Evaluación Programación Piton

9th - 12th Grade

10 Qs

LINKS, ANCHORS, NAVIGATION AND OTHER KINDS OF LINKS

LINKS, ANCHORS, NAVIGATION AND OTHER KINDS OF LINKS

9th Grade

10 Qs

Dasar Pemrograman C++

Dasar Pemrograman C++

10th Grade

10 Qs

C++ Unit 1 Day 4 Warm-Up

C++ Unit 1 Day 4 Warm-Up

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Richard Ghiorse

Used 6+ times

FREE Resource

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.