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
-
Import
-
Include
-
Substitute
-
None of the above
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="..." %>
-
<FORM METHOD="POST|GET" ACTION="application_URI/JSP_URL"></FORM>
-
<FORM METHOD="POST|GET" ACTION="application_SERVLET/JSP_URL"></FORM>
-
<FORM METHOD="POST|GET" ACTION="application_URI/SERVLET_URL"></FORM>
-
<FORM METHOD="POST|GET" ACTION="application_SERVLET_URI/JSP_URL"></FORM>
A
Correct answer
Explanation
The session attribute of the JSP Page directive defaults to 'true', which means session tracking is automatically enabled. Setting it to 'false' disables session creation for that page, useful for stateless pages to improve performance.
-
EMAIL_FORMAT
-
EMAIL_FORM
-
MAIL_FORMAT
-
QC_MAIL_FORMAT
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.
-
Scripting is separated from the HTML, Code is interpreted seperately
-
Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server
-
Code is separated from the HTML and interpreted Code is interpreted separately
-
No difference
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.
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.
-
Java Instances
-
Java Objects
-
XML tags
-
Java Interfaces
B
Correct answer
Explanation
JAXB unmarshalling converts XML documents into Java Objects (not instances or interfaces). This is the reverse of marshalling where Java Objects are serialized to XML.
-
ISO – 8859 -1
-
ISO – 8860 – 1
-
UTF – 8
-
UTF – 16
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.
D
Correct answer
Explanation
The xsd:base64binary type maps to byte[] in Java because base64 represents binary data. A single byte would only hold one byte of data, not the full array.
-
Null Point Exception at run time
-
Compilation error
-
Program terminates without warning
-
A JAXBElement object is provided
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.
-
Unmarshall the XML Document
-
Process( Access or Modify) the XML content tree
-
Compile the JAXB classes
-
Validate XML Content tree
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.
-
The overall structure of the XML message
-
The conventions representing the remote procedure call in the XML message
-
A binding to HTTP
-
The conventions to wrap and send an error back to the seder
-
All of the above
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.
-
Digitally encrypt an XML document
-
Determine if two XML documents are logically equivalent
-
Digitally sign an XML documents
-
None of the above
-
Digitally sign an XML document
-
Include a signature using the senders private key in the XML
-
Is used for non-repudiation
-
1 & 2
-
All of the above
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.
-
Extend SSL for XML
-
Encrypt specific elements or a complete XML document.
-
Encrypts XML using a public key that can only be decrypted with a secret private key
-
B and C
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.