Java Level 1 - A

Quiz
•
Computers
•
12th Grade
•
Medium
Tom Dawson
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Java, every application begins with a ______ and must match the file name?
Comment Line
Public Class
Command
Variable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following script will produce the output ?
public class Main {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
An Error message
No output
Hello World
public class Main
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To printout the text 'Hello world', which syntax code needs to be added inside the Main class below?
public class Main {
public static void main(String[] args) {
????.????.????("Hello World");
} }
out.println.system
println.out.System
System.out.println
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which characters below is used to mark the beginning and end of a block of code in Java?
{ }
[ ]
//
/* */
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Java characters are used for a single line comment (will not executed)?
/*
#
//
**
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What is the command to print the results from the code below?
2 correct answers
public class Main {
public static void main(String[] args) {
System.out.?????(3 + 3);
}
}
println
PrintLN
output
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To correct this code, you would need to do what?
System.out.println(This sentence will produce an error);
Will work without any additional code
Must wrapped text inside double quotations marks with " "
Must use the // or /*
Replace the println with print
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
AP-Computer Science A

Quiz
•
12th Grade
20 questions
3rd Qtr QUIZ1 COMPUTER PROGRAMMING-Strings in Java-2-22-2023

Quiz
•
12th Grade
15 questions
Area and Arrays

Quiz
•
10th - 12th Grade
13 questions
APCSA Unit 3 Review

Quiz
•
9th - 12th Grade
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
20 questions
Java, part I

Quiz
•
11th Grade - University
17 questions
AP CS Test 0 Module 1

Quiz
•
9th - 12th Grade
10 questions
Java Print Statements Warm-Up

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University