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
-
XML imposes important limitations on the receiving program or tool.
-
The receiving program or tool can use the XML tagging information to determine how to best handle the incoming data
-
XML tags offer an extra level of security.
-
XML tags specify to the receiving program or tool exactly how to format and display the data.
B
Correct answer
Explanation
XML's tagging structure allows receiving programs to parse and understand data structure without prior knowledge. The tags describe what the data IS, not how to FORMAT or display it (that's XSLT/CSS's job). XML doesn't impose limitations on receivers or add security - its value is in self-describing, structured data exchange.
-
Action not to be taken on the page defined in Page Context
-
Where you can use $Any, $None
-
Action will be taken on the properties of the page defined in Page Context
-
Only used in Declarative rules
C
Correct answer
Explanation
Page Context specifies the specific clipboard page on which a rule or property operates. Actions and validations are performed directly on the properties of the page defined in that context. Distractors incorrectly state it restricts actions, is exclusively for wildcards, or is limited solely to declarative rules.
-
To show XML pages in Display
-
To add HTML Screens in Display
-
For Customizing the Display
-
To display special HTML characters
C
Correct answer
Explanation
An HTML property rule (now known as a Control rule) is used to customize the display of property values on user interface screens, allowing developer-defined custom formatting and behaviors.
-
Use * line *
-
Use * Line *\
-
Use {COMMENT} text {/COMMENT}
-
Use // Comment (Java Style)
-
Show-Page
-
Show – XML
-
Apply-Parse-XML
-
Display – XML
A
Correct answer
Explanation
The Show-Page method is used to display XML-formatted output in Pega. This method sends the current page as XML to the user's browser. Options like Show-XML or Display-XML are not valid Pega methods.
-
Action not to be taken on the page defined in Page Context
-
Where you can use $Any, $None
-
Action will be taken on the properties of the page defined in Page Context
-
Only used in Declarative rules
C
Correct answer
Explanation
Page Context in Pega defines the scope of where an action or rule will apply - specifically, it targets the properties of the page defined in that context. $Any and $None are special page list keywords, not directly related to Page Context definition. Page Context is not limited to declarative rules and can be used in various rule types to specify the target page.
-
To show XML pages in Display
-
To add HTML Screens in Display
-
For Customizing the Display
-
To display special HTML characters
C
Correct answer
Explanation
The HTML property type in Pega is used for customizing display by allowing rich HTML content to be embedded in sections and harnesses. It enables developers to add custom HTML markup, styling, and formatting to enhance the user interface beyond standard property displays. It is not specifically for XML pages, adding HTML screens as separate entities, or just for special HTML characters.
-
Use * line *
-
Use * Line *\
-
Use {COMMENT} text {/COMMENT}
-
Use // Comment (Java Style)
-
Show-Page
-
Show – XML
-
Apply-Parse-XML
-
Display – XML
A
Correct answer
Explanation
The Show-Page method is the standard Pega method for displaying XML-formatted output. It serializes page data into XML format for display or transmission. Options B, C, and D are not valid Pega methods for this purpose.
-
a. Rule-HTML-Harness
-
b. Rule-Harness-HTML
-
c. Rule-Obj-HTML
-
d. Rule-HTML
A
Correct answer
Explanation
In Pega's rule naming convention, Harness rules are named 'Rule-HTML-Harness'. The naming follows the pattern Rule-{Type}-{Specific}. Option A correctly identifies the full rule type name.
-
Show-Page
-
Show – XML
-
Apply-Parse-XML
-
Display – XML
A
Correct answer
Explanation
The Show-Page method in Pega PRPC is used to display a clipboard page in XML format. This is the standard method for viewing page data structured as XML. Apply-Parse-XML is used for parsing XML into clipboard pages (the reverse operation), and Show-XML or Display-XML are not standard Pega methods.
-
Action not to be taken on the page defined in Page Context
-
Where you can use $Any, $None
-
Action will be taken on the properties of the page defined in Page Context
-
Only used in Declarative rules
C
Correct answer
Explanation
Page Context in PRPC rules specifies which page's properties the rule will operate on. It's not about excluding actions (A), not specifically about $Any/$None usage (B), and not limited to declarative rules (D). The Page Context directly targets the property scope.
-
Use * line *
-
Use * Line *\
-
Use {COMMENT} text {/COMMENT}
-
Use // Comment (Java Style)
C
Correct answer
Explanation
Pega HTML rules use a custom comment syntax with curly braces: {COMMENT} text {/COMMENT}. This is not standard HTML (which uses ), but specific to Pega's HTML rule format. The other options show incorrect syntaxes (* line *, // Comment) that aren't valid in Pega HTML.
-
To show XML pages in Display
-
To add HTML Screens in Display
-
For Customizing the Display
-
To display special HTML characters
C
Correct answer
Explanation
In Pega, 'HTML' type properties or rules containing HTML code are primarily used for rendering and customizing the display of user interfaces, screens, and fields, rather than manipulating XML or simply displaying escape characters.