
Variable Naming in Java
Quiz
•
Other
•
12th Grade
•
Hard
Shawn Goodwin
Used 7+ times
FREE Resource
Enhance your content
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Java?
void
r2d2
3d
public
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the first rule for naming variables in Java?
Variables may not begin with a digit
Variables may not contain punctuation characters
Variables cannot contain spaces
Variables cannot be reserved words
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an exception to the punctuation rule for variable names?
!
_
/
?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the fourth rule for naming variables in Java?
Variables may not begin with a digit
Variables may not contain punctuation characters
Variables cannot contain spaces
Variables cannot be reserved words
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about variable names in Java?
Variables are case sensitive
Variables are not case sensitive
Variables can contain spaces
Variables can be reserved words
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an invalid variable name in Java?
hello
void
r2d2
my var
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the second rule for naming variables in Java?
Variables may not begin with a digit
Variables may not contain punctuation characters
Variables cannot contain spaces
Variables cannot be reserved words
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
JAVA GUI
Quiz
•
11th - 12th Grade
15 questions
CNN 10 Weekly Quiz - December 02, 2024b
Quiz
•
6th Grade - University
11 questions
PR2 Remediation
Quiz
•
12th Grade
10 questions
Syntax Review: Simple/Compound Sentences
Quiz
•
6th - 12th Grade
12 questions
Foodborne Illness
Quiz
•
9th - 12th Grade
10 questions
Economics -Social Science or Applied Science?
Quiz
•
12th Grade
14 questions
Técnicas e instrumentos en la recolección de información
Quiz
•
12th Grade
14 questions
Manejo del tiempo
Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Other
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
17 questions
Afro Latinos: Una Historia Breve Examen
Quiz
•
9th - 12th Grade
17 questions
Hispanic Heritage Month Trivia
Quiz
•
9th - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
15 questions
PRESENTE CONTINUO
Quiz
•
9th - 12th Grade