JAVA: Level-1
Quiz
•
Computers, Education
•
5th - 12th Grade
•
Hard
Amol Karpe
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Choose from below non-mandatory (not MUST) component of a Java Program.
Class name
main method
print method
All of the above
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Choose correct signature of main method.
public static int main(String[] args)
private static void main(String[] args)
public static void main(int[] args)
public static void main(String[] args)
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
In Java Array, index starts from
1
0
-1
-2
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What will be output of following code -
public static void main(String[] args) {
System.out.print("Hello");
System.out.println("How are you?");
}
Error
Hello
How are you?
HelloHow are you?
How are you?Hello
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
In Java, which of the following Loop executes at least once -
for Loop
while Loop
do...while Loop
None of the above
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What will be the output of following code -
public static void main(String[] args) {
byte b = 135;
System.out.println(b * 2);
}
135
270
135 * 2
Compilation Error
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
to assign a value as "2.5", which data type I can use
int
boolean
char
float
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
Business Law 2.01
Quiz
•
9th - 12th Grade
13 questions
2.6 The Internet Address
Quiz
•
6th Grade
19 questions
UNIT 1.2 MEMORY
Quiz
•
10th Grade
20 questions
Python básico
Quiz
•
9th - 12th Grade
15 questions
Inter ITI Skill Fusion - Set 2
Quiz
•
11th Grade
16 questions
Python есептер 1
Quiz
•
9th - 12th Grade
20 questions
TIN HỌC 11 - TX2-HK2-2425
Quiz
•
11th Grade
20 questions
ไมโครคอนโทรลเลอร์ & Arduino Uno R3
Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
