Which of the following is not a valid Java comment?

CH 2 - Java Fundamentals

Quiz
•
Computers
•
University
•
Easy
Alex Zaldivar
Used 47+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
/** Comment 1 */
*/ Comment 2 /*
// Comment 3
/* Comment 4 */
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When saving a Java source file, save it with an extension of
.java.
.javac.
.src.
.class.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This is a value that is written into the code of a program.
Literal
Assignment statement
Operator
Variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a rule that must be followed when naming identifiers?
After the first character, you may use the letters a-z, A-Z, an underscore, a dollar sign, or digits 0-9.
Identifiers can contain spaces.
Uppercase and lowercase characters are distinct.
The first character must be one of the letters a-z, A-Z, an underscore or a dollar sign.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Character literals are enclosed in ________, and string literals are enclosed in ________.
single quotes, double quotes
double quotes, single quotes
single quotes, single quotes
double quotes, double quotes
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following expression?
17 % 3 * 2 - 12 + 15
105
12
7
8
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of z after the following statements have been executed?
int x = 4, y = 33;
double z;
z = (double) (y / x);
8.25
4
0
8.0
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Java

Quiz
•
University
10 questions
Talent Next Java MCQ-1

Quiz
•
University
15 questions
Basic Java Quiz

Quiz
•
University
20 questions
Java, part I

Quiz
•
11th Grade - University
15 questions
II CSM A & B

Quiz
•
University
18 questions
Array_to be discussF3

Quiz
•
University
14 questions
Java Operators

Quiz
•
University
11 questions
Array

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade