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 programming languages
  1. True

  2. False

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

XML and HTML serve different purposes and are complementary technologies. XML is for structured data storage and transport, while HTML is for marking up web page content. They can work together (for example, XHTML uses XML syntax to reformulate HTML), but XML was never designed to replace HTML.

Multiple choice technology enterprise content management
  1. True

  2. False

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

Documentum allows adding custom attributes to objects without modifying their type definition. These attributes are stored as name-value pairs on the object instance and do not require schema changes. This flexibility enables object-specific metadata while maintaining type integrity.

Multiple choice technology platforms and products
  1. Client machine

  2. Server

  3. Either 1 or 2

  4. Neither 1 nor 2

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

ASP.NET validator controls can run either on the client (using JavaScript) or on the server. The 'runat=server' attribute makes the control server-side, but many validators including RangeValidator can also generate client-side validation script. The behavior depends on settings like EnableClientScript.

Multiple choice technology web technology
  1. Hello World"

  2. document.write("Hello World")

  3. response.write("Hello World")

  4. ("Hello World")

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

document.write() is the correct JavaScript method to output text content to the HTML document. Option A is incomplete with a syntax error (missing opening quote), Option C uses ASP syntax (response.write), and Option D is just a string in parentheses without any command.

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.