Unit 4: Operators in Java
Quiz
•
Computers
•
9th - 10th Grade
•
Hard
Rajat Shenoi
Used 82+ times
FREE Resource
Enhance your content in a minute
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);
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
20 questions
HTML QUIZ # 3
Quiz
•
10th Grade
20 questions
INFORMATIKA KELAS IX
Quiz
•
9th Grade
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
20 questions
С++ циклы
Quiz
•
10th Grade
20 questions
Google SketchUp Tool
Quiz
•
KG - University
16 questions
Acceptable Use Policy
Quiz
•
6th - 9th Grade
19 questions
UNIT 1.2 MEMORY
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
