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
Câu hỏi về vòng lặp trong C++
Quiz
•
9th Grade
8 questions
C++cde
Quiz
•
11th Grade
10 questions
Câu lệnh rẽ nhánh If
Quiz
•
10th Grade
9 questions
Java Fundamentals
Quiz
•
12th Grade
11 questions
Python - Data Types
Quiz
•
12th Grade - University
5 questions
whileLoop
Quiz
•
9th - 12th Grade
9 questions
Evaluare_recursivitate_XI
Quiz
•
11th Grade
10 questions
Контрольна робота № 5 з теми: « Алгоритми та програми».
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