Quiz - 4 on Increment & decrement operators in C
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Michael Kona
Used 15+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Quiz ASJ
Quiz
•
12th Grade
10 questions
Dispositivos Electrónicos Analógicos y Digitales
Quiz
•
12th Grade
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
20 questions
Quiz
•
7th - 12th Grade
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
10 questions
Programacion Orientada a Objetos
Quiz
•
12th Grade - University
10 questions
My Sql
Quiz
•
12th Grade
11 questions
CAPÍTULO 1 NETWORKING ESSENTIALS
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
