Which of the following can be operands of arithmetic operators?
Java operators

Quiz
•
Computers
•
University
•
Hard
Jamunadevi T
Used 15+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Numeric
Boolean
Characters
Boolean and characters
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Modulus operator, %, can be applied to which of these?
Integers
Floating "“ point numbers
Both Integers and floating "“ point numbers.
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Decrement operator, “, decreases value of variable by what number?
1
2
3
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class increment {
public static void main(String args[])
{
double var1 = 1 + 5;
double var2 = var1 / 4;
int var3 = 1 + 5;
int var4 = var3 / 4;
System.out.print(var2 + " " + var4);
}
}
1 1
1 0
1.5 1
1 0.2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class increment {
public static void main(String args[])
{
int g = 3;
System.out.print(++g * 8);
}
}
25
24
32
36
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class Output {
public static void main(String args[])
{
int x , y;
x = 10;
x++;
--x;
y = x++;
System.out.println(x + " " + y);
}
}
10 11
11 10
10 10
11 11
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What should be expression1 evaluate to in using ternary operator as in this line? expression1 ? expression2 : expression3
Integers
Floating "“ point numbers
Boolean
None of the above
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value stored in x in following lines of code?
int x, y, z;
x = 0;
y = 1;
x = y = z = 8;
0
9
8
7
Similar Resources on Quizizz
12 questions
Operators in C

Quiz
•
University
10 questions
C Programming Quiz-1

Quiz
•
University
10 questions
C#.net test 1

Quiz
•
University
10 questions
Weekly Contest #3 - TechXNinjas

Quiz
•
University
10 questions
Latihan1

Quiz
•
University
10 questions
DEBUG THE CODE

Quiz
•
University
10 questions
Expression in C Programming

Quiz
•
University
10 questions
C - Pointers

Quiz
•
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