Variable Naming in Java

Variable Naming in Java

12th Grade

10 Qs

quiz-placeholder

Similar activities

SIMULACRO ESFM 2019

SIMULACRO ESFM 2019

12th Grade

10 Qs

QUIZ MIKROTIK

QUIZ MIKROTIK

12th Grade

15 Qs

MARKETING MIX

MARKETING MIX

12th Grade

15 Qs

Classroom Quiz - Level 2 Final Session

Classroom Quiz - Level 2 Final Session

10th Grade - University

12 Qs

CONTABILIDAD ADMINISTRATIVA (COSTOS)

CONTABILIDAD ADMINISTRATIVA (COSTOS)

3rd Grade - University

10 Qs

Identifying the Variables

Identifying the Variables

11th - 12th Grade

15 Qs

EVALUACÓN HACCP

EVALUACÓN HACCP

11th Grade - University

10 Qs

PR 2 Week 2 Review

PR 2 Week 2 Review

12th Grade

10 Qs

Variable Naming in Java

Variable Naming in Java

Assessment

Quiz

Other

12th Grade

Hard

Created by

Shawn Goodwin

Used 7+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?