
Increment/Decrement
Authored by Umit Akdag
Education
9th - 12th Grade
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int x=1, y = 2;
y = x++ ;
cout << x <<" "<< y ;
3 1
1 2
2 1
1 3
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int y, x=2;
y = ++x;
cout << x <<" "<< y ;
1 2
2 1
2 2
3 3
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int x = 2;
int y=4;
cout << x++ <<" "<< --y;
1 2
2 3
2 4
2 1
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int x= 2;
int y = 2 * x++;
cout << x <<" "<< y;
3 4
3 3
4 3
4 4
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int x= 99;
if (x++ < 100)
cout << "It is true!\n";
else
cout << "It is false!\n";
It is false!
It is true!
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int x=0;
if (++x)
cout << "It is true!\n";
else
cout << "It is false!\n";
It is true!
It is false!
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
Psicología del trabajo y desarrollo Organizacional
Quiz
•
KG - University
10 questions
Warmup Quiz for School Tour (Dec24)
Quiz
•
12th Grade - University
11 questions
문법요소-높임표현
Quiz
•
9th - 12th Grade
10 questions
Nivel 3: Programación básica
Quiz
•
10th Grade
10 questions
ACTIVIDAD 3 BEOWUFL -11B
Quiz
•
5th - 11th Grade
10 questions
Il diritto di contare
Quiz
•
12th Grade
10 questions
Examen final AEDT
Quiz
•
1st - 10th Grade
10 questions
Podcast
Quiz
•
6th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade