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

Quiz
•
Education, Other
•
University
•
Hard
Shashank Jain
Used 50+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Numeric
Boolean
Both Numeric & Characters
Characters
2.
MULTIPLE CHOICE QUESTION
30 sec • 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); }
}
3 2 4
3 2 3
2 3 4
2 4 4
3 4 4
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of these can be returned by the operator &?
Integer
Boolean
Integer or Boolean
Character
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
class comma_operator {
public static void main(String args[]) {
int sum = 0;
for (int i = 0, j = 0; i < 5 & j < 5; ++i, j = i + 1)
sum += i;
System.out.println(sum); }
}
5
4
6
14
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of these can not be used for a variable name in Java?
identifier
identifier & keyword
keyword
none of the mentioned
6.
MULTIPLE CHOICE QUESTION
30 sec • 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
24 9
27 9
27 8
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is not an operator in Java?
instanceof
sizeof
>>>=
new
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Tokens Lexeme and Pattern

Quiz
•
University
10 questions
Pop Quiz #2 Topic 2

Quiz
•
University
10 questions
First_Year_Orientation

Quiz
•
University
15 questions
Round 2

Quiz
•
University
9 questions
Dart Final

Quiz
•
University
8 questions
Q1Programming

Quiz
•
University
15 questions
C Quiz

Quiz
•
University
15 questions
Soal Quiz Robotic Kelas 11

Quiz
•
12th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade