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 programming languages
  1. name

  2. description

  3. validator

  4. tag-class

  5. display-name

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

In a JSP tag library descriptor (TLD), the required elements within a tag element are 'name' and 'tag-class'. The 'name' element defines the unique tag name within the library, and 'tag-class' specifies the fully-qualified Java class that implements the tag handler. Other elements like 'description', 'validator', and 'display-name' are optional and provide additional metadata or validation logic, but are not required for the tag to function.

Multiple choice technology programming languages
  1. The included file must have jspf extension

  2. The XML syntax of include directive in <jsp:include file="fileName"/> .

  3. The content of file included using include directive, cannot refer to variables local to the original page

  4. When using the include directive, the JSP container treats the file to be included as if it was part of the original file.

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

The include directive <%@ include file="..." %> performs static inclusion at translation time, merging the content as if it were part of the original JSP. Option A is incorrect because any extension works (jspf is just convention). Option B describes the include action , not directive. Option C is wrong because directive content shares the same scope and CAN access local variables.

Multiple choice technology platforms and products
  1. Rule-HTML-Section

  2. Rule-HTML

  3. Rule-Section-HTML

  4. Rule-Obj-Section

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

In Pega's rule hierarchy, section rules are Rule-HTML-Section type. They contain HTML and markup to define reusable user interface sections that can be included in harnesses and other sections.

Multiple choice technology platforms and products
  1. Fragments

  2. Text files

  3. Streams

  4. harness

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

Text File rules in Pega are specifically designed to store static content like HTML style sheets (CSS files) and JavaScript code. Unlike most Pega rules, Text File rules are not subject to rule resolution - the system does not search through multiple RuleSets or versions to find them. Fragments, Streams, and Harness rules are all subject to standard rule resolution mechanisms.

Multiple choice technology web technology
    1. Create different Lists to different Audience with the required metadata as columns
    1. Create a Single list and attach multiple content types
    1. Create Site Columns with access privileges to the audience and add them to the List
    1. This is not possible with MOSS
Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

SharePoint content types allow different document categories (like contracts, proposals, reports) to have distinct metadata columns within the same document library. Each content type defines its own fields, and users select the appropriate content type when uploading. Creating separate lists (option A) complicates management, while site columns (option C) share the same schema across all documents.

Multiple choice technology web technology
  1. A,B,C

  2. B, C , D

  3. A,B, D

  4. A,C,B

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

Statements a, b, and d are correct. Site definitions are stored on the front-end web server's hard drive, while site templates are stored in the content database. Site definitions are highly extensible and can provision multiple web instances, whereas site templates are limited and harder to extend programmatically.

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

To solve this question, the user needs to have knowledge of JavaServer Faces (JSF) and its structure.

The correct answer is:

B.

The tag must enclose all other tags on a Faces JSP page. It represents the outermost container for a JavaServer Faces (JSF) application and is used to define the view that is to be rendered.

Option A, , is not a valid JSF tag.

Option C, , is not a valid JSF tag either.

Option D, , is a valid JSF tag, but it is not the correct answer to this question. The correct tag is .

Multiple choice technology web technology
  1. To keep track of its identifier

  2. To keep track of the components in tree

  3. To set its submitted property

  4. For JavaScript integration

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

The HtmlForm component in JSF renders a hidden field to track its submitted state during the request processing lifecycle. This hidden field helps JSF determine whether the form has been submitted and distinguishes between initial form display and postback requests. The hidden field is not for tracking identifiers (A), component trees (B), or JavaScript integration (D) - those are handled by other JSF mechanisms.

Multiple choice technology programming languages
  1. .vb

  2. XML

  3. Resource

  4. Aspx

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

Web.Config is an XML-based configuration file used in ASP.NET applications to store application settings, connection strings, and framework configurations. It follows standard XML syntax and structure.

Multiple choice technology programming languages
  1. use javax.xml.soap.Element

  2. use javax.xml.soap.Node

  3. use javax.xml.soap.SOAPHeader

  4. use javax.xml.soap.SOAPElement

  5. use javax.xml.soap.SOAPFault

  6. use javax.xml.soap.SOAPBodyElement

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

In JAX-RPC/SAAJ, xsd:anyType maps to javax.xml.soap.SOAPElement in Java to represent arbitrary XML content. SOAPElement extends Node and represents an element in a SOAP message. Standard Element or Node interfaces are too generic or not SAAJ-specific, while SOAPHeader or SOAPFault are specialized SOAP components.

Multiple choice technology web technology
  1. Body

  2. Title

  3. Form

  4. Head

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

META tags are always placed in the HEAD section of an HTML document, not the BODY. The HEAD contains metadata about the document including descriptions, keywords, character encoding, viewport settings, and other information that doesn't display on the page itself. The BODY contains visible content.