
JAVA - Day1

Quiz
•
Information Technology (IT)
•
University
•
Medium
Chitra Muthu
Used 1+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the main purpose of the main() method in Java?
It is the entry point of the Java program.
It is used to define class properties.
It is only required for GUI-based applications.
It is used to define multiple threads.
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following is true about Java?
Java is a compiled language only.
Java is a scripting language.
Java is both compiled and interpreted.
Java does not require a JVM to run.
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the default value of an uninitialized int variable in Java?
0
null
Garbage value
1
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What will be the output of the following Java code?
int x = 10;
if (x > 10)
System.out.println("Greater");
else
System.out.println("Not Greater");
Greater
Not Greater
Compilation Error
Runtime Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
How many times will the following loop execute?
int i = 0;
while (i < 3) {
System.out.println(i);
i++;
}
0
3
Infinite
4
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What does the javac command do?
Executes Java programs
Compiles Java source files
Runs Java bytecode
Starts the JVM
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which component is responsible for executing Java bytecode?
JDK
JRE
JVM
Compiler
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
2F-1 | Python Quiz | 14/10/2024

Quiz
•
University
20 questions
2F-3 | Python Quiz | 14/11/2024

Quiz
•
University
23 questions
C++ Functions Quiz

Quiz
•
University
18 questions
Python Library Routines Quiz

Quiz
•
10th Grade - University
21 questions
Web_FE_BASIC_SS31

Quiz
•
University
25 questions
Fundamentals of programming Quiz

Quiz
•
University
25 questions
Codean - Java Data Types

Quiz
•
University
25 questions
testquiz

Quiz
•
University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade