
JAVA - Day1
Authored by Chitra Muthu
Information Technology (IT)
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
computer vision Quiz
Quiz
•
University
20 questions
Microsoft Excel Review Part 2
Quiz
•
8th Grade - University
20 questions
NET102: Quiz No. 1
Quiz
•
University
20 questions
IT for Managers M1
Quiz
•
University
20 questions
Cloud Service Models & Software Process Models
Quiz
•
2nd Grade - University
18 questions
Unit 1 Basic Computer Knowledge Quiz
Quiz
•
University
20 questions
quiziz 4 sumber media 2sda5
Quiz
•
University
20 questions
Usable Encryption Quiz
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University