NEW
Font size
WorksheetsGrasshopper App Quiz
Total questions: 15
Worksheet time: 8mins
y = 3;
x = 5 * y;
What will this code print out?
var y = 5;
var x = y;
print(x);
5
y
x
5x
What will this code print out?
var word = 'alphabet';
var alphabet = 'word';
print(alphabet);
print(alphabet)
'word'
'alphabet'
None of the above
Which variable is storing an array?
var myShoes = 'sneakers, highHeels, pumps';
var yourShoes = [
'sneakers'
'highHeels'
'pumps'
];
var shoeColor = drawBox(blue);
shoeColor
myShoes
yourShoes
What code would you write to check if the grasshopper variable is holding the word 'happy'?
var grasshopper = 'happy';
grasshopper = 'happy'
grasshopper === 'happy'
'happy'
What will be the correct output for this flag?
drawBoxes('bbb ggg rrr')
drawBoxes('ggg yyy bbb')
drawBoxes('aaa bbb ccc')
None of the above
How many blue boxes will be created with this code?
drawBoxes(bobb r r g)
1
4
3
5
What will be the output of this code?
water
water
juice
water
juice
juice
water
juice
I am a special variable, where i can store list of strings. Who am I?
string
character
word
array
I am a zero or set of characters written inside single quotation mark. e.g. ' ' or 'sunday' . Who am I ?
variable
string
answer
output
I am a javascript function used to display output. Who am I?
var
array
print()
output
I am a value written in side parentheses along with the javascript function. Who am I?
value
result
data
argument
I am a JavaScript function used to pickup one value from the array and display. Who am I?
newLine()
pickRandom()
drawBox()
turnLeft()
