HTML and Java Script
HTML and Java Script
HTML and Java Script
NAME: _______________________
CENTER: _______________________
TIMINGS: _______________________
MARKS: _______________________
karROX technologies ltd. H.O, 7th Floor, Bhaveshwar Arcade, LBS Marg, Ghatkopar-W,
Mumbai 400086
XPERT MODULE 4 HTML/JavaScript QUESTION PAPER
a. <heading>
b.<head>
c.<h6>
d. <h1>
3. What is the correct HTML tag for inserting a line break?
a.<br>
b.<break>
c.<lb>
a. <background>yellow</background>
b. body color="yellow">
c. <body bgcolor="yellow">
a. <bb>
b. <b>
c. <bld>
d. <bold>
a. <i>
b. <italics>
c. <ii>
a. <a href="http://www.w3schools.com">W3Schools</a>
b. <a>http://www.w3schools.com</a>
c. <a name="http://www.w3schools.com">W3Schools.com</a>
d. <a url="http://www.w3schools.com">W3Schools.com</a>
a.<mail href="xxx@yyy">
b. <a href="xxx@yyy">
c. <a href="mailto:xxx@yyy">
d. <mail>xxx@yyy</mail>
karROX technologies ltd. H.O, 7th Floor, Bhaveshwar Arcade, LBS Marg, Ghatkopar-W,
Mumbai 400086
XPERT MODULE 4 HTML/JavaScript QUESTION PAPER
a. <table><head><tfoot>
b. <table><tr><tt>
c. <thead><body><tr>
d. <table><tr><td>
11. Choose the correct HTML to left-align the content inside a table cell
a. <td align="left">
b. <tdleft>
c. <td leftalign>
d. <td valign="left">
12. How can you make a list that lists the items with numbers?
a. <dl>
b. <ul>
c. <list>
d. <ol>
13. How can you make a list that lists the items with bullets?
a. <ul>
b. <ol>
c. <dl>
d. <list>
a. <input type="checkbox">
b. <check>
c. <input type="check">
d. <checkbox>
15. What is the correct HTML for making a text input field?
a. <textfield>
b. <input type="text">
c. <textinput type="text">
d. <input type="textfield">
karROX technologies ltd. H.O, 7th Floor, Bhaveshwar Arcade, LBS Marg, Ghatkopar-W,
Mumbai 400086
XPERT MODULE 4 HTML/JavaScript QUESTION PAPER
a. <input type="dropdown">
b. <input type="list">
c. <list>
d. <select>
a. <input type="textbox">
b. <input type="textarea">
c. <textarea>
a. <img src="image.gif">
b. <image src="image.gif">
c. <img>image.gif</img>
d. <img href="image.gif>
a. <A HREF="#top">Top</a>
<A NAME="top">
b. <A SRC=”#top”>TOP</a>
<A NAME=”top”>
karROX technologies ltd. H.O, 7th Floor, Bhaveshwar Arcade, LBS Marg, Ghatkopar-W,
Mumbai 400086
XPERT MODULE 4 HTML/JavaScript QUESTION PAPER
d. None of above
d. Non of above
c. width="100" means it will cover the whole screen ... however width="100%" means only 100px of
the computer screen
d. width="100" means only 100px of the computer screen however width="100%" means it will
cover the whole screen ...
d. None of above
karROX technologies ltd. H.O, 7th Floor, Bhaveshwar Arcade, LBS Marg, Ghatkopar-W,
Mumbai 400086
XPERT MODULE 4 HTML/JavaScript QUESTION PAPER
a. <javascript>
b. <js>
c. <script>
d. <scripting>
a. response.write("Hello World")
b. ("Hello World")
c. document.write("Hello World")
d. "Hello World"
30. What is the correct syntax for referring to an external script called "xxx.js"?
a. <script src="xxx.js">
b. <script href="xxx.js">
c. <script name="xxx.js">
a. True
b. False
a. alertBox("Hello World")
b. alert("Hello World")
c. msgBox("Hello World")
d. alertBox="Hello World"
a. function:myFunction()
b. function=myFunction()
c. function myFunction()
karROX technologies ltd. H.O, 7th Floor, Bhaveshwar Arcade, LBS Marg, Ghatkopar-W,
Mumbai 400086
XPERT MODULE 4 HTML/JavaScript QUESTION PAPER
35. How do you write a conditional statement for executing some statements only if "i" is equal to 5?
a. if (i==5)
b. if i==5 then
c. if i=5
d. if i=5 then
36. How do you write a conditional statement for executing some statements only if "i" is NOT equal
to 5?
a. if <>5
b. if (i <> 5)
c. f (i != 5)
d. if =! 5 then
a. The "for" loop, the "while" loop, the "do...while" loop, and the "loop...until" loop
b. . The "for" loop
c. The "for" loop and the "while" loop
a. 'This is a comment
b. <!--This is a comment-->
c. //This is a comment
40. What is the correct JavaScript syntax to insert a comment that has more than one line?
karROX technologies ltd. H.O, 7th Floor, Bhaveshwar Arcade, LBS Marg, Ghatkopar-W,
Mumbai 400086
XPERT MODULE 4 HTML/JavaScript QUESTION PAPER
42. How do you round the number 7.25, to the nearest whole number?
a. Math.rnd(7.25)
b. round(7.25)
c. Math.round(7.25)
d. rnd(7.25)
a. Math.ceil(2,4)
b. top(2,4)
c. Math.max(2,4)
d. ceil(2,4)
o JavaScript
o JAVA
o BASIC
o VBScript
o C++
o Perl
1. y
2. 100percent
3. a big number
4. break
5. subtractTwoNumbers
6. First_Name
karROX technologies ltd. H.O, 7th Floor, Bhaveshwar Arcade, LBS Marg, Ghatkopar-W,
Mumbai 400086
XPERT MODULE 4 HTML/JavaScript QUESTION PAPER
50. Which event would you use to start a script after a page has been fully loaded by
the browser?
a. onClick()
b. onSubmit()
c. onLoad()
d. onMouseOver()
e. onload()
karROX technologies ltd. H.O, 7th Floor, Bhaveshwar Arcade, LBS Marg, Ghatkopar-W,
Mumbai 400086