Search Header Logo

C++ Unit 1 Review

Authored by Richard Ghiorse

Computers

9th - 12th Grade

Used 7+ times

C++ Unit 1 Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Every C++ program will have a function that is called ____.

start

begin

main

int

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line of code is the correct way to display the message Hello World! to the console screen?

cout << Hello World!;

cout << "Hello World!"

cout << "Hello World!";

cout >> "Hello World!';

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will correctly declare an integer variable called num?

num;

num int;

int num

int num;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will correctly read in a value to the integer variable named num?

cin << num;

input >> num;

cin >> num;

cin >> num

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will display the value of the integer variable named num?

output << num;

cout >> num;

cout << num;

cout << "num";

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the division 35 / 4 in C++?

8

9

8.75

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct C++ translation of the mathematical expression below?

10a2 + b2

10a^2 + b^2

10 * (a * a) + b * b

(10a) * (10a) + b * b

10 * a ^ 2 + b ^ 2

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?