NEW
Font size
WorksheetsArrays
Total questions: 21
Worksheet time: 11mins
_________________ is a collection of elements used to store the same type of data.
Array
Switch
Case
Loop
What is returned by values[5]?
2
12
6
8
var nums =[2, 3, 5, 8, 9, 11];
How would you access the fourth element in nums
nums[4]
nums[3]
nums(4)
nums(3)
X is ?
Array
Variable
X is ?
Array
variable
............. is a placeholder for only one data?
Array
Variable
.......... is a placeholder for related data?
Array
variable
which option represent: Array holding a String data?
Arrays are containers of slots each slot can have two value.
True
False
Allowed to create an empty array and then add values
True
False
Arrays in JavaScript are zero-indexed which means the first index is 0.
True
False
var nums =[2, 3, 5, 8, 9, 11];
How would you access the first element in nums
num(1);
num[1];
num(0);
num[0];
x is array of 10 items, to access the last index ?
x[10];
x(10);
x[9];
x(9);
using (appendItem) will add the new item to the ........ of the array
First
Middle
End
Entire array is enclosed in:
( )
{ }
[ ]
values in arrays are separated with
;
,
-
/
what is the result of :
nums[1]+nums[3]
3
14
6
5
what will be the array after executing this line ?
names[1] = "Sarah";
what will be the array after executing this code?
appendItem(names, "Sarah");
what will be the array after executing this code?
removeItem(names, 3);
what will be the array after executing this code?
insertItem(names, 1 , "Ahmed");
