Quiz - 5 on Increment and Decrement Operators
Quiz
•
others
•
•
Hard
Michael Kona
Used 4+ 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 value of x after the following code is executed?
int x = 5;
x++;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of y after the following code is executed?
int y = 10;
y--;
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++;
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;
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.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code? int a = 4; int b = --a + 3;
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;
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
16 questions
G2 L2
Quiz
•
6th - 8th Grade
10 questions
Climate and Biomes Comprehension Questions
Quiz
•
KG - University
10 questions
Types of Mountains
Quiz
•
KG - University
10 questions
EIDGLITZ TRIVIA DAY 4!!
Quiz
•
KG - University
11 questions
Volume
Quiz
•
KG
20 questions
G9-SOC-L1 India: Size and location
Quiz
•
KG - University
19 questions
PRE UPS 1 SM025
Quiz
•
KG - University
10 questions
Yak
Quiz
•
KG - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for others
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
