O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

JavaScript 1

Alex Thompson 25 perguntas

Fazer o quiz

Perguntas do quiz (25)

  1. 1Inside which HTML element do we put the JavaScript?
    1. A<javascript>
    2. B<script>
    3. C<js>
    4. D<scripting>
  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. Adocument.getElementById("demo").innerHTML = "Hello World!";
    2. Bdocument.getElement("p").innerHTML = "Hello World!";
    3. Cdocument.getElementByName("p").innerHTML = "Hello World!";
    4. D#demo.innerHTML = "Hello World!";
  3. 3Where is the correct place to insert a JavaScript?
    1. AThe <body> section
    2. BThe <head> section
    3. CBoth the <head> section and the <body> section are correct
  4. 4What is the correct syntax for referring to an external script called "xxx.js"?
    1. A<script href="xxx.js">
    2. B<script name="xxx.js">
    3. C<script src="xxx.js">
  5. 5The external JavaScript file must contain the <script> tag.
    1. ATrue
    2. BFalse
  6. 6How do you write "Hello World" in an alert box?
    1. AalertBox("Hello World");
    2. Bmsg("Hello World");
    3. CmsgBox("Hello World");
    4. Dalert("Hello World");
  7. 7How do you create a function in JavaScript?
    1. Afunction myFunction()
    2. Bfunction:myFunction()
    3. Cfunction = myFunction()
  8. 8How do you call a function named "myFunction"?
    1. Acall function myFunction()
    2. Bcall myFunction()
    3. CmyFunction()
  9. 9How to write an IF statement in JavaScript?
    1. Aif i = 5 then
    2. Bif i = 5
    3. Cif i == 5 then
    4. Dif (i == 5)
  10. 10How 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
    4. Dif i =! 5 then

Informações

Descrição
Quiz sobre JavaScript 1, criado por Alex Thompson em 08-12-2016.
Idioma
English
Visualizações
1
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?