Skill #2 Array

Skill #2 Array

12th Grade

12 Qs

quiz-placeholder

Similar activities

Linux Core Directories

Linux Core Directories

11th Grade - University

9 Qs

Berpikir Komputasional - Struktur Data

Berpikir Komputasional - Struktur Data

9th Grade - University

10 Qs

Fundamentals of PHP Programming

Fundamentals of PHP Programming

12th Grade

15 Qs

ArrayList Quiz

ArrayList Quiz

12th Grade

10 Qs

Introduction to Computer Science Concepts

Introduction to Computer Science Concepts

6th Grade - University

10 Qs

Java Diagnostic Assessment

Java Diagnostic Assessment

12th Grade

10 Qs

Asesmen Harian 1

Asesmen Harian 1

11th Grade - University

10 Qs

Quiz on Blockly Programming (Fundametal - P2)

Quiz on Blockly Programming (Fundametal - P2)

7th Grade - University

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?