Quiz - 4 on Increment & decrement operators in C

Quiz - 4 on Increment & decrement operators in C

12th Grade

15 Qs

quiz-placeholder

Similar activities

Online Platform Block Q

Online Platform Block Q

11th - 12th Grade

20 Qs

City & Guilds Award in Business Processes

City & Guilds Award in Business Processes

12th Grade

20 Qs

EMPTECH L4 Q2

EMPTECH L4 Q2

12th Grade

10 Qs

Pengayaan Informatika

Pengayaan Informatika

12th Grade

20 Qs

Server Administration- Quiz 1

Server Administration- Quiz 1

12th Grade - University

10 Qs

Quiz 9 (15.09.2021)

Quiz 9 (15.09.2021)

1st - 12th Grade

10 Qs

Technology Week HTG Quiz - Monday

Technology Week HTG Quiz - Monday

7th - 12th Grade

10 Qs

Quiz - 4 on Increment & decrement operators in C

Quiz - 4 on Increment & decrement operators in C

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Michael Kona

Used 15+ 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 result of the expression '++x' if x is initially 5?

7

6

4

10

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of x after the expression 'x++' if x is initially 3?

3

5

2

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If y is 8, what will be the value of y after 'y--' is executed?

5

9

7

6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of 'printf("%d", ++x);' if x is initially 7?

7

6

9

8

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If z is 10, what will be the output of 'printf("%d", z--);'?

11

9

10

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value of a after 'a = ++b + c--;' if b is 4 and c is 6?

9

12

10

11

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of 'printf("%d", x++ + ++x);' if x is initially 2?

7

5

10

Undefined behavior

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?