Search Header Logo

FST Class 2023- Quiz 8

Authored by FunctionUp School of Technology

Computers

University

Used 3+ times

FST Class 2023- Quiz 8
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which JavaScript object provides mathematical functions and constants?

`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

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is the correct way to create a `Date` object representing the current date and time?

`new Date()`

`Date.current()`

`new Date.now()`

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?