Search Header Logo

RMM | Javascript (20th March 2020)

Authored by Ambarine Auckloo

Computers

Professional Development

Used 21+ times

RMM | Javascript (20th March 2020)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does Javascript do?

Specify the layout of the webpages

Define the function of the webpage

Define the content of the workbook

I don’t know :(

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How would you define a variable called steps with a value of 20?

var steps= 20;

steps=20;

Steps=20;

variable steps=20;

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

If we have an array called “numbers” which contain [39,20,40,99,30], what syntax should you write to obtain the value 40?

numbers[2]

Numbers[1]

numbers(2)

numbers[3]

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you obtain the length of an array called “cards” which contain [“hearts”,spades”,”clubs”,”diamonds”] ?

cards.length

Cards.length

Cards,length

cards.Length

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

If you have an array : "things" =[“pen”,”shorts”,”sofa”,”bed”,”table”].

How will you create a new array called "specialthings" containing only bed, table and sofa?

specialthings(bed,table,sofa);

specialthings.push(things[3],things[things.length-1],things[2]);

things.push(things[3],things[things.length-1],things[2]);

things.push(things[0],things[1],things[2])

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

This is a for loop that let variable i count from 0 to 200 in increments of 3.Rearrange the code in such a way that it works.

4,6,5,1,3,2,8,7

4,5,6,7,1,2,8,3

5,6,7,8,1,2,3,4

3,5,7,1,2,4,5,8

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

How many mistake are there in this code snippet?

1

2

3

4

Access all questions and much more by creating a free account

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?