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
-
a. Reference
-
b. Lookup
-
c. With
-
d. Save
-
e.All of the above
-
f. None of the above
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.
-
a. Section
-
b. HTML fragment
-
c. Flow Action
-
d. Harness
-
e. Property
-
f. HTML Property
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.
B
Correct answer
Explanation
Embedded pages in PRPC cannot be nested within other embedded pages due to architectural limitations. The system does not support hierarchical embedding of pages, which prevents potential circular references and maintains predictable page structure.
-
a)Custom code will be there.
-
b) Custom code is removed when Auto Generated HTML check box is checked again.
-
c) Custom code will be commented when Auto Generated HTML check box is checked again.
-
d) Cannot check Auto Generated HTML check box once it is unchecked.
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.
-
Rule-Form-HTML
-
Rule-Obj-Validate
-
Property-Validate method
-
Page-Validate method
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.
-
Page.User.Identity
-
Page.User.IsInRole
-
Page.User.Name
-
None of the Above
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.
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.
-
Fragments
-
text files
-
streams
-
harnesses
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.
-
Rules Inspector
-
Clipboard
-
DB Trace
-
Tracer
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.
-
Integration-Mapping
-
Technical
-
Property
-
none of the above
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.
-
Java
-
ASP.Net
-
Perl
-
All of the above
D
Correct answer
Explanation
XSS vulnerabilities occur when web applications output unvalidated user input to HTML without proper encoding. This can happen in any language (Java, ASP.Net, Perl, PHP, Python, etc.) - it's a web application vulnerability, not language-specific.
-
WADL, WSDL, SAML
-
UDDI, WADL, WSDL
-
SOAP, SAML, WADL
-
WSDL, SOAP, SAML
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.
-
Is a good programming practice
-
Is very useful during code reviews
-
Is the recommended practice for secure code maintenance
-
May give the attacker valuable information to perform an exploit
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.
-
JavaScript
-
VBScript
-
Both of the above
-
None of the above
C
Correct answer
Explanation
The security API provides default codecs for both JavaScript and VBScript to protect against cross-site scripting (XSS) attacks. These are the two most common client-side scripting languages that require encoding to prevent injection vulnerabilities.
-
isSafeHTML(java.lang.String context, java.lang.String input, boolean allowNull) and encodeForHTML(java.lang.String input)
-
isSafeHTML(java.lang.String context, java.lang.String input)
-
SafeHTML(java.lang.String context, java.lang.String input)
-
ValidHTML(java.lang.String context, java.lang.String input)
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.