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

Quiz

Internet Technology Lab Viva 2

Rejin Rajan 50 questions

Take the quiz

Questions in this quiz (50)

  1. 1Where is the correct place to insert a JavaScript?
    1. AThe <head> section
    2. BThe <body> section
    3. CBoth the <head> section and the <body> section are correct
  2. 2What is the correct syntax for referring to an external script called "xxx.js"?
    1. A<script src="xxx.js">
    2. B<script href="xxx.js">
    3. C<script name="xxx.js">
  3. 3How do you create a function in JavaScript?
    1. Afunction myFunction()
    2. Bfunction:myFunction()
    3. Cfunction = myFunction()
  4. 4How to write an IF statement in JavaScript?
    1. Aif i = 5
    2. Bif (i == 5)
    3. Cif i = 5 then
    4. Dif i == 5 then
  5. 5How does a WHILE loop start?
    1. Awhile (i <= 10)
    2. Bwhile (i <= 10; i++)
    3. Cwhile i = 1 to 10
  6. 6How to insert a comment that has more than one line in CSS?
    1. A/*This comment has
      more than one line*/
    2. B//This comment has
      more than one line//
    3. C<!--This comment has
      more than one line-->
  7. 7What 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"]
  8. 8How do you find the number with the highest value of x and y?
    1. Atop(x, y)
    2. BMath.max(x, y)
    3. Cceil(x, y)
    4. DMath.ceil(x, y)
  9. 9How do you declare a JavaScript variable?
    1. Avar carName;
    2. Bv carName;
    3. Cvariable carName;
  10. 10Is JavaScript case-sensitive?
    1. ATrue
    2. BFalse

Information

Description
Quiz on Internet Technology Lab Viva 2, created by Rejin Rajan on 18/03/2018.
Language
English
Views
2
Rating
No ratings yet
Rate this quiz
Rate this quiz

More on HTML, CSS and JavaScript

Feedback

What is it about?

What do you think of the new look?

How do you like it?