Quiz
1. How do you write "Hello World" in an alert box?
a) msg("Hello World");
b) alert("Hello World");
c) msgBox("Hello World");
d) alertBox("Hello World");
2. Which event occurs when the user clicks on an HTML element?
a) onclick
b) onmouseclick
c) onmouseover
d) onchange
3. How do you create a function in JavaScript?
a) function = myFunction()
b) function myFunction()
c) function:myFunction()
4. The external JavaScript file must contain the < script > tag.
a) False
b) True
5. How do you call a function named "myFunction"?
a) call myFunction()
b) myFunction()
c) call function myFunction()
6) Select the language that supports OOP?
HTML
JAVA
PHP
7) Which of the following is an advantage of using JavaScript?
Less server interaction
Immediate feedback to the visitors
Increased interactivity
None of the above.
Finish Quiz