Skill #2 Array

Skill #2 Array

12th Grade

12 Qs

quiz-placeholder

Similar activities

3TDS - Programação Backend - Aula 20

3TDS - Programação Backend - Aula 20

12th Grade

10 Qs

Understanding Loops in C Programming

Understanding Loops in C Programming

1st Grade - University

15 Qs

JavaScript

JavaScript

12th Grade

10 Qs

ACTIVITY TIME~

ACTIVITY TIME~

12th Grade

10 Qs

CONCEPTOS ARDUINO

CONCEPTOS ARDUINO

1st Grade - University

10 Qs

NAT-Q

NAT-Q

9th Grade - University

11 Qs

Scratch Pre-knowledge

Scratch Pre-knowledge

3rd Grade - University

15 Qs

DBMS Introductory Quiz

DBMS Introductory Quiz

12th Grade

15 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

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?