Java Test Basic
Quiz
•
Computers
•
University
•
Easy
Сергій Денисенко
Used 4+ times
FREE Resource
25 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
string
myString
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the numeric value 5?
int x = 5;
num x = 5
x = 5;
float x = 5;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the floating number 2.8?
float x = 2.8f;
x = 2.8f;
int x = 2.8f;
byte x = 2.8f
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method can be used to find the length of a string?
length()
len()
getLength()
getSize()
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Day 6 - ONLINE TEST - PL03 PYTHON PROGRAMMING
Quiz
•
University
20 questions
Skill Competition Quiz 2024
Quiz
•
10th Grade - University
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
20 questions
ROUND 1
Quiz
•
University
20 questions
Python Unit 1 Quiz
Quiz
•
University
20 questions
Ulangan Harian Analisis Data 8C
Quiz
•
8th Grade - University
20 questions
Bootcamp Data Analyst 2
Quiz
•
University
20 questions
IT Essential UIUX Chapter 03 (Typography)
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
