Web Technology Questions and Answers - 1

1)   When you create a "recipient" hidden field for a form, which of the following is the ONLY correct way to type the word "recipient?"

a. Recipient
b. <recipient></recipient>
c. recipient
d. RECIPIENT
Answer  Explanation 

ANSWER: <recipient></recipient>

Explanation:
No explanation is available for this question!


2)   Which file controls how your frames will appear?

a. Frameset
b. Master Document
c. Template
d. Timeline
Answer  Explanation 

ANSWER: Frameset

Explanation:
No explanation is available for this question!


3)   What can't layers do if you want to convert them to tables?

a. Be close
b. Contain a Color
c. Be larger than the target table
d. Overlap
Answer  Explanation 

ANSWER: Overlap

Explanation:
No explanation is available for this question!


4)   Which HTML tag is used to define an internal style sheet?

a. <script>
b. <css>
c. <style>
d. None of these
Answer  Explanation 

ANSWER: <style>

Explanation:
No explanation is available for this question!


5)   Which HTML attribute is used to define inline styles?

a. font
b. class
c. styles
d. style
Answer  Explanation 

ANSWER: style

Explanation:
No explanation is available for this question!


6)   Which is the correct CSS syntax?

a. body:color=black
b. {body;color:black}
c. {body:color=black(body}
d. body {color: black}
Answer  Explanation 

ANSWER: body {color: black}

Explanation:
No explanation is available for this question!


7)   Using _______ statement is how you test for a specific condition.

a. Select
b. If
c. Switch
d. For
Answer  Explanation 

ANSWER: If

Explanation:
No explanation is available for this question!


8)   Which of the following is the structure of an if statement?

a. if (conditional expression is true) thenexecute this codeend if
b. if (conditional expression is true)execute this codeend if
c. if (conditional expression is true)   {then execute this code>->}
d. if (conditional expression is true) then {execute this code}
Answer  Explanation 

ANSWER: if (conditional expression is true)   {then execute this code>->}

Explanation:
No explanation is available for this question!


9)   The _______ method of an Array object adds and/or removes elements from an array.

a. Reverse
b. Shift
c. Slice
d. Splice
Answer  Explanation 

ANSWER: Splice

Explanation:
No explanation is available for this question!


10)   To set up the window to capture all Click events, we use which of the following statement?

a. window.captureEvents(Event.CLICK);
b. window.handleEvents (Event.CLICK);
c. window.routeEvents(Event.CLICK );
d. window.raiseEvents(Event.CLICK );
Answer  Explanation 

ANSWER: window.captureEvents(Event.CLICK);

Explanation:
No explanation is available for this question!


11)   Who is making the Web standards?

a. Mozilla
b. Microsoft
c. The World Wide Web Consortium
d. NVDIA
Answer  Explanation 

ANSWER: Mozilla

Explanation:
No explanation is available for this question!


12)   Choose the correct HTML tag for the largest heading

a. <h6>
b. <heading>
c. <head>
d. <h1>
Answer  Explanation 

ANSWER: <h1>

Explanation:
No explanation is available for this question!


13)   What is the correct HTML tag for inserting a line break?

a. <br />
b. <break />
c. <lb />
d. <nbsp>
Answer  Explanation 

ANSWER: <br />

Explanation:
No explanation is available for this question!


14)   Can a data cell contain images?

a. Yes
b. No


Answer  Explanation 

ANSWER: Yes

Explanation:
No explanation is available for this question!


15)   How do I add scrolling text to my page?

a. <scroll>
b. <marquee>
c. <ciruler>
d. <tab>
Answer  Explanation 

ANSWER: <marquee>

Explanation:
No explanation is available for this question!


16)   What is the preferred way for adding a background color in HTML?

a. <body background="yellow">
b. <background>yellow</background>
c. <body style="background-color:yellow">    
d. <background color="yellow">text<background>
Answer  Explanation 

ANSWER: <body style="background-color:yellow">    

Explanation:
No explanation is available for this question!


17)   What is the correct HTML for creating a hyperlink?

a. <a name="">A</a>
b. <a>B</a>
c. <a href="http://www.example.com">example</a>
d. <a url="http://www.example.com">example</a>     
Answer  Explanation 

