Search Header Logo

Coding Variables

Authored by Stephanie Placa

Computers

7th - 8th Grade

Coding Variables
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

How are variables created?

label=value;

var label = value;

var value;

var label;

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the following lines of code do?

1) var size = 100;

2) background("skyblue");

3) fill("yellow");

4)ellipse(400, 0, size, size);

Create a yellow ellipse in the top left corner.

Create a yellow ellipse in the top right corner.

There was an error due to the size in line 4.

None of the following answers.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Debug the following lines of code:

1) var 2bugs = 15;

2) fill("red");

3) ellipse(200, 200, bugs, bugs);

Line 1: label can't start with a number

Line 3: labels aren't the same as line 1

Line 1: the declaration of variables isn't done correctly

There is nothing to fix

4.

OPEN ENDED QUESTION

5 mins • Ungraded

Compare how to use variables in coding versus in math class.

Evaluate responses using AI:

OFF

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Determine the difference between = and ==.

= means gets the value

== means comment

== means gets the value

= means comment

= means gets the value

== means equal to

They are the same thing

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?

Discover more resources for Computers