Skill #2 Array

Skill #2 Array

12th Grade

12 Qs

quiz-placeholder

Similar activities

Basics of C Programming

Basics of C Programming

12th Grade

10 Qs

Spreadsheets Knowledge Check

Spreadsheets Knowledge Check

9th - 12th Grade

15 Qs

Python for loop/lists

Python for loop/lists

9th Grade - University

15 Qs

Quiz sobre el ornitorrinco y la programación

Quiz sobre el ornitorrinco y la programación

8th Grade - University

15 Qs

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

11th Grade - University

16 Qs

Intro to JS: Variables & Values

Intro to JS: Variables & Values

11th Grade - University

8 Qs

MakeCode Arcade Questions

MakeCode Arcade Questions

10th Grade - University

15 Qs

0- and 1-Pixel Art Activity

0- and 1-Pixel Art Activity

9th - 12th Grade

10 Qs

Skill #2 Array

Skill #2 Array

Assessment

Quiz

Information Technology (IT)

12th Grade

Hard

Created by

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?

Media Image
Media Image
Media Image
Media Image

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

Media Image

What will be the output of the following code?

"apple"

"banana"

"mango"

undefined

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following code return?

0

1

2

-1

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?