Built in math functions JS

Built in math functions JS

11th Grade

9 Qs

quiz-placeholder

Similar activities

Bài trăc nghiệm thử

Bài trăc nghiệm thử

11th Grade

10 Qs

ktra 15ph khối 11 kì 1

ktra 15ph khối 11 kì 1

11th Grade

10 Qs

CT3 REvision

CT3 REvision

11th Grade

10 Qs

คำสั่งวนรอบภาษาซี (post-test)

คำสั่งวนรอบภาษาซี (post-test)

3rd Grade - University

10 Qs

Информатика

Информатика

10th - 11th Grade

10 Qs

3D - TISKALNIK

3D - TISKALNIK

1st - 12th Grade

10 Qs

Ծրագրավորման Պասկալ լեզու

Ծրագրավորման Պասկալ լեզու

11th Grade

8 Qs

CAT Theory Revision Part 1

CAT Theory Revision Part 1

8th - 11th Grade

11 Qs

Built in math functions JS

Built in math functions JS

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Ibrahim Mohamed

Used 6+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of an if statement in JavaScript?

To repeat a block of code

To check if a condition is true and execute a block of code if it is

To declare a new variable

To comment out a line of code

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax for an if statement in JavaScript?

if (condition)

if (condition) ... else ...

if { ... } else { ... }

if (condition)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can be used as a condition in an if statement?

A Boolean expression (true/false)

A string

A number

A function

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Math.min(x, y, ...)

Math.max(x, y, ...)

Math.random()

Math.pow(x, y)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Function returns the absolute value of a number.

Math.abs(x)

Math.sqrt(x)

Math.ceil(x)

Math.round(x)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Function returns the square root of a number.

Math.abs(x)

Math.sqrt(x)

Math.ceil(x)

Math.round(x)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Function rounds a number to the nearest integer. (0.6 → 1) (0.2→0)

Math.abs(x)

Math.sqrt(x)

Math.ceil(x)

Math.round(x)

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Function rounds a number up to the next integer.(0.2 → 1)

Math.abs(x)

Math.sqrt(x)

Math.ceil(x)

Math.round(x)

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Function rounds a number down to the nearest integer. (0.6 → 0)

Math.abs(x)

Math.floor(x)

Math.ceil(x)

Math.round(x)