
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
25 questions
FOS QUIZ 7

Quiz
•
University
22 questions
Unit-8 (QB64) Year-6

Quiz
•
6th Grade - University
20 questions
Көп өлшемді массивтер туралы тест (Java)

Quiz
•
University
18 questions
Codean - Java Rekursi

Quiz
•
University
20 questions
Test Android

Quiz
•
University
21 questions
Q1_Web Systems

Quiz
•
University
25 questions
THIRD ROUND BINGO

Quiz
•
University
20 questions
Fundamentos de Programación en Java

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University