Java Basic Day-2
Quiz
•
Computers
•
University
•
Hard
G.L. Bajaj Greater Noida
Used 25+ times
FREE Resource
Enhance your content
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 ?
||
&&
?:
%
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
12 questions
Cuadros de dialogo con JOptionPane
Quiz
•
University
13 questions
DS UNIT-2 TEST-2
Quiz
•
University
15 questions
NFA, DFA Definition
Quiz
•
University
15 questions
Array - Data Structures
Quiz
•
University
10 questions
Taller SQL
Quiz
•
University
10 questions
Objektumok kezelése, hozzáférés szabályozás, ..
Quiz
•
University
10 questions
Quiz on OOPs- Day 1 (30-01-2025)
Quiz
•
University
15 questions
Quiz 1
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University