Choose from below non-mandatory (not MUST) component of a Java Program.
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
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
Similar Resources on Quizizz
20 questions
Java, part I

Quiz
•
11th Grade - University
20 questions
OOP Java

Quiz
•
12th Grade
16 questions
Manipulasi Data String

Quiz
•
9th - 12th Grade
20 questions
Java Test 1

Quiz
•
8th Grade
10 questions
Programming in Java

Quiz
•
8th Grade
16 questions
Java Chapter 1 CS2

Quiz
•
9th - 12th Grade
17 questions
AP CS Test 0 Module 1

Quiz
•
9th - 12th Grade
15 questions
Java Level 1 - B

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
20 questions
Final Exam Vocabulary

Quiz
•
6th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade