
JAVA QUIZ

Quiz
•
Other
•
Professional Development
•
Easy

seetha S
Used 2+ times
FREE Resource
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();
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Skills 5 unit 5 review

Quiz
•
Professional Development
15 questions
java5

Quiz
•
Professional Development
11 questions
Reviewing

Quiz
•
Professional Development
10 questions
Java Strings

Quiz
•
1st Grade - Professio...
10 questions
tiktok finish the lyris

Quiz
•
KG - Professional Dev...
10 questions
Web Development 2

Quiz
•
Professional Development
10 questions
PPDM - Introdução

Quiz
•
Professional Development
8 questions
C++ Template Quiz

Quiz
•
Professional Development
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