
Java Fundamentals and OOP Basics
Quiz
•
Education
•
Professional Development
•
Practice Problem
•
Medium
Arul P
Used 2+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following Java program?
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
Hello World
Hello, World!
Error
"Hello, World!"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which component is responsible for converting bytecode into machine code at runtime?
JDK
JRE
JVM
Compiler
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a part of the JDK?
Java Compiler
Java Virtual Machine
Java API
Web Browser
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does JRE stand for?
Java Runtime Environment
Java Rapid Execution
Java Read Environment
Java Real Engine
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid Java identifier?
123num
total$Sum
class
a-b
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to declare a variable in Java?
int x = "10";
float x = 10.5;
String name = Java;
char ch = 'A';
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of comments in Java?
To compile faster
To describe the code for better readability
To store code history
To execute alternative logic
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
มัลติมีเดีย1
Quiz
•
Professional Development
15 questions
Labor Relations and Negotations 1
Quiz
•
University - Professi...
20 questions
Test - Big Data Analytics (2)
Quiz
•
Professional Development
10 questions
Weekly Contest #2 - TechXNinjas
Quiz
•
Professional Development
10 questions
Test Automation: A Challenge
Quiz
•
Professional Development
10 questions
Basic JavaScript (Henry)
Quiz
•
Professional Development
10 questions
Quiz iPad
Quiz
•
Professional Development
10 questions
Harmony in Motion : Celeberating Goodbye and New Beginning
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
