Quiz - 5 on Increment and Decrement Operators

Quiz - 5 on Increment and Decrement Operators

15 Qs

quiz-placeholder

Similar activities

Forces that Fuel Friendship

Forces that Fuel Friendship

KG - University

10 Qs

Grade 3 Lesson 3 Review

Grade 3 Lesson 3 Review

Professional Development

10 Qs

Mole Quiz

Mole Quiz

9th - 12th Grade

12 Qs

Digital Signature

Digital Signature

KG - University

13 Qs

ICT Theme 4 Test

ICT Theme 4 Test

5th Grade

15 Qs

Chapter 9 Review

Chapter 9 Review

KG - University

10 Qs

Statistical data paragraph Prep school

Statistical data paragraph Prep school

KG - University

10 Qs

Place Value (January Winter 4th 5th Grade Math Kahoot!) Fourth Grade Fifth Grade

Place Value (January Winter 4th 5th Grade Math Kahoot!) Fourth Grade Fifth Grade

KG - University

15 Qs

Quiz - 5 on Increment and Decrement Operators

Quiz - 5 on Increment and Decrement Operators

Assessment

Quiz

others

Hard

Created by

Michael Kona

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of x after the following code is executed?

int x = 5;

x++;

4
5
6
7

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of y after the following code is executed?

int y = 10;

y--;

8
9
10
11

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of z after the following code is executed?

int z = 3;

int a = z++;

2
3
4
5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the final value of b in the following code? int a = 5; int b = ++a;

4
5
6
7

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? int x = 2; int y = x++ + 5; printf("%d", y);

6
7
8
9

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code? int a = 4; int b = --a + 3;

5
6
7
8

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After executing the following code, what is the value of c? int a = 7; int b = a--; int c = b + a;

12
13
14
15

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?