Week 8.1

Week 8.1

Professional Development

10 Qs

quiz-placeholder

Similar activities

all star

all star

Professional Development

10 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

Lógica de Programação - dia final

Lógica de Programação - dia final

Professional Development

15 Qs

Javascript basics

Javascript basics

Professional Development

15 Qs

IT Fundamentals

IT Fundamentals

Professional Development

10 Qs

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

OOP Belitung

OOP Belitung

Professional Development

10 Qs

Java Displaying Data & Data Types

Java Displaying Data & Data Types

University - Professional Development

12 Qs

Week 8.1

Week 8.1

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Poul Nichols

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you declare an empty array in JavaScript?

var snacks = "";

var snacks = {};

var snacks = [];

var snacks = null;

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which index number is assigned to the first element of an array?

0

1

-1

+1

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of the following code snippet?

var snacks = ["chips", "soda", "dip"];

document.write(snacks[1]);

chips

soda

dip

4.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which method can be used to display all the elements of an array with commas between them?

Choose 2

toString()

join()

display()

print()

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What keyword is used to instantiate an object based on a constructor?

new

create

instance

make

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In the given example, what are the parameters of the Cat constructor?

function Cat(name, weight, paidYet) {

this.name = name;

this.weight = weight;

this.isLicensed = paidYet; }

this.name, this.weight, this.isLicensed

catName,

catWeight,

catPaidYet

Catname,

Catweight,

Catpaidyet

name,

weight,

paidYet

7.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of the following is a valid way to create an object in JavaScript?

Choose 3

var object1 = Object.create(obj);

var object = {key : value}

var object = new Object();

function Object(name, age)

{ this.name = name;

this.age = age; }

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

Already have an account?