Which JavaScript object provides mathematical functions and constants?

FST Class 2023- Quiz 8

Quiz
•
Computers
•
University
•
Medium
FunctionUp School of Technology
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
`Math`
`Calc`
`Arithmetic`
`Number`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of `Math.PI` in JavaScript?
Approximately 3.14
Approximately 2.71
Approximately 1.61
Exactly 3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To find the nearest integer greater than or equal to a given number `x`, you can use:
`Math.ceil(x)`
`Math.floor(x)`
`Math.round(x)`
`Math.min(x)`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which `Math` method is used to calculate the square root of a number?
`Math.sqrt(x)`
`Math.squareRoot(x)`
`Math.pow(x, 0.5)`
`Math.square(x)`
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How can you generate a random integer between 1 and 100 (inclusive) in JavaScript using the `Math` object?
`Math.random(1, 100)`
`Math.floor(Math.random() * 100) + 1`
`Math.random() * 100 + 1`
`Math.ceil(Math.random() * 100)`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the JavaScript `Date` object represent?
A specific time and date
Mathematical calculations
A string of characters
A conditional statement
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Programming

Quiz
•
5th Grade - University
15 questions
Fall Feast Tynker Tutorial Check Up

Quiz
•
7th Grade - University
15 questions
Большое Повторение C#

Quiz
•
5th Grade - University
8 questions
J277 - 2.2 - Random Number Generation

Quiz
•
10th Grade - University
10 questions
Amulet Protocol Quiz

Quiz
•
University
12 questions
Database Design & Development SQL 2

Quiz
•
University
10 questions
Microsoft Office

Quiz
•
University - Professi...
10 questions
System Administration V

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade