JavaScript Math Object & Random Numbers Interview Questions – Math Object & Random Numbers Online Quiz

Question 1:  What does Math.random() return in JavaScript?

Question 2:  Which method is used to round a number to the nearest integer in JavaScript?

Question 3:  What will Math.floor(4.7) return?

Question 4:  Which method returns the smallest number from a set of numbers?

Question 5:  What is the output of Math.ceil(6.1)?

Question 6:  What is the purpose of Math.abs()?

Question 7:  What does Math.pow(2, 3) return?

Question 8:  What is the use of Math.sqrt()?

Question 9:  Which method returns a random integer between 1 and 10 (inclusive)?

Question 10:  Which of the following is NOT a method of Math object?

Leave a Reply