GoConqr has a new look! Let us know what you think.

Quiz

Internet Technology Lab Viva 1

Rejin Rajan 50 questions 4.5 (2 ratings)

Take the quiz

Questions in this quiz (50)

  1. 1Inside which HTML element do we put the JavaScript?
    1. A<javascript>
    2. B<scripting>
    3. C<script>
    4. D<js>
  2. 2What is the correct JavaScript syntax to change the content of the HTML element below?

    <p id="demo">This is a demonstration.</p>
    1. A#demo.innerHTML = "Hello World!";
    2. Bdocument.getElement("p").innerHTML = "Hello World!";
    3. Cdocument.getElementByName("p").innerHTML = "Hello World!";
    4. Ddocument.getElementById("demo").innerHTML = "Hello World!";
  3. 3How do you write "Hello World" in an alert box?
    1. AmsgBox("Hello World");
    2. BalertBox("Hello World");
    3. Calert("Hello World");
    4. Dmsg("Hello World");
  4. 4How do you call a function named "myFunction"?
    1. AmyFunction()
    2. Bcall myFunction()
    3. Ccall function myFunction()
  5. 5How to write an IF statement for executing some code if "i" is NOT equal to 5?
    1. Aif (i != 5)
    2. Bif (i <> 5)
    3. Cif i =! 5 then
    4. Dif i <> 5
  6. 6How does a FOR loop start?

    1. Afor (i <= 5; i++)
    2. Bfor (i = 0; i <= 5)
    3. Cfor i = 1 to 5
    4. Dfor (i = 0; i <= 5; i++)
  7. 7How can you add a comment in a JavaScript?
    1. A//This is a comment
    2. B'This is a comment
    3. C<!--This is a comment-->
  8. 8How do you round the number 7.25, to the nearest integer?
    1. Around(7.25)
    2. BMath.rnd(7.25)
    3. Crnd(7.25)
    4. DMath.round(7.25)
  9. 9JavaScript is the same as Java.
    1. ATrue
    2. BFalse
  10. 10Which event occurs when the user clicks on an HTML element?
    1. Aonclick
    2. Bonchange
    3. Conmouseover
    4. Donmouseclick

Information

Description
Internet Technology Lab Viva 1
Language
English
Views
126
Rating
4.5 out of 5 · 2 ratings
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?