Source :http://www.darksite.co.in Credit @:-Chandrakant Nial 7. TCS ASPIRE : Web Tech quiz Few Web tech ques change everytime, even for same group.. Have tried to capture most of question here. WEB TECHNOLOGY: 100.0 Points Question 1 of 10 10.0 Points Which of the following sequences of HTML tags is correct? A.
D. In an HTML document, which is the correct place to refer to an external style sheet? A. In the
section B. In the section C. At the end of the document D. At the beginning of the document Question 1 of 10 10.0 Points How would you define First-line pseudo-element in CSS? A. select:pseudo-element {property: value} B. selector:pseudo-elements {property: values} C. selector:pseudo-element {property: value} D. None of the options Question 4 of 10 10.0 Points Among the following options, choose the correct syntax used for external CSS? A. B. None C. Here r4rcc.css is in to same directory . D. Both 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 Q: 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 Q: 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. B. C. D. ans- c 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 Only Answers, no ques :P . td.test1 {padding: 2.0cm} Case incensitive B. E. Is used to break a line. D.