Quiz - 5 on Increment and Decrement Operators

Quiz - 5 on Increment and Decrement Operators

15 Qs

quiz-placeholder

Similar activities

Quiz - 8 on conditional/ternary operator

Quiz - 8 on conditional/ternary operator

KG - University

15 Qs

2.3 Testing

2.3 Testing

KG - University

20 Qs

Evaluare- Bazele Programării C++

Evaluare- Bazele Programării C++

KG - University

10 Qs

TINKERCAD CODEBLOCK REVIEW FOR QUIZ

TINKERCAD CODEBLOCK REVIEW FOR QUIZ

7th Grade

12 Qs

1.4 Robot Shuffle Review

1.4 Robot Shuffle Review

KG - University

12 Qs

Parcial 1-Laboratorio II-5to BACO-I Unidad Forma B

Parcial 1-Laboratorio II-5to BACO-I Unidad Forma B

KG - University

13 Qs

#7 Intro to programming/types of prog language

#7 Intro to programming/types of prog language

KG - University

20 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

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?