T3 Y7 Grasshopper App

T3 Y7 Grasshopper App

7th - 9th Grade

8 Qs

quiz-placeholder

Similar activities

JavaScript ievads

JavaScript ievads

7th - 8th Grade

10 Qs

Chapter 5

Chapter 5

9th Grade

10 Qs

Python

Python

7th - 9th Grade

12 Qs

Python Ifs, Lists, and Loops

Python Ifs, Lists, and Loops

7th - 8th Grade

11 Qs

Variables & Conditional Statements

Variables & Conditional Statements

9th Grade

10 Qs

JavaScript Graphics

JavaScript Graphics

9th - 12th Grade

10 Qs

IX AI

IX AI

9th Grade

10 Qs

Python 8 klas(praporci ta peremukachi)

Python 8 klas(praporci ta peremukachi)

8th Grade

12 Qs

T3 Y7 Grasshopper App

T3 Y7 Grasshopper App

Assessment

Quiz

Computers

7th - 9th Grade

Hard

Created by

Lefteris Tavelis

Used 26+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do I declare a new variable?
var newVariable = 5;
Variable int = new Variable();
var 5 = myVariable;
int var = 5;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A store has 20 apples in inventory.How can you store this information in a JavaScript variable?
var numApples == 20;
20 = numApples;
var numApples = 20;
var num apples = 20;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After running the following code, what will be the value of x?
y = 3;
x = 5 * y;
3
5
15
0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code print out?


var y = 5;

var x = y;

print(x);

5

y

x

5x

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code print out?


var word = 'alphabet';

var alphabet = 'word';

print(alphabet);

print(alphabet)

'word'

'alphabet'

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which variable is storing an array?


var myShoes = 'sneakers, highHeels, pumps';

var yourShoes = [

'sneakers'

'highHeels'

'pumps'

];

var shoeColor = drawBox(blue);

shoeColor

myShoes

yourShoes

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What code would you write to check if the grasshopper variable is holding the word 'happy'?


var grasshopper = 'happy';

grasshopper = 'happy'

grasshopper === 'happy'

'happy'

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which code will draw a box only if the blue property of rgbObject is more than 10?

Media Image
Media Image
Media Image