
Unit 4: Operators in Java
Authored by Rajat Shenoi
Computers
9th - 10th Grade
Used 83+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
19 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
What is the value of x1 if x=5?
x1 = ++x – x++ + – –x
2.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
Evaluate the value of n if value of p = 5, q = 19
int n = (q – p) > (p – q) ? (q – p) : (p – q);
3.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
Find the output of the following program segment, when:
int val=1600, sum, n = 550;
sum = n + val > 1750 ? 400 : 200;
System.out.println(sum);
4.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
What is the value of y, when the following statements are executed?
int a = 63, b = 36;
int y = (a < b) ? a : b;
5.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
If a = 5, b = 9 calculate the value of a += a++ – ++b + a.
6.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
What is the value of x, when the following statements are executed?
int a = 63, b = 36;
boolean x = (a > b) ? true : false;
7.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
What will be the output for the following program segment?
int a = 0, b = 30, c = 40;
a = – –b + c++ + b;
System.out.println(“a = ”+a);
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
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
17 questions
Basic Docs
Quiz
•
8th - 9th Grade
15 questions
Edición de Videos
Quiz
•
7th - 9th Grade
20 questions
CSS 10 - QUIZ
Quiz
•
10th Grade
20 questions
Yr 11 ICT quiz 1 Networks & Security
Quiz
•
10th - 11th Grade
20 questions
AĞ TEKNOLOJİLERİ
Quiz
•
9th - 10th Grade
15 questions
CIW
Quiz
•
9th - 12th Grade
21 questions
Y9 Creative iMedia RO81 Quiz Part 1
Quiz
•
9th 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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade