Search Header Logo

basic operations c++

Authored by Rizal Firdaus

Computers

Array covered

basic operations c++
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

206 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these characters is used for multiplication?

+

-

*

/

x

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

int c = 4;

int d = 2;

cout << c*d;

6

2

8

16

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this code output?

int g = 2;

int h = 2;

int j = 3;

cout << (g + j) * h;

10

8

12

6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this code output?

int r = 2;

int s = 3;

int t = 5;

cout << r + s * t;

11

17

25

10

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

int x = 5;

x = 3;

cout << x;

3

5

15

2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

int x = 3;

x = x + 2;

cout << x;

5

2

3

1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

int x = 4;

int y = 2;

y = x * y;

cout << y;

8

16

2

4

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?