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. Import

  2. Include

  3. Substitute

  4. None of the above

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

The include directive in JSP allows static content substitution at translation time (when the JSP is converted to a servlet). This is different from the include action which happens at runtime. The directive syntax is <%@ include file="..." %>

Multiple choice technology testing
  1. EMAIL_FORMAT

  2. EMAIL_FORM

  3. MAIL_FORMAT

  4. QC_MAIL_FORMAT

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

Quality Center uses the MAIL_FORMAT parameter in Site Configuration to control whether emails are sent as HTML or plain text. This setting allows administrators to choose the email format that best suits their organization's needs. The parameter is specifically named MAIL_FORMAT, not EMAIL_FORMAT or other variants.

Multiple choice technology web 2.0
  1. Scripting is separated from the HTML, Code is interpreted seperately

  2. Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server

  3. Code is separated from the HTML and interpreted Code is interpreted separately

  4. No difference

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

ASP.NET separates server-side code from HTML and compiles it into DLLs that execute on the server, while classic ASP interprets code at runtime without compilation. This compiled architecture provides significantly better performance and type safety. The DLL-based execution is a fundamental improvement over classic ASP's interpreted model.

Multiple choice technology web 2.0
  1. .asmx

  2. .asp

  3. .aspx

  4. .ascx

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

ASP.NET user controls use the .ascx file extension, which distinguishes them from regular .aspx pages and other web file types. User controls are reusable components that can be embedded across multiple pages. The .asmx extension is for web services, .asp is for classic ASP, and .aspx is for standard ASP.NET pages.

Multiple choice technology web technology
  1. ISO – 8859 -1

  2. ISO – 8860 – 1

  3. UTF – 8

  4. UTF – 16

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

UTF-8 is the default encoding for JAXB marshalling as it's the most widely supported Unicode encoding that can represent any character. ISO-8859-1 only supports Western European languages, and ISO-8860-1 is not a valid standard.

Multiple choice technology web technology
  1. Null Point Exception at run time

  2. Compilation error

  3. Program terminates without warning

  4. A JAXBElement object is provided

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

When XML element information cannot be inferred from the Java representation (such as when element names or type information would be lost), JAXB provides a JAXBElement object to preserve this metadata.

Multiple choice technology web technology
  1. Unmarshall the XML Document

  2. Process( Access or Modify) the XML content tree

  3. Compile the JAXB classes

  4. Validate XML Content tree

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

Compiling JAXB classes is a compile-time operation using the xjc tool, not a runtime operation. Runtime operations include unmarshalling, processing the content tree, and validation - all happen after the classes are compiled.

Multiple choice technology web technology
  1. The overall structure of the XML message

  2. The conventions representing the remote procedure call in the XML message

  3. A binding to HTTP

  4. The conventions to wrap and send an error back to the seder

  5. All of the above

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

SOAP (Simple Object Access Protocol) is a protocol specification that defines the XML message structure, RPC conventions, HTTP bindings, and error handling (faults). Thus, all of the individual options are correct, making 'All of the above' the right choice.

Multiple choice technology web technology
  1. Digitally sign an XML document

  2. Include a signature using the senders private key in the XML

  3. Is used for non-repudiation

  4. 1 & 2

  5. All of the above

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

XML Digital Signature specifies how to embed digital signatures within XML documents using the sender's private key, enabling authentication and non-repudiation. It supports signing entire documents or specific elements. All three functions (signing, using private keys, non-repudiation) are correct use cases, making E the right answer.

Multiple choice technology web technology
  1. Extend SSL for XML

  2. Encrypt specific elements or a complete XML document.

  3. Encrypts XML using a public key that can only be decrypted with a secret private key

  4. B and C

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

XML Encryption specification enables encrypting specific XML elements or entire documents using symmetric or asymmetric cryptography. It does not extend SSL (that's option A, incorrect). It supports both element-level and document-level encryption (B), and public key encryption where only the holder of the private key can decrypt (C). Thus D is correct.