x = x++
Berapakah nilai x jika int x = 5

Kuis C++

Quiz
•
Information Technology (IT)
•
University
•
Hard
Siswo TA
Used 3+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 10 pts
1
4
5
6
2.
MULTIPLE CHOICE QUESTION
2 mins • 15 pts
x = x--
y = x + y++ * x + x--
Berapakah nilai y jika int x = 3, y = 5
20
21
19
22
3.
MULTIPLE CHOICE QUESTION
3 mins • 15 pts
a = a++ * a--
b = --b + ++a
c = a + b++ - --b + a++(1)
Berapakah nilai a, b, c jika int a = 10, b = 15
110
125
222
112
125
220
110
130
222
115
135
210
4.
MULTIPLE CHOICE QUESTION
5 mins • 20 pts
a = (x + z)(y - z)
if ( a < 10) { a = a * x + z++ - y }
else { a = a++ + y - x-- * ++z }
Berapakah nilai a jika int x = 5, y = 4, z = 3
30
39
50
25
5.
MULTIPLE CHOICE QUESTION
10 mins • 20 pts
a = x++ - --y;
if (a < 18) {
x = x + y++;
if (x > 70) { a = a * y + --a + x(a + y) }
}
else {
a = a + --x;
if (a > 70) { a = (x + y)y + --x * a }
}
Berapakah nilai a jika int x = 50, y = 30
7770
2355
3128
5770
6.
MULTIPLE CHOICE QUESTION
10 mins • 20 pts
a = --x + y++
if (a > x || a < y) { a = a + x + y * a - --a }
b = a - x + y
if (x > b && x > y) { b = a - x + --y * y }
Berapakah nilai a dan b jika int x = 10, y = 50
a = 3019
b = 3061
a = 3020
b = 2030
a = 1100
b = 3019
a = 1330
b = 2130
Similar Resources on Wayground
8 questions
Lab 4

Quiz
•
University
6 questions
Kuis Pointer 1

Quiz
•
University
10 questions
Arrays in CQuiz

Quiz
•
1st Grade - University
5 questions
C# quiz

Quiz
•
12th Grade - University
10 questions
Kiểm tra nhanh lớp 10

Quiz
•
10th Grade - University
8 questions
Intro to JS: Variables & Values

Quiz
•
11th Grade - University
11 questions
CodeQuest TechTopia 2025-26

Quiz
•
University
10 questions
Quiz on Basics of C

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade