Search Header Logo

Variables Quiz Review

Authored by Autumn Hart

Computers

9th Grade

Used 5+ times

Variables Quiz Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

When this code runs, what will be displayed on the screen?

Type EXACTLY what will be shown. Be careful about capitalization, punctuation, spacing, and spelling. If you are not exact about what the code will do, then your answer is incorrect.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these options is a primitive data type in Java?

floatation

int
String

All of these options

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the word "primitive" mean when we say primitive data type?

Data types that are outdated and no longer used in programming languages.
Basic data types that are built-in to a programming language and are not composed of other data types.
Data types that are only used in advanced programming languages.
Data types that are complex and composed of other data types.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a reason programmers use camelCasing to name variables in Java?

It makes the code easier to read and understand.

Programmers don't use camelCasing in Java.

It makes the code harder to read so other people can't steal programming jobs.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A programmer is making a program that tracks whether or not a grocery store sells apples.
The programmer decides to use a boolean variable called amountOfApples for this.

True or False: amountOfApples is a good name for this boolean variable.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be printed if the user types in "Jane Doe" in this code?

userName

Hello!

Jane

Jane Doe

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

To create a variable.

Access all questions and much more by creating a free account

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

Already have an account?