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. a. Reference

  2. b. Lookup

  3. c. With

  4. d. Save

  5. e.All of the above

  6. f. None of the above

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

PEGA HTML provides several directives for working with properties: Reference (for reading property values), Lookup ( for searching), With (for context), and Save (for persisting). All of these are valid HTML directives in PEGA for property manipulation.

Multiple choice technology web technology
  1. a. Section

  2. b. HTML fragment

  3. c. Flow Action

  4. d. Harness

  5. e. Property

  6. f. HTML Property

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

Auto-generated HTML is available in Section rules and Flow Action rules. HTML Fragment and Harness rules are manually authored. HTML Property is not auto-generated in the same way - it's a specific rule type for property-level HTML.

Multiple choice technology web technology
  1. a)Custom code will be there.

  2. b) Custom code is removed when Auto Generated HTML check box is checked again.

  3. c) Custom code will be commented when Auto Generated HTML check box is checked again.

  4. d) Cannot check Auto Generated HTML check box once it is unchecked.

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

When the Auto-generated HTML checkbox is re-checked, PRPC regenerates the entire HTML section, replacing any custom code that was added while the checkbox was unchecked. This is by design - auto-generation takes precedence over custom modifications to maintain consistency.

Multiple choice technology web technology
  1. Rule-Form-HTML

  2. Rule-Obj-Validate

  3. Property-Validate method

  4. Page-Validate method

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

Rule-Obj-Validate is the standard Pega rule for validating property values entered through HTML forms. It contains validation logic for individual properties or entire pages. Rule-Form-HTML (A) defines form structure, not validation. Options C and D are methods, not the primary validation mechanism.

Multiple choice technology web technology
  1. Page.User.Identity

  2. Page.User.IsInRole

  3. Page.User.Name

  4. None of the Above

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

Page.User.Identity is correct because it provides the identity information of the authenticated user, including the username. Page.User.IsInRole (B) checks role membership but doesn't return the name, and Page.User.Name (C) is not a valid property. The Identity object contains the Name property that holds the username.

Multiple choice technology web technology
  1. True

  2. False

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

Rule Resolution in Pega does NOT apply to Rule-HTML-Property rules. Rule Resolution is the mechanism that determines which rule to execute when multiple versions exist, but HTML Property rules are resolved by class inheritance and directory structure, not through the Rule Resolution process. Therefore, the statement is False.

Multiple choice technology web technology
  1. Fragments

  2. text files

  3. streams

  4. harnesses

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

Text files in Pega store static content like HTML style sheets, JavaScript code, or other static text that should bypass rule resolution. Fragments, streams, and harnesses are different rule types that serve other purposes - fragments are reusable UI components, streams are for data processing, and harnesses define the overall UI structure.

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.