
Operators and Control Statements
Authored by ANIL KUMAR
English
Professional Development
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
60 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
1. Which of the following can be operands of arithmetic operators?
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
2. Modulus operator, %, can be applied to which of these?
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
3. 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 & 2
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
4. Decrement operator, −−, decreases the value of variable by what number?
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
5. Which of these statements are incorrect?
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Java program?
1 1
0 1
1.5 1
1.5 1.0
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Java program?
5.640000000000001 5
5.640000000000001 5.0
5 5.640000000000001
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?