Skill #2 Array

Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
Nixon López
Used 3+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
1. Which statement correctly declares an array in JavaScript?
var array = [1, 2, 3];
var array = {1, 2, 3};
var array = (1, 2, 3);
var array = <1, 2, 3>;
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you access the third element in an array named numbers?
numbers[2];
numbers[3];
numbers(3);
numbers{2};
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following initializes an empty array?
var array = [];
var array = {};
var array = ();
var array = <>;
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How can you iterate over an array named items using a for loop?
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which method adds one or more elements to the end of an array?
array.push(element);
array.pop();
array.shift();
array.unshift(element);
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
"apple"
"banana"
"mango"
undefined
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code return?
0
1
2
-1
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
массивы

Quiz
•
10th Grade - University
15 questions
แข่งขันcodingม.ปลาย

Quiz
•
12th Grade - University
15 questions
Understanding Loops in C Programming

Quiz
•
1st Grade - University
8 questions
Intro to JS: Functions, Scope & Objects

Quiz
•
11th Grade - University
15 questions
Spreadsheets Knowledge Check

Quiz
•
9th - 12th Grade
10 questions
Arrays in CQuiz

Quiz
•
1st Grade - University
15 questions
Digital Image Processing Quiz

Quiz
•
12th Grade
13 questions
9 КЛАСС 7 урок Основные алгоритмические конструкции и тип данных

Quiz
•
9th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade