JavaScript Mcqs Test Online

Start your preparation for JavaScript Mcqs Test Online. This online test contains important MCQs from past papers. Attempting this test will help you prepare for Annual Exams and Entry Tests. Read the questions carefully and select the correct option below to see your result.

JavaScript Mcqs Test

Total Questions: 25
Time Allowed: 10 Minutes
Total Marks: 25
How to Attempt Test: Please choose the right Option in MCQ-type question.
Test Helpful For: Computer Test
Competitive exam
Forces test
Fpsc
Entry test
Recruitment test

JavaScript Mcqs Test Practice Online

 0%

Page 1 of 1

1. How does JavaScript store dates in a date object?

2. What is the code to be used to trim whitespaces ?

3. When a user views a page containing a JavaScript program, which machine actually executes the script?

4. What is the output of this expression? x = 2 + "2"; document.write(x)?

5. What is the correct JavaScript syntax to write "Hello World"?

6. Consider the following code snippet

data.sort(function(a,b),b-a);

What does the above code do?

7. Which of the following is not a valid JavaScript variable name?

8. JavaScript variables are case-sensitive?

9. The __ operator determines whether an object is an instance of another object?

10. Which of the following way can be used to indicate the LANGUAGE attribute?

11. __________ JavaScript is also called server-side JavaScript?

12. What is the alternate name for Java script?

13. Which of the following are capabilities of functions in JavaScript?

14. _____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks, form input, and page navigation?

15. Which of the following can't be done with client-side JavaScript?

16. Consider the following code snippet

let succ = function(x) x+1, yes = function() true, no = function() false;

What convenience does the above code snippet provide?

17. ______ tag is an extension to HTML that can enclose any number of JavaScript statements?