Which of the following can be operands of arithmetic operators?
JAVA FUNDAMENTALS

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Hicabi Yeniay
Used 107+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Numeric
Boolean
Both Numeric & Characters
Characters
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of the following Java program?
class Output {
public static void main(String args[]) {
int a = 1;
int b = 2;
int c;
int d;
c = ++b;
d = a++;
c++;
b++;
++a;
System.out.println(a + " " + b + " " + c); }
}
324
323
244
234
344
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following Java code?
class operators {
public static void main(String args[]) {
int x = 8;
System.out.println(++x * 3 + " " + x); }
24 8
27 9
24 9
27 8
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Java code?
class Relational_operator {
public static void main(String args[]) {
int var1 = 5;
int var2 = 6;
System.out.print(var1 > var2); }
}
5
6
FALSE
TRUE
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these is not an Assignment Operator?
&=
|=
+=
<=
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Java program?
class booloperators {
public static void main(String args[]) {
boolean var1 = true;
boolean var2 = false;
System.out.println((var1 & var2));
}
}
True
False
1
0
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of the following Java program?
public static void main(String args[]) {
char a = 65;
char b = 66;
char d = 68;
d--;
char c = --b;
a++;
System.out.println(b);
System.out.println(d);
System.out.println(b);
System.out.println(a);
}
}
A
C
A
B
B
A
B
A
B
A
C
A
A
D
A
B
Create a free account and access millions of resources
Similar Resources on Quizizz
16 questions
Java Основи

Quiz
•
11th Grade - University
16 questions
Loops

Quiz
•
5th - 12th Grade
19 questions
Unit 9 CSA

Quiz
•
11th Grade
20 questions
APCSA Arrays

Quiz
•
9th - 12th Grade
20 questions
Arrays in Java

Quiz
•
9th - 12th Grade
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
17 questions
Tracing Loops in Java

Quiz
•
12th Grade
15 questions
Java Level 1 - B

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade