• JavaScript Video Tutorials

Javascript Online Quiz



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

Answer : C

Explanation

Both of the above options are correct.

Answer : D

Explanation

window.location='http://www.newlocation.com'; is the correct option.

Q 3 - Which built-in method adds one or more elements to the end of an array and returns the new length of the array?

A - last()

B - put()

C - push()

D - None of the above.

Answer : C

Explanation

push() method adds one or more elements to the end of an array and returns the new length of the array.

Q 4 - Which built-in method reverses the order of the elements of an array?

A - changeOrder(order)

B - reverse()

C - sort(order)

D - None of the above.

Answer : B

Explanation

reverse() method reverses the order of the elements of an array -- the first becomes the last, and the last becomes the first.

Q 5 - Which of the following function of String object combines the text of two strings and returns a new string?

A - add()

B - merge()

C - concat()

D - append()

Answer : C

Explanation

concat() − Combines the text of two strings and returns a new string.

Q 6 - Which of the following function of String object executes the search for a match between a regular expression and a specified string?

A - concat()

B - match()

C - replace()

D - search()

Answer : D

Explanation

search() − Executes the search for a match between a regular expression and a specified string.

Q 7 - Which of the following function of String object returns the calling string value converted to upper case while respecting the current locale?

A - toLocaleUpperCase()

B - toUpperCase()

C - toString()

D - substring()

Answer : A

Explanation

toLocaleUpperCase() − Returns the calling string value converted to upper case while respecting the current locale.

Q 8 - Which of the following function of Array object returns a new array comprised of this array joined with other array(s) and/or value(s)?

A - concat()

B - pop()

C - push()

D - some()

Answer : A

Explanation

concat() − Returns a new array comprised of this array joined with other array(s) and/or value(s).

Q 9 - Which of the following function of Array object creates a new array with all of the elements of this array for which the provided filtering function returns true?

A - concat()

B - every()

C - filter()

D - some()

Answer : C

Explanation

filter() − Creates a new array with all of the elements of this array for which the provided filtering function returns true.

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

A - reverse()

B - shift()

C - slice()

D - some()

Answer : B

Explanation

shift() − Removes the first element from an array and returns that element.

javascript_questions_answers.htm
Advertisements