
Java 1.1 to 2.1

Quiz
•
Other
•
12th Grade
•
Hard
PRESTON COLE
Used 1+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Topic 1.1: Describe the use of main in a Java app
Imagine you're a wizard in the magical world of Java. What's the right spell to summon an instance of your own class in the main function?
MyClass myObject = new MyClass();
MyClass myObject = MyClass();
myObject = MyClass.new;
new myObject = MyClass();
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Topic 1.1: Describe the use of main in a Java app
How can you pass command-line arguments when running a Java application?
Separate them by commas
Put them in square brackets
Separate them by spaces
Enclose them in double quotes
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Topic 1.2: Perform basic input and output using standard packages
Which method of the Scanner class reads a whole line from standard input?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Topic 1.2: Perform basic input and output using standard packages
Which import statement is necessary for using Scanner class?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Topic 1.3: Evaluate the scope of a variable
What will be the scope of a variable declared inside a for-loop?
Class scope
Instance scope
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Topic 1.3: Evaluate the scope of a variable
What happens if you try to access a local int variable before it's initialized?
A runtime error occurs
The variable will be automatically initialized to the default value for an int, which is 0.
A compilation error occurs
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Topic 1.4: Comment and document programs
Which symbol marks the beginning of a Javadoc comment?
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
FFA Review

Quiz
•
6th - 12th Grade
14 questions
ID1 4.02 Review

Quiz
•
9th - 12th Grade
11 questions
Debate - Day 1

Quiz
•
8th - 12th Grade
15 questions
ISEED Mencari Bakat 3

Quiz
•
1st - 12th Grade
14 questions
CRAAP test

Quiz
•
11th Grade - University
15 questions
MM - JavaScript

Quiz
•
12th Grade
15 questions
Robotics and Artificial Intelligence

Quiz
•
6th Grade - Professio...
20 questions
III- Summative 1

Quiz
•
12th Grade - University
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
Discover more resources for Other
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

Quiz
•
6th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)

Quiz
•
9th - 12th Grade
20 questions
Parallel lines and transversals

Quiz
•
9th - 12th Grade
9 questions
Geometry and Trigonometry Concepts

Interactive video
•
9th - 12th Grade
10 questions
Angle Relationships with Parallel Lines and a Transversal

Quiz
•
9th - 12th Grade