ANSWER: <a href="http://www.example.com">example</a>

Explanation:
No explanation is available for this question!


18)   How can you create an e-mail link?

a. <mail href="a@b">
b. <mail>a@b</mail>
c. <a href="a@b">
d. <a href="mailto:a@b.com">
Answer  Explanation 

ANSWER: <a href="mailto:a@b.com">

Explanation:
No explanation is available for this question!


19)   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">
d. <a href="url" target="">
Answer  Explanation 

ANSWER: <a href="url" target="_blank">

Explanation:
No explanation is available for this question!


20)   Which of these tags are all <table> tags?

a. <table><head><tfoot>
b. <table><tr><td>
c. <table><tr><tt>
d. <thead><body><tr>
Answer  Explanation 

ANSWER: <table><tr><td>

Explanation:
No explanation is available for this question!


21)   Which of the following JavaScript cannot do?

a. JavaScript can react to events
b. JavaScript can manipulate HTML elements
c. JavaScript can be use to validate data
d. All of the Above
Answer  Explanation 

ANSWER: All of the Above

Explanation:
No explanation is available for this question!


22)   Which is the first Internet search engine?

a. Google
b. Archie
c. Altavista
d. WAIS
Answer  Explanation 

ANSWER: Archie

Explanation:
No explanation is available for this question!


23)   Which is not a property of attribute Behaviour of <Marquee> tag?

a. alternate
b. blur
c. scroll
d. slide
Answer  Explanation 

ANSWER: blur

Explanation:
No explanation is available for this question!


24)   _________ keyword is used to declare variables in javascript.

a. Var
b. Dim
c. String
d. None of the above
Answer  Explanation 

ANSWER: Var

Explanation:
No explanation is available for this question!


25)   The attribute used to define a new namespace is.

a. XMLNS
b. XmlNameSpace
c. Xmlns
d. XmlNs
Answer  Explanation 

ANSWER: Xmlns

Explanation:
No explanation is available for this question!


26)   The following is a web-page:

<html>
     <head> <title>JavaScript</title> </head>
      <body bgcolor=""#0000ff"">
          <script language=""JavaScript"">
               <!-- document.write(""<h1> hello world </h1>""); //-->
          </script>
     </body>
</html>

When the above web page is loaded into a browser, what will happen?


a. The body of the web page will not contain any text
b. The body of the web page will contain the text “hello world” as an H1 heading
c. The background color of the web page will be green
d. document.write("<h1> hello world </h1 >”); is a comment.
Answer  Explanation 

ANSWER: The body of the web page will not contain any text

Explanation:
No explanation is available for this question!


27)   The elements <DIV> and <SPAN> have the following characteristics

a. Element <DIV> inherits properties defined for <SPAN> in a stylesheet
b. Elements <SPAN> and <DIV> define content to be inline or block-level
c. <DIV> and <SPAN> are used as alternatives for the element <P>
d. <DIV> is used inside element <P>.
Answer  Explanation 

ANSWER: Elements <SPAN> and <DIV> define content to be inline or block-level

Explanation:
No explanation is available for this question!


28)   To enable data tainting, the end user sets the _________ environment variable.

a. ENABLE_TAINT
b. MS_ENABLE_TAINT
c. NS_ENABLE_TAINT
d. ENABLE_TAINT_NS
Answer  Explanation 

ANSWER: NS_ENABLE_TAINT

Explanation:
No explanation is available for this question!


29)   When trying to access a URL, the following message is displayed on the browser:
Server; Error 403.
What could be the reason for the message?


a. The requested HTML file is not available
b. The path to the interpreter of the script file is invalid
c. The first line of the output from the script is not a valid HTTP header
d. The requested HTML file or CGI script has insufficient permission.
Answer  Explanation 

ANSWER: The requested HTML file or CGI script has insufficient permission.

Explanation:
No explanation is available for this question!


30)   The general definition of a(n) ____ is a set of linked documents with shared attributes, such as related topics, a similar design, or a shared purpose.

a. index
b. website
c. Internet
d. Homepage
Answer  Explanation 

ANSWER: website

Explanation:
No explanation is available for this question!