
Java Basic Day-2
Authored by G.L. Bajaj Greater Noida
Computers
University
Used 25+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which of the following is a legal identifier in java?
2variable
#myvar
+@$var
$_myvar
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which of these is NOT a valid keyword or reserved word in java?
default
null
String
volatile
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which is the legal range of values fro a short?
-128 to +127
-255 to 255
-32768 to 32767
0 to 65535
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which declaration of the main() method is valid?
public void main(String args[])
public void static main(String args[])
final public static void main(String []arr)
public static void main(String []arr)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is 3*4 equivalent to 3 << 2 ?
Yes
NO
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what will be the output?
public class Test
{
public static void main(String[] args) {
double d=100.04;
float f=d;
System.out.println(""+f);
}
}
100.04
100.0
100
Compilation Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Operator will always evaluate all the operands ?
||
&&
?:
%
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?
Similar Resources on Wayground
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
10 questions
Hyrje në SO
Quiz
•
University
10 questions
Cybersecurity Fundamentals Week 2 Quiz
Quiz
•
KG - University
15 questions
Introduction to Django Framework Quiz
Quiz
•
University
10 questions
Q2 - Python
Quiz
•
University
10 questions
Day 10 - Networking & Security I - 1st Review of Day 9
Quiz
•
University
10 questions
CC 105 - Quiz 2 FINAL TERM
Quiz
•
University
15 questions
LATIHAN SOAL PEMROGRAMAN
Quiz
•
9th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade