FST Class 2023- Quiz 8

FST Class 2023- Quiz 8

University

10 Qs

quiz-placeholder

Similar activities

Clean Code

Clean Code

University

7 Qs

TIU Quiz-9

TIU Quiz-9

University

10 Qs

Post Test Oprasional LOGIKA 2022

Post Test Oprasional LOGIKA 2022

University

11 Qs

J277 - 2.2 - Random Number Generation

J277 - 2.2 - Random Number Generation

10th Grade - University

8 Qs

Pengantar Coding

Pengantar Coding

University

10 Qs

Amulet Protocol Quiz

Amulet Protocol Quiz

University

10 Qs

Database Design & Development SQL 2

Database Design & Development SQL 2

University

12 Qs

Python modules, operators and random

Python modules, operators and random

University

15 Qs

FST Class 2023- Quiz 8

FST Class 2023- Quiz 8

Assessment

Quiz

Computers

University

Medium

Created by

FunctionUp School of Technology

Used 3+ times

FREE Resource

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()`

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?