Tag: web technology

Questions Related to web technology

Characteristics of the Web Services programming model.

  1. a. Use Web protocols

  2. b. Are stateless

  3. c. Are loosely coupled

  4. Use XML as the universal data format

  5. e. a and c only

  6. f. all the above


Correct Option: F

Where is the correct place to insert a JavaScript in HTML Page?

  1. The section

  2. Both the section and the section are correct

  3. The section

  4. The section


Correct Option: B

How do you create a function?

  1. function:myFunction()

  2. function myFunction()

  3. function=myFunction()

  4. function=myFunction(){ }


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

  2. /This comment has more than one line//

  3. //This is a comment


Correct Option: A,D

How do you round the number 10.75, to the nearest integer?

  1. Math.rand(10.75)

  2. Math.round(10.75)

  3. rnd(10.75)

  4. Math.rnd(10.75)


Correct Option: B
  1. statusbar = "put your message here"

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

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

  4. status("put your message here")


Correct Option: C

How can you find a client's browser name?

  1. client.navName

  2. navigator.browser

  3. browser.name

  4. navigator.appName


Correct Option: D

var d=new Date(); theDay=d.getDay(); switch (theDay) { case 2: document.write("Today is Saturday"); break; case 4: document.write("Finally Friday"); break; case 5: document.write("Super Saturday"); break; case 6: document.write("Sleepy Sunday"); default: document.write("I'm looking forward to this weekend!"); } If today is Saturday, what will be out of the above snippet

  1. Super Saturday

  2. Finally Friday

  3. Sleepy Sunday I'm looking forward to this weekend!

  4. Sleepy Sunday

  5. Today is Saturday


Correct Option: C

What is the correct way to write a JavaScript array?

  1. var txt = new Array="tim","kim","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(1:"tim",2:"kim",3:"jim")


Correct Option: B
  1. setTimeout('run()','50000');

  2. setTimer('run()','5');

  3. setTimeout('run()','500');

  4. setTimeout('run()','5000');


Correct Option: D