Saturday 21 July 2012

Web technology -Quiz1


Web technology -Quiz1
1.What is the correct syntax of the declaration which defines the XML version?
Option: a. < ? xml version="1.0" ? >
b. < xml version="1.0" />
c. < xml version="1.0"? />
d. None of the above
e. < ? xml version="1.0" ? />
Ans: a


2.What is the correct syntax for referring to an external script called "xxx.js"?
option: a. None
b. < script type="text/javascript" name="xxx.js" >
c. < script type="text/javascript" href="xxx.js" >
d. < script type="text/javascript" src="xxx.js" >
ans: d




3. What is the correct HTML for referring to an external style sheet?
option : a. < stylesheet>mystyle.css
b. None of the above
c. < style src="mystyle.css" />
d. < link ="stylesheet" type=text/css/script href="mystyle.css" >
e. < link rel="stylesheet" type="text/css" href="mystyle.css" />
Ans: e


4. What can you use to replace like with hate in I like Eminem?
Option : a. preg_replace("/like/", "/hate/", "I like Eminem")
b. preg_replace("hate", "like", "I like Eminem")
c. preg_replace("/like/", "hate", "I like Eminem")
d. None of the above
e. preg_replace("like", "hate", "I like Eminem")
ans: e


5. What are the genral syntax for inline image?
Option: a. None of the above
b. img=file
c. img src=file
d. src=image
e. image src=file
Ans: c


1. What are the general syntax for inline image? 
Ans: img src=file 
2. What is the correct syntax for referring to an external script called "xxx.js"? 
Ans: <script type="text/javascript" src="xxx.js"> 
3. What is the correct syntax of the declaration which defines the XML version? 
Ans: <? xml version="1.0" ?>
4. What can you use to replace like with hate in i like eminem? 
Ans: preg_replace("like", "hate", "i like eminem") 
5. What is the correct HTML for referring to an external style sheet?
 Ans: <link rel="stylesheet" type=text/css" href="mystyle.css" />






How does JavaScript store date in a date object?


A. The number of seconds since Netscape's public stock offering.


B. None of the options


C. The number of milliseconds since January 1st, 1970


D. The number of days since January 1st, 1900
ans c


What does CSS define in HTML?


A. How to send HTML elements


B. How to save HTML elements


C. How to made HTML elements


D. How to display HTML elements
ANS- D




Among the following options, select the command that you can use to link a page with an HTML page?


A. <a link=\"page.htm\" ></a>


B. <a connect=\"page.htm\" ></a>


C. <a href=\"page.htm\"?phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d4e0b88acea2d2a393515f6bf38f2 ></a>


D. <a attach=\"page.htm\" ></a>
ans- c


QSTN-__ JavaScript is also called server-side JavaScript. A. Microsoft B. Navigator C. LiveWire D. Native
Ans- c






QSTN-  The <BR> Tag
ANS-Reset margins




QSTN-You used CSS class into your html, but divided your page without break line. Which of following would you have to use?
Ans-The <div> tag






QSTN-How would you set a CSS comment?
ANS- "/*",  "*/", 




QSTN-How would you define CSS padding?'
ANS-p {padding: 2%; border: 1px solid black; } 
h5{padding: 0px; border: 1px solid red;}




QSTN- Which of the following popup boxes would you use to get some information from the user?
ANS-prompt















No comments:

Post a Comment

TCS aspire communication quiz solutions...