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
15 questions
Quiz de Programação e Scratch

Quiz
•
12th Grade
10 questions
3TDS - Programação Backend - Aula 20

Quiz
•
12th Grade
10 questions
2.1 資料結構與陣列

Quiz
•
9th - 12th Grade
10 questions
Pemrograman PHP dan MySQL

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

Quiz
•
1st Grade - University
11 questions
массивы

Quiz
•
10th Grade - University
10 questions
Quiz de JavaScript Básico

Quiz
•
12th Grade
10 questions
G12 Sem 2 T 3

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie

Quiz
•
5th - 12th Grade
20 questions
Macromolecules

Quiz
•
9th - 12th Grade