Computer Knowledge

Markup and Web Languages

1,701 Questions

Test your understanding of HTML tags, XML structures, and web page creation technologies. The questions cover elements like CSS styling, parsing documents, and defining web attributes. This section is essential for candidates appearing for computer proficiency tests in various competitive exams.

HTML tags and attributesXML document parsingCSS styling levelsWeb page creation basicsBrowser compatibility

Markup and Web Languages Questions

Multiple choice technology web 2.0
  1. <dt>

  2. <dd>

  3. <dl>

  4. <di>

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The

tag defines a description list (formerly known as a definition list) in HTML, which contains groups of terms (
) and descriptions (

). While

and

are child elements representing individual terms and details,
is the container tag that initializes the list itself.

Multiple choice technology web 2.0
  1. <abbr>

  2. <abr>

  3. <abbreviation>

  4. <ab>

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The HTML tag is standardly used to mark up abbreviations or acronyms, allowing browsers, search engines, and translation systems to identify them. The other options (, , and ) are invalid HTML tags and are not recognized by the HTML specification.

Multiple choice technology web 2.0
  1. <title="Web Designer Help"></title>

  2. <title=Web Designer Help/>

  3. <title="Web Designer Help"/title>

  4. <title>Web Designer Help</title>

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The title tag is a standard HTML element used to specify the title of a webpage. It requires a standard start tag and end tag enclosing the text. Other options incorrectly format the element by placing the text inside attributes or utilizing self-closing tag syntax.

Multiple choice technology web technology
  1. <? ?>

  2. <script language=”php”> </script>

  3. <% %>

  4. <?php ?>

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

To solve this question, the user needs to know about the different PHP tags and their compatibility with XML or XHTML.

Option A: ?> is a valid PHP tag but it is not recommended to use as it may conflict with XML processing instruction. It is also not recommended to use with XHTML.

Option B: is not a valid PHP tag and will not be parsed as PHP code. It may work on some servers with specific configurations, but it is not portable or recommended.

Option C: <% %> is a valid PHP tag, but it is not compatible with XML or XHTML. It is used in ASP-style syntax.

Option D: is the recommended and most portable version of the PHP tag. It is compatible with XML or XHTML and is widely supported on different servers and configurations.

Therefore, the correct answer is:

The Answer is: D.

Multiple choice technology web 2.0
  1. split()

  2. document.clear()

  3. join()

  4. charAt()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

To answer this question, the user needs to have knowledge about the features supported by MSIE 3.x.

The correct answer is:

B. document.clear()

Option B is correct because the document.clear() method is supported in MSIE 3.x. This method clears the contents of the current document and is used to remove all the elements from the document.

Now let's go through each option and explain why it is right or wrong:

A. split(): This method is used to split a string into an array of substrings. However, this method is not supported in MSIE 3.x.

B. document.clear(): This method is used to clear the contents of the current document. This method is supported in MSIE 3.x.

C. join(): This method is used to join all elements of an array into a string. However, this method is not supported in MSIE 3.x.

D. charAt(): This method is used to return the character at a specified index in a string. This method is supported in MSIE 3.x, but it is not the correct answer to this question.

Therefore, the correct answer is B.

The Answer is: B. document.clear()

Multiple choice technology web 2.0
  1. The duration of the browser session.

  2. The duration the current document stays loaded.

  3. Twenty-four hours from the time the cookie is set.

  4. There is no default setting.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

By default, cookies persist only for the duration of the browser session - they are deleted when the browser closes unless an explicit expires attribute is set. They don't default to 24 hours and do have a default setting (session duration).

Multiple choice technology web technology
  1. JXMLP

  2. JAXP

  3. JAP

  4. JXP

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

JAXP (Java API for XML Processing) is the standard Java API for processing XML documents. It supports parsing XML using DOM (Document Object Model) and SAX (Simple API for XML), as well as transforming XML with XSLT. The other options are not standard or recognizable Java XML processing APIs.

Multiple choice technology web technology
  1. <f:faces>

  2. <f:view>

  3. <h:jsf>

  4. <h:view>

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In JSF (JavaServer Faces), the tag is the required root element that encloses all other JSF component tags on a JSP page. It represents the UIViewRoot component and is essential for the JSF lifecycle to process the page correctly. The 'h' prefix typically refers to HTML components, while 'f' refers to core JSF components.

Multiple choice technology programming languages
  1. <label>

  2. <table>

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The ASP.NET Label control renders as a HTML element in the browser. This is because Label is designed to display static text and span is the appropriate inline element for this purpose. Option B is correct. Option A refers to a different HTML element () used for form labeling, while div and table are block elements.

Multiple choice technology programming languages
  1. <label>

  2. <table>

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The asp:Label server control renders as an HTML element in the browser. This is consistent across modern browsers including Netscape Communicator. The element is used for form labeling but is not the default rendering of asp:Label.

would create a block-level element, and is for tabular data. The element allows the Label to be inline while applying any styling or CSS class attributes.

Multiple choice technology programming languages
  1. Extended expressions

  2. Regular expressions

  3. Irregular expressions

  4. Basic expressions

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Regular expressions (regex) are the standard tool for validating complex string patterns like email addresses, phone numbers, postal codes, etc. Regex provides pattern-matching syntax that can express rules like 'must contain @ symbol' or 'must end with .com'. The other options (Extended, Irregular, Basic expressions) are not standard pattern validation mechanisms in programming.

Multiple choice technology programming languages
  1. ASP.NET doesn't support server-side includes

  2. ASP.NET doesn't support server-side includes but supports server-side object tags

  3. ASP.NET doesn't server-side object tags

  4. ASP.NET support server-side includes and server-side object tags

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

ASP.NET maintains backward compatibility by supporting legacy server-side includes alongside server-side object tags to declare and instantiate COM components.

Multiple choice technology programming languages
  1. ASP.NET doesn't support server-side includes

  2. ASP.NET doesn't support server-side includes but supports server-side object tags

  3. ASP.NET doesn't server-side object tags

  4. ASP.NET support server-side includes and server-side object tags

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

ASP.NET supports both server-side includes (using syntax) and server-side object tags (using syntax). Server-side includes allow inserting content from other files, while object tags enable creating and using COM components. The other options incorrectly deny these capabilities.

Multiple choice technology programming languages
  1. Extended expressions

  2. Regular expressions

  3. Irregular expressions

  4. Basic expressions

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Regular expressions provide powerful pattern matching for complex string validation like email addresses, phone numbers, or custom formats. ASP.NET's RegexValidator (or Regex class in System.Text.RegularExpressions) uses regex patterns to validate input against defined rules. Extended, irregular, and basic expressions are not standard terminology for this validation approach.