Search Header Logo

C Assignment Operators

Authored by Azrinna Muhamad

Other

University

Used 14+ times

C Assignment Operators
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the result of the following code:

10

15

5

20

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to divide and assign the result in C?

/=

*=

+=

-=

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the result of the following code:

20

40

100

60

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If int a = 5;, what will be the result of a -= 2?

7

3

2

5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code print:

1

0

3

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?