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. Which operator is known as the strict equality operator, which checks whether its two operators are identical or not?

=
==
===
&&

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

< body>
< form name="login">
Enter Your Name< input value="Akash" id="p_name" name="uname">
< /form>
< /body>

document.login.uname.value
document.getElementById ("p_name").value
document.getElementByName ("name").value
Both A and B

3. Some browsers do not allow spaces behind the  character.

Yes
No
Can be yes or no
Can not say

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

System.out.println( Pattern.matches("\d", "9") );

true
false
undefined
9

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

System.out.println( Pattern.matches("[lfc]+", "f") );

true
false
undefined
1

6. Storing a value in a variable is called ?

variable declaration
variable destroyed
variable store
variable initialization

7. Which operator checks if the value of the left operand is greater than the value of the right operand?

Equal
Greater than
Less than
Greater than or Equal to

8. A programming language can be called object-oriented if it provides ________ basic capabilities to developers

1
2
3
4

9. what will be the output of below code?

const event = new Date(Date.UTC(2012, 11, 20, 3, 0, 0));
console.log (event.toLocaleString('en-IN', { timeZone: 'UTC' }));

20/12/2012, 3:00:00
12/20/2012, 3:00:00
20/12/2012, 3:00:00 am
2012/12/20, 3:00:00 am

10. Logical AND : If both the operands are non-zero, then the condition becomes true.

Yes
No
Can be yes or no
Can not say

Results