Which of the following are valid Java identifiers? (Choose all that apply)
OCA Unit 1

Quiz
•
Computers
•
11th Grade - Professional Development
•
Hard
Danielle Mills
Used 14+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
A$B
_helloWorld
1980_s
java.lang
Public
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program?
Line 6 generates a compiler error.
Line 7 generates a compiler error.
Empty = false, Brand =
Empty = false, Brand = null
Empty = null, Brand = null
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following are true? (Choose all that apply)
Line 5 generates a compiler error.
Line 7 generates a compiler error.
Line 8 generates a compiler error.
Line 6 generates a compiler error.
The code compiles as is.
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Given the following class, which of the following is true? (Choose all that apply)
If String result = "done"; is inserted on line 2, the code will compile.
If String result = "done"; is inserted on line 4, the code will compile.
If String result = "done"; is inserted on line 6, the code will compile.
If String result = "done"; is inserted on line 9, the code will compile.
None of the above changes will make the code compile.
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Given the following classes, which of the following can independently replace INSERT
IMPORTS HERE to make the code compile? (Choose all that apply)
import aquarium.*;
import aquarium.*.Jelly;
import aquarium.jellies.Jelly;
import aquarium.jellies.*;
import aquarium.jellies.Jelly.*;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following classes, what is the maximum number of imports that can be removed
and have the code still compile?
0
1
2
3
4
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Given the following classes, which of the following snippets can be inserted in place of
INSERT IMPORTS HERE and have the code compile? (Choose all that apply)
import aquarium.*;
import aquarium.Water;
import aquarium.jellies.*;
import aquarium.*;
import aquarium.jellies.Water;
import aquarium.*;
import aquarium.jellies.*;
import aquarium.Water;
import aquarium.jellies.Water;
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
JDBC

Quiz
•
University
19 questions
Data Types Java Concepts

Quiz
•
University
20 questions
CHAPTER 9 AND 10

Quiz
•
12th Grade
20 questions
JAVA Basics Quiz

Quiz
•
University
20 questions
Quiz on Java

Quiz
•
University
25 questions
Introduction to Java

Quiz
•
University
20 questions
QUIZ-5 static, String and StringBuffer

Quiz
•
Professional Development
20 questions
SASS and NPM Quiz

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University