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. <script name="xxx.js">

  2. <script href="xxx.js">

  3. <script src="xxx.js">

  4. <link src="xxx.js">

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

The tag uses the src attribute to reference external JavaScript files. Option A incorrectly uses 'name' which is not the correct attribute, Option B uses 'href' which is for <link> tags, and Option D uses the <link> tag which is for CSS files, not JavaScript.

Multiple choice technology testing
  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 in production code can reveal implementation details, debugging information, database structure, or security vulnerabilities to attackers. This is not secure coding practice. Comments should be removed or minimized before deployment.

Multiple choice technology programming languages
  1. a,f,g,b

  2. a,g,b

  3. a,b,c,d,e,f

  4. c,a,f,g,b

  5. e,a,f,g,b

  6. d,a,f,g,b

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

The correct sequence for integrating the Struts validator framework is: c) include validation plug-ins in struts-config.xml, a) copy validation.xml and validator-rules.xml to web-inf, f) include the required form in formset tag in validation.xml, g) include required fields in form tag, b) add errors in resource bundle for messages.

Multiple choice technology
  1. BOM, java XOM, vocabulary, engine conf

  2. BOM, XML, java XOMs, BOM to XOM mapping files

  3. BOM, XML, XOMs and the related XML schemas, BOM to XOM mapping files, engine conf

  4. none of the above

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

A ruleset archive packages all elements needed for deployment: the Business Object Model (BOM) defining the rule vocabulary, the XML representation of rules and parameters, the Java executable object model (XOM) with related XML schemas, BOM-to-XOM mapping files for translation, and the engine configuration settings. This ensures the rule execution server has everything required.

Multiple choice technology security
  1. cross site scrpting

  2. X site scrpting

  3. spread sheet

  4. Excel site scrpting

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

XSS (Cross-Site Scripting) is a security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. The 'cross site' part refers to the exploit spanning across different sites or contexts. It's a common web security issue that targets user input validation.

Multiple choice technology programming languages
  1. XML imposes important limitations on the receiving program or tool.

  2. The receiving program or tool can use the XML tagging information to determine how to best handle the incoming data

  3. XML tags offer an extra level of security.

  4. XML tags specify to the receiving program or tool exactly how to format and display the data.

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Action not to be taken on the page defined in Page Context

  2. Where you can use $Any, $None
  3. Action will be taken on the properties of the page defined in Page Context

  4. Only used in Declarative rules

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  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

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.

Multiple choice technology web technology
  1. Action not to be taken on the page defined in Page Context

  2. Where you can use $Any, $None
  3. Action will be taken on the properties of the page defined in Page Context

  4. Only used in Declarative rules

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  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

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.