
JAVA QUIZ
Quiz
•
Other
•
Professional Development
•
Practice Problem
•
Easy
seetha S
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to output "Hello World" in Java?
System.out.println("Hello World");
print ("Hello World");
echo("Hello World");
Console.WriteLine("Hello World");
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Java is short for "JavaScript".
False
true
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert COMMENTS in Java code?
// This is a comment
/* This is a comment
# This is a comment
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to create a variable that should store text?
String
Txt
myString
string
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method can be used to find the length of a string?
len()
getLength()
getSize()
length()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method can be used to return a string in upper case letters?
toUpperCase()
tuc()
upperCase()
touppercase()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to create an object called myObj of MyClass?
new myObj = MyClass();
class myObj = new MyClass();
class MyClass = new myObj();
MyClass myObj = new MyClass();
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
13 questions
IZOne
Quiz
•
KG - Professional Dev...
10 questions
Class 2 - Objects and attributes
Quiz
•
Professional Development
15 questions
Kuiz IT Siri 1 dan 2 2024
Quiz
•
Professional Development
15 questions
Emotions? Related to mental health?
Quiz
•
1st Grade - Professio...
10 questions
COCA Innovation
Quiz
•
Professional Development
10 questions
Anime Quiz 1
Quiz
•
Professional Development
11 questions
Customer Service Pop Quiz 2
Quiz
•
Professional Development
10 questions
Anime
Quiz
•
KG - Professional Dev...
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 Other
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
