You are on page 1of 9

XPERT MODULE 4 HTML/JavaScript QUESTION PAPER

NAME: _______________________

BATCH TIMINGS: _______________________

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

HTML and Java Script


Duration : 1 hour Max Marks :
100

1. What does HTML stand for

a. Hyper Text Markup Language


b. Home Tool Markup Language
c. Hyperlinks and Text Markup Language

2. Choose the correct HTML tag for the largest heading

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>

4. What is the correct HTML for adding a background color?

a. <background>yellow</background>
b. body color="yellow">
c. <body bgcolor="yellow">

5. Choose the correct HTML tag to make a text bold

a. <bb>
b. <b>
c. <bld>
d. <bold>

6. Choose the correct HTML tag to make a text italic

a. <i>
b. <italics>
c. <ii>

7. What is the correct HTML for making a hyperlink?

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>

8. How can you make an e-mail link?

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

9. How can you open a link in a new browser window?

a. <a href="url" new>


b. <a href="url" target="new">
c. <a href="url" target="_blank">

10. Which of these tags are all <table> tags?

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>

14. What is the correct HTML for making a checkbox?

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

16. What is the correct HTML for making a drop-down list?

a. <input type="dropdown">
b. <input type="list">
c. <list>
d. <select>

17. What is the correct HTML for making a text area?

a. <input type="textbox">
b. <input type="textarea">
c. <textarea>

18. What is the correct HTML for inserting an image?

a. <img src="image.gif">
b. <image src="image.gif">
c. <img>image.gif</img>
d. <img href="image.gif>

19. What is the correct HTML for inserting a background image?

a. <img src="background.gif" background>


b. <background img="background.gif">
c. <body background="background.gif">

20. How to create links to sections on the same page in HTML.

a. <A HREF="#top">Top</a>

<A NAME="top">

b. <A SRC=”#top”>TOP</a>

<A NAME=”top”>

c. Both options are valid

d. Non of above is correct

21. Opening new web page window when clicking on a link.

a. <A src =”http://www.sunset.com” TARGET="_NEW">COMPUTER HOPE</a>

b. <A HREF = “http://www.sunset.com” TARGET="_NEW">COMPUTER HOPE</a>

c. both options are valid

d. Non of above is correct

karROX technologies ltd. H.O, 7th Floor, Bhaveshwar Arcade, LBS Marg, Ghatkopar-W,
Mumbai 400086
XPERT MODULE 4 HTML/JavaScript QUESTION PAPER

22. Creating a new window in HTML for a single image.

a. can not do in HTML

b. <A SRC="http://www.computerhope.com/title.gif">Computer Hope Picture </A>

c. <A HREF="http://www.computerhope.com/title.gif">Computer Hope Picture </A>

d. None of above

23. Creating images as links with no borders

a. can not be done in HTML

b. <A HREF="http://www.computerhope.com"> <IMG SRC=”http://www.logo.gif” border="0">


</a>

c. <A SRC="http://www.computerhope.com"> <IMG HREF="http://www.logo.gif” border="0">


</a>

d. Non of above

24. What is the difference between width=”100” and width=”100%”?

a. No difference between both

b. It does not exists in HTML

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 ...

25. What is full form of URL

a. Uniform Resource Local

b. Uniform Resource Locator

c. Uniform Resource Location

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

26. How to add Scrolling text to a page

a. can not be done


b. <marquee>THIS WOULD SCROLL</marquee>
c. <scroll >text=” THIS WOULD SCROLL”</scroll>

27.. Inside which HTML element do we put the JavaScript?

a. <javascript>
b. <js>
c. <script>
d. <scripting>

28. What is the correct JavaScript syntax to write "Hello World"?

a. response.write("Hello World")
b. ("Hello World")
c. document.write("Hello World")
d. "Hello World"

29. Where is the correct place to insert a JavaScript?

a. The <head> section


b. Both the <head> section and the <body> section are correct
c. The <body> section

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">

31. An external JavaScript must contain the <script> tag

a. True
b. False

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

a. alertBox("Hello World")
b. alert("Hello World")
c. msgBox("Hello World")
d. alertBox="Hello World"

33. How do you create a function?

a. function:myFunction()
b. function=myFunction()
c. function myFunction()

34. How do you call a function named "myFunction"?

karROX technologies ltd. H.O, 7th Floor, Bhaveshwar Arcade, LBS Marg, Ghatkopar-W,
Mumbai 400086
XPERT MODULE 4 HTML/JavaScript QUESTION PAPER

a. call function myFunction


b. call myFunction()
c. myFunction()

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

37. How many different kind of loops are there in JavaScript?

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

38. How does a "for" loop start?

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


b. for (i = 0; i <= 5)
c. for (i = 0; i <= 5; i++)
d. for i = 1 to 5

39. How can you add a comment in a JavaScript?

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?

a. //This comment has


more than one line//
b. /*This comment has
more than one line*/
c. <!--This comment has
more than one line-->

41. What is the correct way to write a JavaScript array?

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


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

karROX technologies ltd. H.O, 7th Floor, Bhaveshwar Arcade, LBS Marg, Ghatkopar-W,
Mumbai 400086
XPERT MODULE 4 HTML/JavaScript QUESTION PAPER

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

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)

43. How do you find the largest number of 2 and 4?

a. Math.ceil(2,4)
b. top(2,4)
c. Math.max(2,4)
d. ceil(2,4)

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

a. status("put your message here")


b. window.status("put your message here")
c. window.status = "put your message here"
d. statusbar = "put your message here"

45. (True or False) JavaScript is an interpreted language.


46. (True or False) JAVA and JavaScript were created by the same
company.
47. Microsoft Internet Explorer supports the following scripting languages.

o JavaScript
o JAVA
o BASIC
o VBScript
o C++
o Perl

48. Which of the following are valid variable or function names:

1. y
2. 100percent
3. a big number
4. break
5. subtractTwoNumbers
6. First_Name

49. True or False. JavaScript is a case insensitive language.

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