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 is an equivalent code to invoke a function m of class o that expects two arguments x and y?

o(x,y);
o.m(x) && o.m(y);
m(x,y);
o.m(x,y);

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. what will be the output of below code?

var val = "JavaScript String"
splittedVal = val.split('a',2)
console.log(splittedVal);

[ 'J', 'v' ]
[ 'J' ,'v','Script']
[ 'J', 'v', 'Script String' ]
[ 'JavaScript String' ]

4. JavaScript is untyped language.

Yes
No
Can be yes or no
Can not say

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. Which statement required if you want to return a value from a function?

continue
break
loop
return

8. Which of the following statement is true about BitWise OR?

It performs a Boolean AND operation on each bit of its integer arguments
It is a unary operator and operates by reversing all the bits in the operand.
Both A and B
It performs a Boolean OR operation on each bit of its integer arguments.

9. The ________ operator is used to create an instance of an object.

this
self
find
new

10. If X is the superclass and Y is the subclass, then subclass inheriting the superclass can be represented as _________

Y=inherit(X);
Y=X.inherit();
Y.prototype=inherit(X);
Y.prototype=inherit(X.prototype);

Results