JAVA: Level-1
Quiz
•
Computers, Education
•
5th - 12th Grade
•
Practice Problem
•
Hard
Amol Karpe
Used 4+ times
FREE Resource
Enhance your content in a minute
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
Already have an account?
Similar Resources on Wayground
20 questions
Pyhton Input and Output Basics
Quiz
•
5th Grade
20 questions
End of year quiz: Python
Quiz
•
9th Grade
20 questions
ÔN TẬP HỌC KỲ 2 - TIN HỌC 8
Quiz
•
8th Grade
10 questions
ICT Java programming workshop
Quiz
•
9th Grade
13 questions
CODING QUIZZ
Quiz
•
8th Grade
10 questions
Recursion Practice, Recursion Practice, Recursion Practice...
Quiz
•
10th Grade - University
13 questions
python A
Quiz
•
10th Grade
20 questions
empowerment quiz2
Quiz
•
1st - 5th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
