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

  2. dtd file

  3. xsl file

  4. Both 1 and 2

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

Parameter entities are a feature of DTD (Document Type Definition) syntax and can only appear within DTD files. They are defined with % and used for modular DTD construction. XML files themselves cannot contain parameter entity declarations - only general entities. XSL files use a different syntax altogether.

Multiple choice technology programming languages
  1. eXtra Modern Link

  2. eXtensible Markup Language

  3. Example Markup Language

  4. X-Markup Language

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

XML stands for eXtensible Markup Language. It was designed to be both human-readable and machine-readable, allowing users to define their own tags (hence 'extensible'). The other options are made-up acronyms that have never been associated with XML.

Multiple choice technology storage
  1. Skeleton of the original report

  2. compiled XML file

  3. Plain XML file with data

  4. Report Template file structure

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

JRXML files are source XML files containing the report template structure and layout definition. They serve as the blueprint that gets compiled into .jasper files and do not contain actual report data.

Multiple choice technology programming languages
  1. <%@ page type ="image/svg"%>

  2. <%@ page mimetype="image/svg" %>

  3. <% page language="image/svg" %>

  4. <% page contentType="image/svg" %>

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

The contentType attribute of the page directive defines the MIME type of the HTTP response. While the option contains a minor syntax typo (missing the @ character in the directive prefix), it correctly identifies contentType as the appropriate attribute, whereas type, mimetype, and language are invalid attributes.

Multiple choice technology programming languages
  1. You can only disable scripting at the application level

  2. You can disable scripting via DD by using <scripting-invalid> element

  3. You can disable scripting via DD

  4. You can disable scripting programmatically by using the isScriptingEnabled page directive attribute

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

Scripting elements can be disabled at the application level using the element in the deployment descriptor (web.xml). They cannot be disabled programmatically via page directive - the isScriptingEnabled attribute does not exist for this purpose.

Multiple choice technology programming languages
  1. A tag file may be placed in any subdirectory of WEB-INF

  2. A tag file may NOT be placed in a JAR file in the WEB-INF/lib directory

  3. A tag file must have the file extension of .tag or .tagx

  4. A TLD file must be used to map the symbolic tag name to the actual tag file

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

Under the JSP specification, tag files must end with either .tag or .tagx extensions. Distractors are incorrect because tag files are restricted to /WEB-INF/tags/ or /META-INF/tags/ inside JARs, can indeed be packaged in JAR files, and do not strictly require a TLD for mapping.

Multiple choice technology programming languages
  1. HTTP Basic Authentication

  2. Form Based Authentication

  3. HTTP Digest based Authentication

  4. HTTPS Client Authentication

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

Form-based authentication requires a specific HTML form with action j_security_check, username field j_username, and password field j_password. The container requires this exact HTML structure to handle the authentication process. Basic, Digest, and Client Certificate authentication use HTTP headers or SSL certificates - they don't require application-provided HTML forms with specific action attributes.

Multiple choice technology programming languages
  1. World Wide Web Consortium

  2. SWIFT

  3. Sun

  4. SAP

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

XML Schema (XSD) was developed and is maintained by the World Wide Web Consortium (W3C), the same organization that standardizes XML, HTML, and other web technologies. It is not developed by SWIFT (a financial messaging network), Sun (now Oracle, a tech company), or SAP (enterprise software).

Multiple choice technology programming languages
  1. Document Generation

  2. Code Generation

  3. Both 1 and 2

  4. None of the above

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

XML Schema serves two key purposes: document generation (creating valid XML instances from the schema definition) and code generation (generating programming language classes or data bindings from the schema). Tools use schemas to produce XML documents or generate code in languages like Java, C#, or Python that conform to the schema structure.

Multiple choice technology programming languages
  1. <?xml version="1.0" encoding="utf-8">

  2. <?xml version="1.0"/>

  3. <xml version="1.0" encoding="utf-8">

  4. <?xml version="1.0"?>

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

The correct XML declaration is . This is the standard first line in any XML document, including XML Schema documents. Option A is missing the closing question mark, Option B has incorrect syntax with encoding attribute malformed, and Option C uses instead of the processing instruction syntax xml.

Multiple choice technology platforms and products
  1. Show-Page

  2. Show – XML

  3. Apply-Parse-XML

  4. Display – XML

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

The Show-Page method is the standard PEGA function for displaying pages including XML-formatted content. It renders the specified HTML or XML stream to the user interface. The other options (Show-XML, Apply-Parse-XML, Display-XML) are not valid standard PEGA methods for this purpose.

Multiple choice technology platforms and products
  1. To show XML pages in Display

  2. To add HTML Screens in Display

  3. For Customizing the Display

  4. To display special HTML characters

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

In Pega, HTML properties (now known as Control rules) are used to format and customize how property values are displayed or entered on a user interface, allowing developers to customize presentation and behavior.