FST Class 2023- Quiz 8

FST Class 2023- Quiz 8

University

10 Qs

quiz-placeholder

Similar activities

MICROSOFT WORD

MICROSOFT WORD

University

15 Qs

Unidad 4 - Usando el Java API Library

Unidad 4 - Usando el Java API Library

University

10 Qs

Web3 Headlines, Heroes, and Hoaxes

Web3 Headlines, Heroes, and Hoaxes

University - Professional Development

10 Qs

Tehnologii Web

Tehnologii Web

University

10 Qs

Computer 10: Date and Time, String Manipulation Functions

Computer 10: Date and Time, String Manipulation Functions

7th Grade - University

15 Qs

ED810 Review

ED810 Review

University

13 Qs

FGCT4025 Topic 3 - Method

FGCT4025 Topic 3 - Method

University

15 Qs

F4 CS_ Testing Methods

F4 CS_ Testing Methods

10th Grade - University

12 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?