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
-
eXtra Markup Language
-
eXplore Markup Language
-
eXpensive Markup Language
-
eXtensible Markup Language
D
Correct answer
Explanation
XML stands for eXtensible Markup Language. It is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable.
B
Correct answer
Explanation
XML is case-sensitive for all element and attribute names. and are different tags, and 'ID' and 'id' are different attributes. This is specified in the XML recommendation and parsers enforce this strictly.
-
TLDs
-
DDLs
-
Web-inf
-
Meta-Inf
A
Correct answer
Explanation
Standard JSP custom tag libraries use TLD (Tag Library Descriptor) files, typically stored in WEB-INF or META-INF. The question mentions non-standard 'ps:' tags, but if this is a standard JSP question about TLD files, option A is correct. However, 'ps:' is not a standard JSP tag prefix.
-
Map.xml
-
Web.xml
-
ps.xml
-
DynamicContentAliases.xml
C
Correct answer
Explanation
In the PS framework, task flows and page flows are specified in the ps.xml configuration file. This is a framework-specific convention for defining navigation and workflow logic. Web.xml handles servlet configuration, not workflow definitions.
-
TLDs
-
DDLs
-
Web-inf
-
Meta-Inf
A
Correct answer
Explanation
JSP custom tags require a Tag Library Descriptor (TLD) file in the WEB-INF directory (or subdirectory). The TLD file defines the custom tag library, including tag names, attributes, and handler classes. DDL is unrelated (database definition), Web-inf is the wrong capitalization, and Meta-Inf is for JAR metadata.
-
Map.xml
-
Web.xml
-
ps.xml
-
DynamicContentAliases.xml
C
Correct answer
Explanation
The ps.xml file (possibly Struts configuration or framework-specific) defines task flows and page flows in this application context. Web.xml handles servlet mappings, Map.xml is not a standard Java EE file, and DynamicContentAliases.xml is application-specific. This appears to be testing a specific framework knowledge.
B
Correct answer
Explanation
XQuery is the standard query language designed specifically for retrieving and manipulating data from XML documents. DB2 9 introduced native XML support with XQuery. LOB is a binary storage type, while images and videos are typically stored as BLOBs.
-
<!-- - - >
-
<%-- --%>
-
</* */>
-
//
A
Correct answer
Explanation
HTML comments use the syntax to hide content from browsers without deleting it. Option A shows this format (with unusual spacing). Option B is JSP comment syntax, C mixes invalid closing tag syntax with C-style comments, and D is for JavaScript single-line comments.
-
<!-- - - >
-
<%-- --%>
-
</* */>
-
//
B
Correct answer
Explanation
JSP comments are written using the <%-- --%> syntax, which prevents the commented content from being compiled or sent to the client. The `syntax creates HTML comments, which are sent to the client, while//and/* */` are Java/JavaScript style comments.
-
Declaration
-
Scriplets
-
Expressions
-
All the above
D
Correct answer
Explanation
JSP has three main scripting elements: Declaration (<%! ... %>) for declaring variables or methods, Scriptlets (<% ... %>) for embedding Java code, and Expressions (<%= ... %>) for outputting values. All three are fundamental JSP scripting elements, making 'All the above' the correct answer.
-
Presentation Tag
-
JSP standard Tag
-
Custom tags
-
All the above
D
Correct answer
Explanation
JSP supports multiple tag types: Presentation tags (for formatting and display), JSP Standard Tag Library (JSTL) tags for common tasks, and Custom tags defined by developers. All three categories are valid JSP tag types, making 'All the above' correct.
C
Correct answer
Explanation
Ajax is built on JavaScript, CSS, HTML, and the XMLHttpRequest object. Java is a backend language that may power the server, but it is not one of the web standards that Ajax is based on in the browser.
-
REXpand Xml
-
REstructured EXtended EXecutor
-
Reload EXtended XML
-
REstructured EXpand XML
B
Correct answer
Explanation
REXX stands for REstructured eXtended eXecutor, a programming language developed by IBM. It's a high-level, interpreted language designed to be easy to learn and use, commonly used for scripting, automation, and prototyping on IBM mainframe and other platforms.
-
declarations
-
scriptlets
-
expressions
-
All of the above
D
Correct answer
Explanation
JSP scripting elements include declarations (for variable/method declarations), scriptlets (for Java code blocks), and expressions (for outputting values to the response). All three are fundamental JSP scripting constructs.