Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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. <html><head><title></<title><body></body></head></html>
- B. <html><title></<title><head></head><body></body></html>
- C. <html><head></head><body><title></<title></body></html>
- D. <html><head><title></<title></head><body></body></html>
- Answer Key: D
- Feedback: <html><head><title></<title></head><body></body></html>
- Question 2 of 10 10.0 Points
- What does CSS stand for?
- A. Cascading Style Sheets
- B. Common Style Sheets
- C. Central Style Sheets
- D. Control Style Sheets
- Answer Key: A
- Question 3 of 10 10.0 Points
- How would you define id selector?
- A. None of the above
- B. id selector as #
- C. id selector as @
- D. id selector as $
- Answer Key: B
- Question 4 of 10 10.0 Points
- In an HTML document, which is the correct place to refer to an external style sheet?
- A. In the <head> section
- B. At the end of the document
- C. At the beginning of the document
- D. In the <body> section
- Answer Key: A
- Question 5 of 10 10.0 Points
- Which of the following tags would you use to insert JavaScript in an HTML page?
- A. <script type=”text/javascript”></script>
- B. <HTMLScript type=”text/javascript”></HTMLScript>
- C. <JScript type=”text/javascript”></JScript>
- D. <JavaScript type=”text/javascript”></JavaScript>
- Answer Key: A
- Question 6 of 10 10.0 Points
- The ——– JavaScript is also known as server-side JavaScript.
- A. Navigator
- B. Microsoft
- C. LiveWire
- D. Native
- Answer Key: C
- Question 7 of 10 10.0 Points
- The following code would allow you to set background with CSS:
- <style type=”text/css”>
- body {background-color: yellow}
- </style>
- True
- False
- Answer Key: True
- Question 8 of 10 10.0 Points
- If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
- A. para1.firstChild.nodeValue= “New Text”;
- B. para1.nodeValue=”New Text”;
- C. “New Text”?
- D. para1.value=”New Text”;
- Answer Key: D
- Question 9 of 10 10.0 Points
- How does JavaScript store date in a date object?
- A. None of the above
- B. The number of seconds since Netscape’s public stock offering.
- C. The number of milliseconds since January 1st, 1970
- D. The number of days since January 1st, 1900
- Answer Key: C
- Question 10 of 10 10.0 Points
- How would you define First-line pseudo-element in CSS?
- A. None of the above
- B. selector:pseudo-elements {property: values}
- C. select:pseudo-element {property: value}
- D. selector:pseudo-element {property: value}
- Answer Key: D
- Question 1 of 10 10.0 Points
- What does CSS define in HTML?
- A. How to display HTML elements
- B. How to send HTML elements
- C. How to made HTML elements
- D. How to save HTML elements Reset Selection
- Question 2 of 10 10.0 Points
- Which of the following HTML tags is used to define an internal style sheet?
- A. <script>
- B. <style>
- C. <css> Reset Selection
- Question 3 of 10 10.0 Points
- What does CSS stand for?
- A. Common Style Sheets
- B. Central Style Sheets
- C. Cascading Style Sheets
- D. Control Style Sheets
- Question 4 of 10 10.0 Points
- Which of the following event fires when the form element loses the focus: <button>, <input>, <label>, <select>, <textarea>?
- A. onblur
- B. ondblclick
- C. onclick
- D. onfocus Reset Selection
- Question 5 of 10 10.0 Points
- Which of the following popup boxes would you use when you want a value from the user before opening a page?
- A. alert(“Write some text here”)
- B. prompt(“Write here some text”,”Write default value here”)
- C. confirm(“Write some text here”) Reset Selection
- Question 6 of 10 10.0 Points
- Among the following optionsl, which is the correct syntax as per w3c standard?
- a.<br><p>Welcome to tcs</br></p>
- b.<p>Welcome to tcs</p>
- c.<br><p>Welcome to tcs</p></br>
- d.<b><p>Welcome to tcs</p></b>
- e.<b><p>Welcome to tcs</b></p>
- A. a,e
- B. c,e
- C. b,d
- D. a,c
- If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
- A. para1.firstChild.nodeValue= “New Text”;
- B. para1.nodeValue=”New Text”;
- C. para1.value=”New Text”;
- D. “New Text”? Reset Selection
- Question 8 of 10 10.0 Points
- Among the following options, select the command that you can use to link a page with an HTML page?
- A. <a attach=\”page.htm\” ></a>
- B. <a connect=\”page.htm\” ></a>
- C. <a href=\”page.htm\”?phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d4e0b88acea2d2a393515f6bf38f2 ></a>
- D. <a link=\”page.htm\” ></a>
- Question 10 of 10 10.0 Points
- Why would you use variables in JavaScript programs?
- A. For Varying randomly
- B. For storing numbers, dates, or other values
- C. For causing high-school algebra flashbacks
- D. None
- Question 9 of 10 10.0 Points
- Which of the following tags would you use to insert JavaScript in an HTML page?
- A. <script type=”text/javascript”></script>
- B. <HTMLScript type=”text/javascript”></HTMLScript>
- C. <JavaScript type=”text/javascript”></JavaScript>
- D. <JScript type=”text/javascript”></JScript>
- Q: You used CSS class into your html, but divided your page without break line. Which of following would you have to use?
- A. <div> </div>
- B. None
- C. <p>
- D. <span></span>
- In an HTML document, which is the correct place to refer to an external style sheet?
- A. In the <body> section
- B. In the <head> 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. <style type=”text/css”>
- body {background-color: red}
- </style>
- B. None
- C. <link rel=”stylesheet” type=”text/css” href=”r4rcss.css”>
- 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. <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-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. <script type=”text/javascript”></script>
- E. Is used to break a line.
- D. <script src=” abc.js”>
- B. How to display HTML elements
- True
- C. id selector as #
- B. prompt(“Write here some text”,”Write default value here”)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement