
Built in math functions JS

Quiz
•
Computers
•
11th Grade
•
Medium
Ibrahim Mohamed
Used 6+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an if statement in JavaScript?
To repeat a block of code
To check if a condition is true and execute a block of code if it is
To declare a new variable
To comment out a line of code
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax for an if statement in JavaScript?
if (condition)
if (condition) ... else ...
if { ... } else { ... }
if (condition)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can be used as a condition in an if statement?
A Boolean expression (true/false)
A string
A number
A function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Math.min(x, y, ...)
Math.max(x, y, ...)
Math.random()
Math.pow(x, y)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Function returns the absolute value of a number.
Math.abs(x)
Math.sqrt(x)
Math.ceil(x)
Math.round(x)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Function returns the square root of a number.
Math.abs(x)
Math.sqrt(x)
Math.ceil(x)
Math.round(x)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Function rounds a number to the nearest integer. (0.6 → 1) (0.2→0)
Math.abs(x)
Math.sqrt(x)
Math.ceil(x)
Math.round(x)
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Function rounds a number up to the next integer.(0.2 → 1)
Math.abs(x)
Math.sqrt(x)
Math.ceil(x)
Math.round(x)
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Function rounds a number down to the nearest integer. (0.6 → 0)
Math.abs(x)
Math.floor(x)
Math.ceil(x)
Math.round(x)
Similar Resources on Wayground
10 questions
Python - PyGame - 1

Quiz
•
11th - 12th Grade
14 questions
Java Math and String Libraries

Quiz
•
9th - 12th Grade
13 questions
Intro to IF statements

Quiz
•
KG - University
10 questions
Advance Spreadsheet Skills

Quiz
•
11th Grade
10 questions
Modelado 3D

Quiz
•
11th Grade
9 questions
Pentaksiran T4(1.5)

Quiz
•
11th Grade
8 questions
BÀI 8- CHỦ ĐỀ F-TH10

Quiz
•
9th - 12th Grade
10 questions
TỪ BÀI TOÁN ĐẾN CHƯƠNG TRÌNH

Quiz
•
11th 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