Computer Knowledge

Markup and Web Languages

1,492 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 platforms and products
  1. Attributes

  2. Data

  3. Constraints

  4. Element types

  5. Element Data types

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

DTD defines XML structure and constraints. Attributes specify element properties. Constraints define valid values and relationships. Element types declare allowed elements and their hierarchy. DTD doesn't contain actual data instances or specific data type definitions.

Multiple choice technology web technology
  1. Advance JavaScript and XML

  2. Asynchronous JavaScript and XML

  3. Actual JavaScript and XML

  4. None of the Above

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

AJAX stands for Asynchronous JavaScript and XML. It describes a technique for making asynchronous HTTP requests from the browser to exchange data and update parts of a web page without requiring a full page reload. Despite the name containing XML, modern AJAX often uses JSON instead.

Multiple choice technology web technology
  1. JavaScript and XML

  2. JavaScript and Java

  3. VBScript and XML

  4. JavaScript and HTTP requests

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

AJAX is based on JavaScript for client-side logic and XML for data exchange (traditionally). The core technology is the XMLHttpRequest object, which JavaScript uses to make asynchronous HTTP requests. While modern AJAX often uses JSON instead of XML, the name reflects the original design.

Multiple choice technology web technology
  1. Search engines would not be able to index an AJAX application

  2. ActiveX requests are enabled only in IE 5 and IE6

  3. Back button in the browser

  4. All the above

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

AJAX has several disadvantages: search engines cannot easily index dynamically loaded content (SEO issue), browser back/forward buttons don't work with AJAX page updates by default, and historically there were browser compatibility concerns. Since all three listed options describe genuine disadvantages, 'All the above' is correct.

Multiple choice technology programming languages
  1. A. The prefix defines the name of the tag that may be used for a tag library

  2. B. The prefix attribute defines the location of the tag library descriptor file.

  3. C. The prefix attribute should refer to the short name attribute of the tag library file that is defined by the uri attribute of taglib directive.

  4. D. The prefix attribute is used in front of a tagname of a tag defined within the tag library.

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

In JSP tag libraries, the prefix attribute serves as a namespace identifier. When you declare a tag library with <%@ taglib uri="..." prefix="..." %>, the prefix defines the short name you'll use to reference tags from that library in the JSP page. You then use this prefix before tag names, like . The prefix itself doesn't define the tag name or point to the TLD location - it's simply used as a namespace qualifier before tag names to distinguish them from tags in other libraries or standard JSP elements.

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. 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 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.