Mastering Java Basics
Quiz
•
Professional Development
•
10th Grade
•
Hard
JUSILDA VREKA
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in Java?
var variableName int;
float variableName = 0;
string variableName;
int variableName;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you print a string to the console in Java?
console.log('Your string here');
print('Your string here');
System.out.println("Your string here");
echo 'Your string here';
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid Java data type?
int
float
boolean
string
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used to end a statement in Java?
;
!
:
.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a single-line comment in Java?
# This is a comment
/* This is a comment */
// This is a single-line comment
-- This is a comment
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of System.out.println(5 + 3);?
6
8
10
9
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to define a class in Java?
define
object
class
function
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of System.out.println("Hello" + " World");?
HelloWorld
Hello, World
Hello World!
Hello World
Similar Resources on Wayground
10 questions
TPM (Total Productive Maintenance)
Quiz
•
1st - 10th Grade
11 questions
Le contrat de travail
Quiz
•
9th - 12th Grade
10 questions
Quiz sur le Carrelage
Quiz
•
3rd Grade - University
7 questions
TIPOS DE SALARIO EN COLOMBIA
Quiz
•
1st Grade - University
8 questions
INSTRUMENTOS FINANCIEROS
Quiz
•
10th Grade
12 questions
MORSE CODE MESSAGES
Quiz
•
10th Grade - University
10 questions
Les éléments d'un lave linge
Quiz
•
1st - 10th Grade
13 questions
ทดสอบก่อนเรียนพื้นฐานการเขียนโปรแกรมคอมพิวเตอร์
Quiz
•
9th - 12th Grade
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
