41. How do you find the client's browser name on javascript?
• 1. client.navName
• 2. navigator.appName
• 3. browser.name
42. How do you put a message in the browser's status bar?
• 1. window.status("put your message here")
• 2. window.status = "put your message here"
• 3. status("put your message here")
• 4. statusbar = "put your message here"
43. How do you find the largest number of 2 and 4 in jaascript?
• 1. ceil(2,4)
• 2. Math.ceil(2,4)
• 3. Math.max(2,4)
• 4. top(2,4)
44. How do you round the number 7.25, to the nearest whole number in javascript?
• 1. round(7.25)
• 2. Math.round(7.25)
• 3. Math.rnd(7.25)
• 4. rnd(7.25)
45. What is the correct way to write a JavaScript array?
• 1. var txt = new Array("tim","kim","jim")
• 2. var txt = new Array:1=("tim")2=("kim")3=("jim")
• 1. var txt = new Array="tim","kim","jim"
• 2. var txt = new Array(1:"tim",2:"kim",3:"jim")
46. How many different kind of loops are there in JavaScript?
• 1. Two. The "for" loop and the "while" loop
• 2. One. The "for" loop
• 1. Four. The "for" loop, the "while" loop, the "do...while" loop, and the "loop...until" loop
47. How do you call a function named "myFunction" in javascript?
• 1. myFunction()
• 2. call myFunction()
• 1. call function myFunction
48. How do you write "Hello World" in an alert box?
• 1. alert("Hello World")
• 2. alertBox="Hello World"
• 1. msgBox("Hello World")
• 2. alertBox("Hello World")
49.
50. What is the correct JavaScript syntax to write "Hello World"?
• 1. ("Hello World")
• 2. response.write("Hello World")
• 1. document.write("Hello World")
• 2. "Hello World"
Answer:
Q Ans Q Ans
46 1
47 1
48 1
49 2
50 3
36 2
37 3
38 1
39 2
40 3
41 2
42 2
43 3
44 2
45 1
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment