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.
- Question 1. What is the prompt function (.) in JavaScript used for?
- Displays information for entering information
- Display a message Yes, No
- There is no right option
- Both forms above
-
- Question 2. In JavaScript what does parseInt () function do?
- Convert a string into numbers
- Convert a string to a real number
- Convert an integer into a string
- Convert a string to an integer
-
- Question 3. Perform the test if the variable 'i' is not equal to 5, which statement is correct?
- if (i! = 5)
- if i <> 5
- if i =! 5 then
- if (i <> 5)
-
- Question 4. Which of the following IF statements is correct?
- if (i == 5)
- if i == 5 then
- if i = 5 then
- if i = 5
-
- Question 5. Which JavaScript statement is correct to make changes in the HTML element below?
Website TipsMake.com.
- document.getElementById ("demo"). innerHTML = "Welcome to TipsMake.com!";
- # demo.innerHTML = "Welcome to TipsMake.com!";
- document.getElement ("p"). innerHTML = "Welcome to TipsMake.com!";
- document.getElementByName ("p"). innerHTML = "Welcome to TipsMake.com!";
-
- Question 6.
- When running, open a new window to call TipsMake.com
- Can't run because it's wrong
- When finished, another site appears
- There is only one TipsMake.com page
-
- Question 7. Are there any ways to write JavaScript code to run in a web page?
- Both forms of writing separate files or writing in HTML pages
- Write together with HTML
- Write on a separate file
- Not in any form
-
- Question 8. When does the OnMouseOver JavaScript event happen?
- When an object in form loses focus
- When moving the mouse over an object in the form
- When you click your mouse on the command button
- When an object in the form receives focus
-
- Question 9. In when JavaScript Onclick event occurs when?
- When an object in the form receives focus
- When an object in form loses focus
- When clicking on an object in the form
- When clicking the command button
-
- Question 10. Is JavaScript a scripting language that can hide the source code?
- Unable to hide because of client-side scripts
- Hide because the program works independently of the browser
- These two statements are wrong
-
5 ★ | 1 Vote
You should read it
- A set of JavaScript multiple-choice questions with P2 answers
- A set of JavaScript multiple-choice questions has P4 answers
- Multiple choice questions about Javascript language
- A set of JavaScript multiple-choice questions with P5 answers
- Multiple choice questions to test your IQ P2
- Set of multiple choice questions about programming with P12
- Set of multiple-choice questions on award-winning programming P5
- Test of CSS knowledge - Part 5
- Test of CSS knowledge - Part 8
- Test of CSS knowledge - Part 6
- Set of multiple choice questions about programming with P7 prize
- JAVA test on P6