1) What would be the output of this script?

let mul= 2;
for(let i = 3; i < 5; ++i )
  mul = mul * i
}
 
console.log(mul);

a) 22
b) 33
c) 44
d) 24
a

2) Which of the following HTML elements can we put Javascript code in?

a) <script>
b) <javascript>
c) <js>
d) <scripting>
a

3)What is the correct Javascript syntax to write "Hello World"?

a) ("Hello World")
b) Hello World"
c) response.write("Hello World")
d) document.write("Hello World")
b

4) What is the correct place to insert JavaScript?

a) <body>section
b) <head>section
c) Both <body> part and <head> part are acceptable
d) ' this is a comment
a

5) How to write "Hello World" in the warning box?

a) alertBox="Hello World"
b) msgBox("Hello World")
c) alert("Hello World")
d) alertBox("Hello World")
b

6)How to create a function?

a) function:myFunction()
b) function myFunction()
c) text-transform:uppercase
b