wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

11/13 Array Review

Total questions: 8

Worksheet time: 40mins

Name
Class
Date
1.
What is the name of this array?
a)
Friday
b)
quiz
c)
Quiz
d)
don't know
2.
What do all strings need in an array?
a)
[] - square brackets
b)
{} - curly brackets
c)
"" - quotation marks
d)
; - a semi colon
3.
Why are there no quotation marks around the information on line 4?
a)
It is a number.
b)
It is a string.
c)
It is a boolean.
d)
It is an alert.
4.
What will the following code print?
alert (quiz[5]);
a)
nothing
b)
true
c)
This is the array.
d)
//5
5.
Which code will print out the information from position //1?
a)
alert (quiz[4]);
b)
confirm (Quiz[1]);
c)
alert (QUIZ[9]);
d)
prompt (quiz[1]);
6.
Which code WILL NOT print the information stored in position //4?
a)
console.log (quiz[4]);
b)
alert (quiz[4]);
c)
prompt (quiz[4]);
d)
alert (Quiz[4]);
7.
What will this code print out?
console.log (Quiz[0]);
a)
This is the array.
b)
true
c)
Either do booleans
d)
nothing, it is coded incorrectly.
8.
Which code will print "50"?
a)
console.log(quiz [0]);
b)
alert (quiz [3]);
c)
confirm (quiz [4]);
d)
prompt (quiz [9]);