Search Header Logo

C++ Basics

Authored by Kenji Nomura

Computers

9th - 10th Grade

CCSS covered

Used 211+ times

C++ Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which line of code would you use to multiply 7 times 3 and store the answer in a variable named Result?

Result = 7 * 3;
7 / 3 = Result;
7 * 3 = Result;
Result = 7 / 3;

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which line of code would you use to print the value of a variable named Result to the screen?

cout << Result << endl;
cin >> "Result" >> endl;
cin >> Result >> endl;
cout << "Result" << endl;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

... variables store whole numbers (-4, 3, 51, etc). 

Float
Logical
Character
Integer

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the word (command) used to display/print numbers and text on the screen?

cout

print

display

cin

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is a variable?

A box(memory location) where you store values

A type of graphics

A value

A type of memory

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does <= mean?

less than

greater than

less than or equal to

greater than or equal to

Tags

CCSS.6.EE.B.8

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the only function all C++ programs must contain?

start()

system()

main()

program()

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?