C++ Unit 1 Day 4 Warm-Up

C++ Unit 1 Day 4 Warm-Up

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

C++

C++

11th - 12th Grade

10 Qs

Matematinės funkcijos

Matematinės funkcijos

10th Grade

10 Qs

Вспоминаем условный оператор

Вспоминаем условный оператор

8th - 10th Grade

10 Qs

Le basi C++

Le basi C++

11th Grade

10 Qs

Цикл for

Цикл for

8th - 9th Grade

8 Qs

資訊科技隨堂測驗-變數與算術運算

資訊科技隨堂測驗-變數與算術運算

11th Grade - University

10 Qs

Cuestionario Dev C++ 1000

Cuestionario Dev C++ 1000

10th Grade

10 Qs

Tema if

Tema if

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