Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

JavaScript C13 Question 1 (1 point) Which property of the Number object returns

ID: 3919900 • Letter: J

Question

JavaScript C13

Question 1 (1 point)

Which property of the Number object returns the largest positive value that JavaScript can represent?

Question 1 options:

MIN_VALUE

MAX_VALUE

POSITIVE_INFINITY

NEGATIVE_INFINITY

Save

Question 2 (1 point)

If a numerical operation returns a number greater than the largest possible JavaScript value, it returns

Question 2 options:

NaN

-NaN

Infinity

-Infinity

Save

Question 3 (1 point)

In JavaScript, NaN represents

Question 3 options:

a value that isn’t a number

the largest positive value that can be represented

the smallest positive value that can be represented

infinity

Save

Question 4 (1 point)

What method of the Number object returns the string for a number with base 10 as the default?

Question 4 options:

the toString() method

the round() method

the toPrecision() method

the toFixed() method

Save

Question 5 (1 point)

What method of the Number object returns a string with the number rounded to the specified number of decimal places?

Question 5 options:

the toString() method

the round() method

the toPrecision() method

the toFixed() method

Save

Question 6 (1 point)

What method of the Math object can be used to return the largest value from the values that are passed to it?

Question 6 options:

the Math.max() method

the Math.ceil() method

the Math.pow() method

the Math.abs() method

Save

Question 7 (1 point)

What method of the Math object can be used to generate and return a decimal number that’s greater than or equal to 0 but less than 1?

Question 7 options:

the Math.round() method

the Math.random() method

the Math.floor() method

the Math.sqrt() method

Save

Question 8 (1 point)

The length property of the String object returns

Question 8 options:

the number of words in the string

the index of the first character in the string

the index of the last character in the string

the number of characters in the string

Save

Question 9 (1 point)

What method of the String object searches the string for an occurence of the specified search string?

Question 9 options:

the charAt() method

the search() method

the indexOf() method

the substring() method

Save

Question 10 (1 point)

Which of the following statements is NOT a valid way to create a date object named birthday?

Question 10 options:

var birthday = "12/2/1978";

var birthday = new Date();

var birthday = new Date("12/2/1978");

var birthday = new Date(1978, 11, 2);

MIN_VALUE

MAX_VALUE

POSITIVE_INFINITY

NEGATIVE_INFINITY

Explanation / Answer

Question 1
Answer:
MAX_VALUE

Question 2
Answer:
Infinity
Question 3
Answer:
a value that isn’t a number

Question 4
Answer:
the toFixed() method

Question 5
Answer:
the toPrecision() method

Question 6
Answer:
the Math.max() method

Question 7
Answer:
the Math.random() method

Question 8
Answer:
the number of characters in the string

Question 9
Answer:
the indexOf() method
Question 10
Answer:

var birthday = "12/2/1978";

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote