A set of JavaScript multiple-choice questions with P5 answers

Quiz includes JavaScript questions and is not limited to time. This is a test to test your ability and knowledge about JavaScript. Invite your reference.

  1. Question 1. Is a while loop a form of loop?
    1. The following conditions are not defined and checked
    2. Do not define and check the previous condition
    3. Both forms above
    4. Do not respect any of the above
  2. Question 2. How do I call a 'myFunction' function in JavaScript?
    1. call myFunction ()
    2. call function myFunction ()
    3. myFunction ()
  3. Question 3. Where is JavaScript handled?
    1. Server
    2. Client
    3. Both server and client
    4. Not in any form
  4. Question 4. When does Onblur JavaScript event execute when?
    1. When an object in the form receives focus
    2. When an object in form loses focus
    3. When moving the mouse over the form
    4. When moving the mouse on the command button
  5. Question 5. Is JavaScript started with?
    1. .
    2. .
    3. All of the above forms
  6. Question 6. What is the break statement associated with the loop for?
    1. Stop the loop if you see this command
    2. There is no meaning in the loop
    3. Jump to another script
    4. Unable to combine
  7. Question 7. How to round 7.25 to the nearest integer in JavaScript?
    1. round (7.25)
    2. rnd (7.25)
    3. Math.round (7.25)
    4. Math.rnd (7.25)
  8. Question 8. Which language is JavaScript code translation language?
    1. Interpretation
    2. Translate
    3. Both translation and interpretation forms
    4. There is no form above
  9. Question 9. Which event happens when a user clicks on an HTML element on the page?
    1. onclick
    2. onmouseclick
    3. onmouseover
    4. onchange
  10. Question 10. Which statement declares a variable in JavaScript?
    1. variable carName;
    2. var carName;
    3. v carName;
  11. Question 11. How to create a function in JavaScript?
    1. function: myFunction ()
    2. function myFunction ()
    3. function = myFunction ()
Update 24 May 2019
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile