Search Header Logo

#124 Unit 2 Lesson 6 Variables

Authored by Myra Deister

Computers

11th Grade

Used 3+ times

#124 Unit 2 Lesson 6 Variables
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in programming?

A software development methodology

A type of computer hardware

A container for storing a value

A set of instructions for the computer to follow

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the two types of variables in Java?

Static and Dynamic

Primitive and Reference

Public and Private

Integer and String

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which color sticky note represents integers in the analogy?

Green

Blue

Yellow

Red

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a reference variable contain?

A direct value

A list of commands

An address pointing to a location in memory

A numerical code

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the three decisions to make when creating a variable?

Size, Type, Name

Name, Type, Value

Access, Type, Name

Type, Value, Location

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of variable is used to store decimal numbers in Java?

string

boolean

double

int

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in Java?

datatype = name;

create datatype name;

name datatype;

datatype name;

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?