
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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.

Q 1 - Which of the following is a disadvantage of using JavaScript?
A - Client-side JavaScript does not allow the reading or writing of files.
C - JavaScript doesn't have any multithreading or multiprocess capabilities.
Answer : D
Explanation
All of the above options are correct.
Q 2 - How can you get the total number of arguments passed to a function?
A - Using args.length property
Answer : B
Explanation
Using arguments.length property, we can get the total number of arguments passed to a function.
Q 3 - Which of the following type of variable takes precedence over other if names are same?
Answer : B
Explanation
A local variable takes precedence over a global variable with the same name.
Q 4 - Which built-in method sorts the elements of an array?
Answer : C
Explanation
sort() method sorts the elements of an array.
Q 5 - Which of the following function of String object returns the character at the specified index?
Answer : A
Explanation
charAt() − Returns the character at the specified index.
Q 6 - Which of the following function of String object returns the index within the calling String object of the first occurrence of the specified value?
Answer : D
Explanation
indexOf() − Returns the index within the calling String object of the first occurrence of the specified value, or -1 if not found.
Q 7 - Which of the following function of String object returns the calling string value converted to lower case while respecting the current locale?
Answer : A
Explanation
toLocaleLowerCase() − Returns the calling string value converted to lower case while respecting the current locale.
Q 8 - Which of the following function of String object causes a string to be displayed in the specified color as if it were in a <font color='color'> tag?
Answer : B
Explanation
fontcolor() − Causes a string to be displayed in the specified color as if it were in a <font color = 'color'> tag.
Q 9 - Which of the following function of Array object returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found?
Answer : A
Explanation
indexOf() − Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
Q 10 - Which of the following function of Array object represents the source code of an object?
Answer : A
Explanation
toSource() − Represents the source code of an object.