HTML and Java Script

June 12, 2018 | Author: subhashchandra2k1 | Category: Java Script, Hyperlink, Html, Html Element, Human–Computer Interaction


Comments



Description

XPERT MODULE 4 HTML/JavaScript QUESTION PAPERNAME: 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. b. c. d. <bb> <b> <bld> <bold> 6. Choose the correct HTML tag to make a text italic a. b. c. <i> <italics> <ii> 7. What is the correct HTML for making a hyperlink? a. b. c. d. <a href="http://www.w3schools.com">W3Schools</a> <a>http://www.w3schools.com</a> <a name="http://www.w3schools.com">W3Schools.com</a> <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. b. c. <a href="url" new> <a href="url" target="new"> <a href="url" target="_blank"> 10. Which of these tags are all <table> tags? a. b. c. d. <table><head><tfoot> <table><tr><tt> <thead><body><tr> <table><tr><td> 11. Choose the correct HTML to left-align the content inside a table cell a. b. c. d. <td align="left"> <tdleft> <td leftalign> <td valign="left"> 12. How can you make a list that lists the items with numbers? a. b. c. d. <dl> <ul> <list> <ol> 13. How can you make a list that lists the items with bullets? a. b. c. d. <ul> <ol> <dl> <list> 14. What is the correct HTML for making a checkbox? a. b. c. d. <input type="checkbox"> <check> <input type="check"> <checkbox> 15. What is the correct HTML for making a text input field? a. b. c. d. <textfield> <input type="text"> <textinput type="text"> <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. b. c. d. <input type="dropdown"> <input type="list"> <list> <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. b. c. d. <img src="image.gif"> <image src="image.gif"> <img>image.gif</img> <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. d. Both options are valid 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 c. both options are valid d. Non of above is correct HOPE</a> 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 </a> d. Non of above HREF="http://www.logo.gif” border="0"> 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. b. c. d. <javascript> <js> <script> <scripting> 28. What is the correct JavaScript syntax to write "Hello World"? a. b. c. d. response.write("Hello World") ("Hello World") document.write("Hello World") "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. b. c. d. alertBox("Hello World") alert("Hello World") msgBox("Hello World") 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. b. c. d. if (i==5) if i==5 then if i=5 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. b. c. d. if <>5 if (i <> 5) f (i != 5) 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. b. c. d. for (i <= 5; i++) for (i = 0; i <= 5) for (i = 0; i <= 5; i++) 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. b. c. d. Math.rnd(7.25) round(7.25) Math.round(7.25) rnd(7.25) 43. How do you find the largest number of 2 and 4? a. b. c. d. Math.ceil(2,4) top(2,4) Math.max(2,4) ceil(2,4) 44. How do you put a message in the browser's status bar? a. b. c. d. status("put your message here") window.status("put your message here") window.status = "put your message here" 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 o o o o o JavaScript JAVA BASIC VBScript C++ Perl 48. Which of the following are valid variable or function names: 1. 2. 3. 4. 5. 6. y 100percent a big number break subtractTwoNumbers 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. b. c. d. e. onClick() onSubmit() onLoad() onMouseOver() onload() karROX technologies ltd. H.O, 7th Floor, Bhaveshwar Arcade, LBS Marg, Ghatkopar-W, Mumbai 400086
Copyright © 2024 DOKUMEN.SITE Inc.