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

  2. decks

  3. facets

  4. faces

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

In XML Schema terminology, restrictions on XML elements are called facets. Facets define constraints on data types, such as length, patterns, min/max values, etc. They allow fine-grained control over what values are acceptable for elements and attributes.

Multiple choice technology programming languages
  1. empty elements

  2. elements that contain only other elements

  3. elements that contain only text

  4. elements that contain only numbers

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

In XML Schema, the three types of complex elements are: empty elements, elements that contain only other elements, and elements that contain only text (mixed content). 'Elements that contain only numbers' is not a distinct category - numeric content would fall under 'elements that contain only text' with a numeric data type.

Multiple choice technology programming languages
  1. FALSE

  2. TRUE

  3. NOT ALWAYS

  4. NONE OF THESE

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

In database systems and object-oriented programming, attributes or fields can be assigned default values that are automatically used when no explicit value is provided during record creation or object instantiation. This is a fundamental feature that ensures data integrity and prevents null values.

Multiple choice technology web technology
  1. Directives , Declarations , Scriptlets , Comments , Expressions

  2. Directives , Scopes , Scriptlets , Comments , Expressions

  3. Directives , Declarations , Scriptlets , Comments , Objects

  4. Directives , Tags , Scriptlets , Comments , Expressions

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

JSP 1.0 specification defines five main tag types: Directives (page, include, taglib), Declarations (declare variables/methods), Scriptlets (Java code blocks), Comments (hidden notes), and Expressions (output values). These form the foundation of JSP programming.

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