Insert the missing part of the code below to output "Hello World".
public class MyClass {
public static void main(String[] args) {
______.___.________("Hello World");
}
}
Quiz 4: Java Syntax
Quiz
•
Information Technology (IT)
•
Professional Development
•
Hard
MADHURI KETHARI
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Insert the missing part of the code below to output "Hello World".
public class MyClass {
public static void main(String[] args) {
______.___.________("Hello World");
}
}
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Comments in Java are written with special characters. Insert the missing parts:
___This is a single-line comment
___This is a multi-line comment___
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Create a variable named carName and assign the value Volvo to it.
____________ _________ = ___________;
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Create a variable named maxSpeed and assign the value 120 to it.
____ ___________ = _____;
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Display the sum of 5 + 10, using two variables: x and y.
----- ----- = ---- ;
int y = 10;
System.out.println(x + y);
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Create a variable called z, assign x + y to it, and display the result.
int x = 5;
int y = 10;
--- -- = x + y;
System.out.println();
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Fill in the missing parts to create three variables of the same type, using a comma-separated list:
--- x = 5-- y = 6-- z = 50;
System.out.println(x + y + z);
20 questions
V / F SQL
Quiz
•
Professional Development
25 questions
JS-QUIZ
Quiz
•
Professional Development
20 questions
JavaScript Quizz
Quiz
•
Professional Development
20 questions
Java Inntro and Variables
Quiz
•
Professional Development
20 questions
React Redux
Quiz
•
Professional Development
20 questions
Ruby
Quiz
•
Professional Development
21 questions
Java Fundamentals - Exame Final - Seção 7 (Classes Java)
Quiz
•
Professional Development
20 questions
Frontend - CTO Cup
Quiz
•
Professional Development
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade