Compound Operators in Java

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Patrick Bryar
Used 3+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed when the following code segment is executed?
int j = 10;
int k = 8;
j += 2;
k += j;
System.out.print(j);
System.out.print(" ");
System.out.println(k);
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int x = 5;
int y = 3;
x *= 2;
y += x;
System.out.print(x);
System.out.print(" ");
System.out.println(y);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed when the following code segment is executed?
int a = 12;
int b = 7;
a -= 3;
b *= a;
System.out.print(a);
System.out.print(" ");
System.out.println(b);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed when the following code segment is executed?
int p = 6;
int q = 4;
p /= 2;
q -= p;
System.out.print(p);
System.out.print(" ");
System.out.println(q);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed when the following code segment is executed?
int m = 9;
int n = 2;
m %= 3;
n += m;
System.out.print(m);
System.out.print(" ");
System.out.println(n);
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed when the following code segment is executed?
int r = 15;
int s = 5;
r += 10;
s *= r;
System.out.print(r);
System.out.print(" ");
System.out.println(s);
25 125
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed when the following code segment is executed?
int u = 20;
int v = 3;
u -= 5;
v *= u;
System.out.print(u);
System.out.print(" ");
System.out.println(v);
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Unit 4 AP CSA Review

Quiz
•
12th Grade
16 questions
C-Programming Basics

Quiz
•
12th Grade
10 questions
Quiz 15 - Array Basics

Quiz
•
11th Grade
10 questions
Quiz 16 - Arrays and Loops

Quiz
•
11th Grade
11 questions
Casting in Java

Quiz
•
9th - 12th Grade
13 questions
APCSA Unit 3 Review

Quiz
•
9th - 12th Grade
11 questions
J277 Programming - Data Types

Quiz
•
9th - 11th Grade
15 questions
Programación con Java

Quiz
•
9th - 11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade