JS Practice Array & Function

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Nixon López
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Consider the following function:
What will be the result of calling the findMax
function with the array [3, 8, 2, 10, 5]
?
10
5
3
2
2.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Consider the following function:
What will be the result of calling the findAverage
function with the array [10, 20, 30, 40, 50]
?
30
25
40
35
3.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What is the data type of the variable studentInfo
in the following code snippet?
Number
String
Boolean
Object
4.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Consider the following code snippet:
Number
String
Boolean
Undefined
5.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Consider the following code snippet:
Number
String
null
Undefined
6.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Consider the following array:
let numbers = [1, 2, 3, 4, 5];
What will be the length of the numbers
array after executing the following code?
numbers.pop();
numbers.push(6);
console.log(numbers.length);
4
5
6
7
7.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Consider the following array:
let numbers = [5, 2, 8, 3, 1];
What will be the result of sorting the numbers
array in ascending order using the sort()
method?
[5, 2, 8, 3, 1]
[1, 2, 3, 5, 8]
[8, 5, 3, 2, 1]
[1, 3, 2, 5, 8]
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Basics Quiz 1

Quiz
•
8th Grade - University
6 questions
Mod 3 Quiz 1

Quiz
•
9th - 12th Grade
12 questions
Homework 1 Edublocks

Quiz
•
7th - 9th Grade
14 questions
AP CSA Review

Quiz
•
11th Grade
10 questions
Python Testing

Quiz
•
9th - 12th Grade
15 questions
Understanding Data Types in Python Quiz

Quiz
•
9th Grade
15 questions
Selection in Python

Quiz
•
1st - 9th Grade
12 questions
C# Arrays

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th 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
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade