
Operators and Expressions

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Sandeep M
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following are arithmetic operators in Java?
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following are examples of relational operators in Java?
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following are examples of logical operators in Java?
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following operators can be used with strings in Java?
*
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the value stored in x, y and z, after the following set of statements are executed:
y = 10;
z = 15;
x = ++y + z-- + y-- + z++;
x = 51, y = 10, z = 15
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In Java, consider the following code snippet:
int a = 10;
int b = 10;
int c = 5;
boolean x = (a < b) && (a >= c);
boolean y = (a != b) || (a > c);
Now, what are the values of x and y?
x : true, y : true
x : true, y : false
x : false, y : false
x : false, y : true
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The ternary operator in Java is a type of
Logical operator
Relational operator
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
java script

Quiz
•
12th Grade
10 questions
Introducción al lenguaje java

Quiz
•
11th Grade
12 questions
Java Strings

Quiz
•
9th - 12th Grade
10 questions
CodeHS 2.6 Booleans

Quiz
•
9th Grade
10 questions
Simulasi 4

Quiz
•
10th Grade
10 questions
顺序结构复习

Quiz
•
10th Grade
10 questions
C#

Quiz
•
11th Grade
15 questions
AP Computer Science A Review 1

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade