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
-
Attributes
-
Data
-
Constraints
-
Element types
-
Element Data types
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.
-
Advance JavaScript and XML
-
Asynchronous JavaScript and XML
-
Actual JavaScript and XML
-
None of the Above
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.
-
JavaScript and XML
-
JavaScript and Java
-
VBScript and XML
-
JavaScript and HTTP requests
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.
-
Interact with XML
-
Sent request to client and get the request from server
-
Both 1 & 2
-
None of the above
-
XHTML
-
XML
-
Javascript
-
Is not language or structure specific
-
Search engines would not be able to index an AJAX application
-
ActiveX requests are enabled only in IE 5 and IE6
-
Back button in the browser
-
All the above
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.
-
A. The prefix defines the name of the tag that may be used for a tag library
-
B. The prefix attribute defines the location of the tag library descriptor file.
-
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.
-
D. The prefix attribute is used in front of a tagname of a tag defined within the tag library.
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.
-
name
-
description
-
validator
-
tag-class
-
display-name
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.
-
The included file must have jspf extension
-
The XML syntax of include directive in <jsp:include file="fileName"/> .
-
The content of file included using include directive, cannot refer to variables local to the original page
-
When using the include directive, the JSP container treats the file to be included as if it was part of the original file.
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.
-
Fragments
-
Text files
-
Streams
-
harness
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.
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.
B
Correct answer
Explanation
Web.Config is an XML-based configuration file used in ASP.NET applications. It contains application settings, connection strings, and framework configurations in a structured XML format.
A
Correct answer
Explanation
In HTML, heading tags range from H1 to H6, where H1 is the largest and most important heading, and H6 is the smallest. Therefore, H1 makes the largest headline.
-
<text></text>
-
<body></body>
-
<title></title>
-
<head></head>
B
Correct answer
Explanation
In HTML, most of the visible content of a web page should be placed between the tags. The section contains metadata and title, sets the page title, and is not a standard HTML container.