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 web technology
  1. Rules Inspector

  2. Clipboard

  3. DB Trace

  4. Tracer

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

Rules Inspector is the debugging tool that shows HTML structure and embedded properties in the UI. Clipboard shows data pages, DB Trace is for database performance, and Tracer is for execution flow - none of these show HTML/properties like Rules Inspector does.

Multiple choice technology web technology
  1. Integration-Mapping

  2. Technical

  3. Property

  4. none of the above

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

Parse XML rules in PRPC are categorized under Integration-Mapping rules, which handle data transformation and mapping between external systems and PRPC. They are not Technical, Property, or any other rule category.

Multiple choice technology security
  1. WADL, WSDL, SAML

  2. UDDI, WADL, WSDL

  3. SOAP, SAML, WADL

  4. WSDL, SOAP, SAML

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

WSDL (Web Services Description Language) describes the service interface, SOAP (Simple Object Access Protocol) is the messaging protocol, and SAML (Security Assertion Markup Language) handles authentication/authorization in web services. Together these form a comprehensive web services stack: messaging (SOAP), description (WSDL), and security (SAML). WADL is for REST services, not SOAP.

Multiple choice technology security
  1. Is a good programming practice

  2. Is very useful during code reviews

  3. Is the recommended practice for secure code maintenance

  4. May give the attacker valuable information to perform an exploit

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

HTML comments can reveal sensitive information like server versions, file paths, developer names, or debug instructions that help attackers. Comments are sent to the client and visible in view source. Good practice (A) would be removing them before production deployment.

Multiple choice technology security
  1. isSafeHTML(java.lang.String context, java.lang.String input, boolean allowNull) and encodeForHTML(java.lang.String input)

  2. isSafeHTML(java.lang.String context, java.lang.String input)

  3. SafeHTML(java.lang.String context, java.lang.String input)

  4. ValidHTML(java.lang.String context, java.lang.String input)

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

isSafeHTML validates whether HTML content is safe from XSS attacks by checking for dangerous tags and attributes. encodeForHTML converts special characters like < and > to their HTML entity equivalents (<, >), preventing them from being interpreted as code. Together they provide comprehensive XSS protection.

Multiple choice technology security
  1. isSafeHTML(java.lang.String context, java.lang.String input, boolean allowNull) and encodeForHTML(java.lang.String input)

  2. isSafeHTML(java.lang.String context, java.lang.String input)

  3. SafeHTML(java.lang.String context, java.lang.String input)

  4. ValidHTML(java.lang.String context, java.lang.String input)

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

To prevent XSS, TCS SAPI uses both isSafeHTML() to validate input and encodeForHTML() to encode it. Validation alone is insufficient - encoding is necessary to neutralize malicious scripts. The correct option A includes both prevention methods.

Multiple choice technology security
  1. JavaScript

  2. VBScript

  3. Both of the above

  4. None of the above

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

The security API includes default scripting codecs for both JavaScript (JavaScriptCodec) and VBScript (VBScriptCodec). These codecs encode user-supplied data specifically for execution within client-side script contexts, preventing cross-site scripting (XSS) attacks by neutralising script-specific characters before output rendering.

Multiple choice technology security
  1. isSafeHTML(java.lang.String context, java.lang.String input, boolean allowNull) and encodeForHTML(java.lang.String input)

  2. isSafeHTML(java.lang.String context, java.lang.String input)

  3. SafeHTML(java.lang.String context, java.lang.String input)

  4. ValidHTML(java.lang.String context, java.lang.String input)

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

The TCS SAPI provides isSafeHTML() and encodeForHTML() methods to prevent Cross Site Scripting (XSS) attacks. The isSafeHTML() method validates HTML content against a context to ensure it's safe, while encodeForHTML() encodes potentially dangerous characters to prevent script injection. Using these methods together provides comprehensive XSS protection.

Multiple choice technology web technology
  1. Home Tool Markup Language

  2. Hyperlinks and Text Markup Language

  3. Hyper Text Markup Language

  4. None

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

HTML stands for Hyper Text Markup Language. It's the standard markup language for creating web pages. Option A is incorrect, and B incorrectly states 'Hyperlinks' instead of 'Hyper Text'.