JS_Array

JS_Array

8th Grade

15 Qs

quiz-placeholder

Similar activities

7.02 going online

7.02 going online

4th - 9th Grade

10 Qs

A2 Computing SQL

A2 Computing SQL

8th Grade

17 Qs

Computer Basics (Software)

Computer Basics (Software)

8th Grade

10 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

20 Qs

Python lesson 3

Python lesson 3

8th Grade

11 Qs

bài 1: Trắc nghiệm Pascal

bài 1: Trắc nghiệm Pascal

6th - 8th Grade

20 Qs

Standard Linux Commands

Standard Linux Commands

1st - 10th Grade

20 Qs

QBASIC Programming

QBASIC Programming

5th - 10th Grade

10 Qs

JS_Array

JS_Array

Assessment

Quiz

Computers

8th Grade

Practice Problem

Hard

Created by

swathi pugal

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...

15 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

let price = 10.5;

let day = "Monday";

day === "Monday" ? price -= 1.5 : price += 1.5;

console.log(price);

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Guess the value of the following statements

1 === '1'

true

false

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

let weather = "spring";

let clothingChoice = "";

if (weather === "spring") {

clothingChoice = "Put on rain boots.";

} else if (weather === "summer") {

clothingChoice = "Make sure to take your sunscreen.";

} else if (weather === "fall") {

clothingChoice = "Wear a light jacket.";

} else if (weather === 'winter') {

clothingChoice = "Wear a heavy coat.";

} else {

console.log('Invalid weather type.');

};

console.log(clothingChoice);

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

let runTime = 35;

let runDistance = 3.5;

if (runTime <= 30 && runDistance > 3.5) {

console.log("You're super fast!");

} else if (runTime >= 30 && runDistance <= 3) {

console.log("You're not making your pace!");

} else if (runTime > 30 || runDistance > 3) {

console.log("Nice workout!");

} else {

console.log("Keep on running!");

}

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

var array = ["a", "b", "c", "d", "e"];

var output = array.slice(2,3);

console.log(output);

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

let array1 = [1, 2, 3];

let array2 = [4, 5, 6];

let newArray = array1.slice(1).concat(array2.slice(2));

console.log(newArray);

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Find the Output

let colors = ["red", "green", "blue"];

colors.push("yellow");

colors.pop();

colors.unshift("purple");

colors.shift();

console.log(colors);

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?

Discover more resources for Computers