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 technology
  1. eXtra Markup Language

  2. eXplore Markup Language

  3. eXpensive Markup Language

  4. eXtensible Markup Language

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. TLDs

  2. DDLs

  3. Web-inf

  4. Meta-Inf

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. TLDs

  2. DDLs

  3. Web-inf

  4. Meta-Inf

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Map.xml

  2. Web.xml

  3. ps.xml

  4. DynamicContentAliases.xml

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. LOB

  2. XML

  3. Image

  4. Video

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. <!-- - - >

  2. <%-- --%>

  3. </* */>

  4. //

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. <!-- - - >

  2. <%-- --%>

  3. </* */>

  4. //

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

JSP comments are written using the &lt;%-- --%&gt; 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.

Multiple choice technology programming languages
  1. Declaration

  2. Scriplets

  3. Expressions

  4. All the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. Presentation Tag

  2. JSP standard Tag

  3. Custom tags

  4. All the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology mainframe
  1. REXpand Xml

  2. REstructured EXtended EXecutor

  3. Reload EXtended XML

  4. REstructured EXpand XML

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. declarations

  2. scriptlets

  3. expressions

  4. All of the above

Reveal answer Fill a bubble to check yourself
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.