¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

Internet Technology Lab Viva 1

Rejin Rajan 50 preguntas 4,5 (2 valoraciones)

Hacer el test

Preguntas del test (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. AVerdadero
    2. BFalso
  10. 10Which event occurs when the user clicks on an HTML element?
    1. Aonclick
    2. Bonchange
    3. Conmouseover
    4. Donmouseclick

Información

Descripción
Internet Technology Lab Viva 1
Idioma
English
Visitas
126
Valoración
4,5 de 5 · 2 valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?