JavaScript Quiz with answers – Part 5

Practical questions to test your knowledge of JavaScript programming – Part 5

Which of the following functions is a valid function type that javascript supports?
A named function
An anonymous function
Both 1 and 2 are true.
None of these answers is true.

Correct!

Wrong!

Which method returns the character at the specified index?
characterAt()
getCharAt()
charAt()
None of these answers is true.

Correct!

Wrong!

Which of the following is not a mouse event?
onmousescroller
onclick
onmouseover
onmousemove

Correct!

Wrong!

The opposite of onmouseover is _____?
onmouseoff
onmouseout
onmouseunder
onnotmouseover

Correct!

Wrong!

How to know the number of elements of a form?
document.myform.elements.count
document.myform.length
document.myform.count
document.myform.elements.length

Correct!

Wrong!

Which method returns characters from a string starting at the specified location?
substr()
getSubstring()
slice()
None of these answers is true.

Correct!

Wrong!

Will the <noscript> tag work ______?
only with external scripts
with internal and external scripts
whether or not there is Javascript
only in browsers that don't know what Javascript is.

Correct!

Wrong!

Browsers that do not understand Javascript _______
ignore all <script> and <noscript> tags
display the content of <script> tags
display the content of <noscript> tags
display the content of the <script> and <noscript> tags

Correct!

Wrong!

Which of these contains an executable statement?
// var x = 0; // var y = 0;
/* var x = 0; // var y = 0; */
/* var x = 0; */ var y = 0;
// var x = 0; /* var y = 0; */

Correct!

Wrong!

Which of these statements is true?
arguments are parameters
arguments and parameters must have the same name
arguments are placeholders
arguments disagree with parameters

Correct!

Wrong!

Share the quiz to show your results !

Subscribe to see your results

JavaScript Quiz – Part 5

I got %%score%% of %%total%% right

%%description%%

%%description%%

Loading...

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *