Javascript Online Quiz


Advertisements


Following quiz provides Multiple Choice Questions (MCQs) related to Javascript Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 3 - Which built-in method removes the last element from an array and returns that element?

A - last()

B - get()

C - pop()

D - None of the above.

Answer : C

Explanation

pop() method removes the last element from an array and returns that element.

Q 4 - Which built-in method returns the calling string value converted to lower case?

A - toLowerCase()

B - toLower()

C - changeCase(case)

D - None of the above.

Answer : A

Explanation

toLowerCase() method returns the calling string value converted to lower case.

Q 5 - Which of the following function of Boolean object returns a string containing the source of the Boolean object?

A - toSource()

B - valueOf()

C - toString()

D - None of the above.

Answer : A

Explanation

toSource() − Returns a string containing the source of the Boolean object; you can use this string to create an equivalent object.

Q 6 - Which of the following function of String object is used to find a match between a regular expression and a string, and to replace the matched substring with a new substring?

A - concat()

B - match()

C - replace()

D - search()

Answer : C

Explanation

replace() − Used to find a match between a regular expression and a string, and to replace the matched substring with a new substring.

Q 7 - Which of the following function of String object creates a string to be displayed as bold as if it were in a <b> tag?

A - anchor()

B - big()

C - blink()

D - bold()

Answer : D

Explanation

bold() − Creates a string to be displayed as bold as if it were in a <b> tag.

Q 8 - Which of the following function of String object causes a string to be italic, as if it were in an <i> tag?

A - fixed()

B - fontcolor()

C - fontsize()

D - italics()

Answer : D

Explanation

italics() − Causes a string to be italic, as if it were in an <i> tag.

Q 9 - Which of the following function of Array object removes the last element from an array and returns that element?

A - pop()

B - push()

C - join()

D - map()

Answer : A

Explanation

pop() − Removes the last element from an array and returns that element.

Q 10 - Which of the following function of Array object returns true if at least one element in this array satisfies the provided testing function?

A - reverse()

B - shift()

C - slice()

D - some()

Answer : D

Explanation

some() − Returns true if at least one element in this array satisfies the provided testing function.


javascript_questions_answers.htm

Advertisements