Variables

Variables

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Nhập môn HTML

Nhập môn HTML

6th - 9th Grade

13 Qs

11° Evaluación bimestral de informática

11° Evaluación bimestral de informática

11th Grade

15 Qs

Quiz 9 (15.09.2021)

Quiz 9 (15.09.2021)

1st - 12th Grade

10 Qs

Mecatrónica IOQ 3ro 2

Mecatrónica IOQ 3ro 2

8th - 10th Grade

10 Qs

Year 8 - Illustrator - L4

Year 8 - Illustrator - L4

7th - 9th Grade

15 Qs

Java Collection

Java Collection

12th Grade

10 Qs

Examen REgularizacion 2dos

Examen REgularizacion 2dos

12th Grade

14 Qs

Variables

Variables

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Andrea Lemonds

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

var x = 150

var y = 75

What is the value of the y variable?

150

75

225

Infinity

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In the following code, we define a variable and use it to draw a rectangle:

var rectWidth = 20;

rect(10, 10, rectWidth, rectWidth);

How wide is the rectangle?

Not wide enough

10

20

30

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In the following code, we define two variables, w and h, and use them to draw an ellipse and a rectangle:

var w = 20;

var h = 15;

rect(10, 10, w, h);

ellipse(10, 10, w, h);

How tall is each one of the shapes?

5

35

20

15

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The following code draws a face with a mouth (with no eyes!), using two variables:

var faceS = 100;

var mouthS = 30;

ellipse(200, 200, faceS, faceS);

ellipse(200, 220, mouthS, mouthS);

How wide is the second ellipse that draws the mouth?

30

200

100

130

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A variable is a way to store _______.

vapors

verbs

values

vegetables

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which is the correct way to write a variable?

var = X

X = 299

var = 299

var X = 299

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of these is a valid variable name?

leaf_1

myVar#!

$%90);

12bucklemyshoe$

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?