0

web technology Online Quiz - 126

Description: web technology Online Quiz - 126
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

How do you write "Hello World" in an alert box?

  1. alert("Hello World")

  2. alertBox="Hello World"

  3. alertBox("Hello World")

  4. msgBox("Hello World")


Correct Option: A
  1. function myFunction()

  2. function=myFunction()

  3. function:myFunction()

  4. function myFunction


Correct Option: A
  1. call myFunction()

  2. call function myFunction

  3. myFunction()

  4. call function myFunction()


Correct Option: C
  1. while (i<=10)

  2. while (i<=10;i++)

  3. while i=1 to 10

  4. while (i=0;i<=10;i++)


Correct Option: A
  1. for (i = 0; i <= 5)

  2. for i = 1 to 5

  3. for (i <= 5; i++)

  4. for (i = 0; i <= 5; i++)


Correct Option: D

How can you add a comment in a JavaScript?

  1. //This is a comment

  2. 'This is a comment

  3. /*This is a comment


Correct Option: A
  1. //This comment has more than one line//

  2. /This comment has more than one line/

  3. 'This comment has more than one line


Correct Option: C

What is the correct way to write a JavaScript array?

  1. var txt = new Array(1:"tim",2:"kim",3:"jim")

  2. var txt = new Array("tim","kim","jim")

  3. var txt = new Array:1=("tim")2=("kim")3=("jim")

  4. var txt = new Array="tim","kim","jim"


Correct Option: B
  1. round(7.25)

  2. Math.round(7.25)

  3. rnd(7.25)

  4. Math.rnd(7.25)


Correct Option: B
  1. Math.max(x,y)

  2. top(x,y)

  3. Math.ceil(x,y)

  4. ceil(x,y)


Correct Option: A

What is the correct JavaScript syntax for opening a new window called "w2" ?

  1. w2=window.open("http://www.w3schools.com");

  2. w2=window.new("http://www.w3schools.com");

  3. w2=window("http://www.w3schools.com");

  4. w2=openwindow("http://www.w3schools.com");


Correct Option: A

How do you put a message in the browser's status bar?

  1. window.status = "put your message here"

  2. status("put your message here")

  3. statusbar = "put your message here"

  4. window.status("put your message here")


Correct Option: A
  1. browser.name

  2. navigator.appName

  3. client.navName

  4. All the above


Correct Option: B

How many bit support does ASP.NET 2.0 provide?

  1. 16-bit support

  2. 32-bit support

  3. 64-bit support

  4. 128-bit support


Correct Option: C
- Hide questions