C++ Unit 1 Review

C++ Unit 1 Review

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

C++ Arrays

C++ Arrays

8th - 12th Grade

12 Qs

Pemrograman C++ (Dasar)

Pemrograman C++ (Dasar)

11th Grade

18 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

Dasar Pemrograman C++

Dasar Pemrograman C++

10th Grade

10 Qs

Arrays += Chan

Arrays += Chan

9th - 12th Grade

12 Qs

Язык программирования Python

Язык программирования Python

1st - 10th Grade

20 Qs

Classes in C++

Classes in C++

6th - 9th Grade

14 Qs

C++ programming

C++ programming

7th - 12th Grade

20 Qs

C++ Unit 1 Review

C++ Unit 1 Review

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Richard Ghiorse

Used 7+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?