C++ Unit 1 Day 4 Warm-Up

C++ Unit 1 Day 4 Warm-Up

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

Karaktersorok

Karaktersorok

11th Grade

6 Qs

Evaluasi Percabangan

Evaluasi Percabangan

11th Grade

10 Qs

Array

Array

10th Grade

10 Qs

Programming with C++

Programming with C++

9th - 12th Grade

10 Qs

Dasar Pemrograman C++

Dasar Pemrograman C++

10th Grade

10 Qs

XI - Kuis AP 1

XI - Kuis AP 1

11th Grade

10 Qs

While Loops

While Loops

10th - 12th Grade

7 Qs

Programación 11 grado. ILYV

Programación 11 grado. ILYV

11th Grade

7 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.