Modulus operator, %, can be applied to which of these?
JAVA operators

Quiz
•
Computers
•
University
•
Medium
Jamunadevi T
Used 31+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Integers
Floating – point numbers
Both Integers and floating – point numbers
None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can be operands of arithmetic operators?
Numeric
Boolean
Characters
Both Numeric & Characters
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
With x = 0, which of the following are legal lines of Java code for changing the value of x to 1?
1. x++;
2. x = x + 1;
3. x += 1;
4. x =+ 1;
1, 2 & 3
1 & 4
1, 2, 3 & 4
3&4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Decrement operator, −−, decreases the value of variable by what number?
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these statements are incorrect?
Assignment operators are more efficiently implemented by Java run-time system than their equivalent long forms
Assignment operators run faster than their equivalent long forms
Assignment operators can be used only with numeric and character data type
None of the mentioned
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
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 0
1 1.5
1.5 1
0 1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is not a bitwise operator?
&
&=
|=
<=
Create a free account and access millions of resources
Similar Resources on Quizizz
8 questions
Java operators

Quiz
•
University
12 questions
Swarnandhra Java- Quiz-1

Quiz
•
University
10 questions
MIT App Inventor - Chapter 4

Quiz
•
University
15 questions
C Programming - Unit 1 MCQ

Quiz
•
University
12 questions
Intro to Scratch 2

Quiz
•
KG - University
10 questions
java operators

Quiz
•
University
10 questions
CPE 2B

Quiz
•
University
15 questions
Soal Java

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