
JS_Array

Quiz
•
Computers
•
8th Grade
•
Hard
swathi pugal
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
11 questions
Python Basics Quiz

Quiz
•
8th Grade
16 questions
Quizz

Quiz
•
1st - 12th Grade
17 questions
Python Programming: Amazon Turing Lab Farmbot Key Terms

Quiz
•
8th Grade
20 questions
TechSmart 1.1 & 1.2 Vocab Practice

Quiz
•
8th Grade
15 questions
Roles in Animation and Game Design Industry Quiz

Quiz
•
8th Grade
15 questions
App Lab

Quiz
•
6th - 9th Grade
15 questions
Code.org Quiz2

Quiz
•
7th Grade - University
11 questions
JS: Conditionals!

Quiz
•
6th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade
21 questions
Gear Ratio Practice

Quiz
•
6th - 8th Grade