Javascript Programming Quiz


Play this Javascript quiz that will help you to excel in Javascript certification exams, placements etc. This Javascript programming quiz consist of 10 questions that you need to solve in 10 minutes. We’ve specially designed this quiz so that you can quickly acquaint to the pattern of questions you can be asked in placement drives, certification exams etc. This Javascript programming test enables you to assess your knowledge of Javascript programming.

Take the Free Practice Test



Javascript MCQs

Practice Javascript MCQ Questions, which will help you to clear your JS related concepts and also helps you to prepare for placements, technical rounds, interviews, competitive exams etc.

Javascript Quiz

Try Free Javascript Quiz, to start a quiz you need to login first, after login you will get start quiz button and then by clicking on that you can start quiz. You will get 10 Minutes to answer all questions.

Javascript Quiz

1. JavaScript also defines _______ trivial data types.

1
2
3
4

2. JavaScript strings are for ________ text.

storing
manipulating
both a and b
none of the above

3. What will the following JavaScript code snippet do? If not, what will be the error?

function letsfindcourse(lfc) 
{
for (; lfc.next; lfc = lfc.next) ;
return lfc;
}

No, this will result in a runtime error with the message Cannot use Linked List
No, this will not iterate
Yes, this will work
No, this will throw an exception as only numerics can be used in a for loop

4. What will be the output of the following JavaScript code?

 System.out.println( Pattern.matches("[^lfc]", "letsfind") );

true
false
undefined
l

5. What will be the output of the following JavaScript code?

const pt1 = {}; 
const ob1 = Object.create(pt1);
console.log( Object.getPrototypeOf(ob1) === pt1 );

true
false
errot
0

6. Consider the below code:
Identify the correct code in order to fetch the value entered in username text field?

< body>
< form name="register">
Enter username < input value="John" id="name" name="username">
< /form>
< /body>

document.register.name.value
document.getElementById ("name").value
document.getElementByName ("name").value
None of the above

7. If the operator value is null, then the unary operator returns the typeof _________.

undefined
object
boolean
string

8. arrays always use numbered indexes.

Yes
No
Can be yes or no
Can not say

9. Each tab in the single web browser window is called as ____________

Browsing context
Browser Information
Both Browser Information & Browsing context
Browser Log

10. Which of the following statements is/are TRUE about DOM?

W3C standard
Each page can have multiple Document objects
form elements can be accessed using the form object
Both A and C

Results