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

Quiz

Untitled

Zoran Zorovicevic 6 questions

Take the quiz

Questions in this quiz (6)

  1. 1Inside which HTML element do we put the JavaScript?
    1. A<script>
    2. B<javascript>
  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. B#demo.innerHTML = "Hello World!";
    3. Cdocument.getElement("p").innerHTML = "Hello World!";
    4. Ddocument.getElementByName("p").innerHTML = "Hello World!";
  3. 3Where is the correct place to insert a JavaScript?
    1. AThe <body> section
    2. BBoth the <head> section and the <body> section are correct
    3. CThe <head> section
  4. 4What is the correct syntax for referring to an external script called "xxx.js"?
    1. A<script name="xxx.js">
    2. B<script href="xxx.js">
    3. C<script src="xxx.js">
  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. 6What is the correct way to write a JavaScript array?
    1. Avar colors = ["red", "green", "blue"]
    2. Bvar colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
    3. Cvar colors = (1:"red", 2:"green", 3:"blue")
    4. Dvar colors = "red", "green", "blue"

Information

Description
Quiz on Untitled, created by Zoran Zorovicevic on 12/01/2021.
Language
English
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?