
Java Operators
Authored by Deepak Sharma
Professional Development
Used 1K+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following is NOT a data types in java
int
String
number
double
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is right way of defining String variable?
String name = "John";
String name = "John"
String name = John;
String name "John";
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
float myFloatNum = 5.99f;
System.out.println(myFloatNum);
What will be the output?
5.99
5.99f
"5.99"
"5.99"f
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int x = 5;
int y = 6
int z = 50;
System.out.println(x + y + z);
What will be the output?
61
5650
66
x + y + z
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Based on, the general rules for constructing names for variables.
Pick false statement.
Names can contain letters, digits, underscores, and dollar signs.
Names are NOT case sensitive
Reserved words (like Java keywords, such as int or String) cannot be used as names
Names can also begin with $ and _
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following is NOT a NON-primitive data type
String
Array
double
class
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
which of the following is NOT a primitive data type?
byte
array
char
boolean
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?