
Built in math functions JS
Authored by Ibrahim Mohamed
Computers
11th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Sesión 03
Quiz
•
1st - 12th Grade
11 questions
Dispositivos de red
Quiz
•
11th Grade
10 questions
paquetes contables lección 1
Quiz
•
11th Grade - Professi...
10 questions
4 lentes de diseño
Quiz
•
9th - 12th Grade
12 questions
Calidad y Atributos del Servicio
Quiz
•
9th - 12th Grade
8 questions
Câu hỏi về phần mềm Kodu
Quiz
•
1st Grade - University
9 questions
Examen primer parcial Mantenimiento
Quiz
•
9th - 12th Grade
14 questions
AWS Cloud
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
10 questions
Evaluating Piecewise Functions Practice
Quiz
•
11th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade