int x=1, y = 2;
y = x++ ;
cout << x <<" "<< y ;
Increment/Decrement
Quiz
•
Education
•
9th - 12th Grade
•
Medium
Umit Akdag
Used 5+ times
FREE Resource
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!
10 questions
For loop
Quiz
•
8th - 9th Grade
10 questions
TKPA
Quiz
•
12th Grade
10 questions
Ulangan Harian 1 - Program Linear
Quiz
•
11th Grade
10 questions
Bài kiểm tra thường xuyên lần 1.1 nh2223
Quiz
•
10th - 12th Grade
10 questions
Scrum pour les devs
Quiz
•
1st - 10th Grade
7 questions
الدوال الخطية العكسية
Quiz
•
9th Grade
10 questions
TCS NQT Model Question Paper
Quiz
•
12th Grade
11 questions
9th grade mathematics
Quiz
•
9th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University