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 of the following is a syntactically correct for loop?

for (i<=10;i++)
for i=1 to 10
for (i=0;i<=10;i++)
for (i=0;i<=10)

2. Which of the following are javaScript reserved words?

enum
long
finally
All of the above

3. Which statement required if you want to return a value from a function?

continue
break
loop
return

4. Variables are declared with the _______ keyword.

this
int
var
new

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

function myfun() 
{
document.getElementById ("demo").innerHTML = Boolean(21 > 15);
}

true
false
error
0

6. What is the output for code A and B?

Code A: 
var x = 10;
y = --x + 1;
alert(y);

Code B:
var x = 10;
y = x-- + 1;
alert(y);

10,10
10,11
11,10
11,11

7. The regular expression to match any one character not between the brackets is __________

[....]
[^]
[^...]
[\D]

8. Which of the following true about JavaScript variable?

JavaScript variable names are case-sensitive
JavaScript variable names should not start with a numeral
You should not use any of the JavaScript reserved keywords as a variable name.
All of the above

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

1
2
3
4

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