A set of JavaScript multiple-choice questions has P3 answers

JavaScript has become something almost obvious, when everyone uses it. When you use Facebook, you use JavaScript. When you write a tweet you use JavaScript ... If you are learning about JavaScript, the quiz below will give you lots of useful information. Let's start.
  1. Question 1. What is the prompt function (.) in JavaScript used for?
    1. Displays information for entering information
    2. Display a message Yes, No
    3. There is no right option
    4. Both forms above
  2. Question 2. In JavaScript what does parseInt () function do?
    1. Convert a string into numbers
    2. Convert a string to a real number
    3. Convert an integer into a string
    4. Convert a string to an integer
  3. Question 3. Perform the test if the variable 'i' is not equal to 5, which statement is correct?
    1. if (i! = 5)
    2. if i <> 5
    3. if i =! 5 then
    4. if (i <> 5)
  4. Question 4. Which of the following IF statements is correct?
    1. if (i == 5)
    2. if i == 5 then
    3. if i = 5 then
    4. if i = 5
  5. Question 5. Which JavaScript statement is correct to make changes in the HTML element below?

    Website TipsMake.com.

    1. document.getElementById ("demo"). innerHTML = "Welcome to TipsMake.com!";
    2. # demo.innerHTML = "Welcome to TipsMake.com!";
    3. document.getElement ("p"). innerHTML = "Welcome to TipsMake.com!";
    4. document.getElementByName ("p"). innerHTML = "Welcome to TipsMake.com!";
  6. Question 6.


    1. When running, open a new window to call TipsMake.com
    2. Can't run because it's wrong
    3. When finished, another site appears
    4. There is only one TipsMake.com page
  7. Question 7. Are there any ways to write JavaScript code to run in a web page?
    1. Both forms of writing separate files or writing in HTML pages
    2. Write together with HTML
    3. Write on a separate file
    4. Not in any form
  8. Question 8. When does the OnMouseOver JavaScript event happen?
    1. When an object in form loses focus
    2. When moving the mouse over an object in the form
    3. When you click your mouse on the command button
    4. When an object in the form receives focus
  9. Question 9. In when JavaScript Onclick event occurs when?
    1. When an object in the form receives focus
    2. When an object in form loses focus
    3. When clicking on an object in the form
    4. When clicking the command button
  10. Question 10. Is JavaScript a scripting language that can hide the source code?
    1. Unable to hide because of client-side scripts
    2. Hide because the program works independently of the browser
    3. These two statements are wrong
5 ★ | 1 Vote