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
-
all
-
persist
-
delete
-
All the above
D
Correct answer
Explanation
The cascade attribute in Hibernate mapping accepts 'all', 'persist', 'delete', and other operations like 'merge', 'save-update', 'evict', 'replicate', 'refresh', and 'delete-orphan'. These determine which operations cascade from parent to child entities.
-
Hyper Text Markup Language
-
Home Tool Markup Language
-
Hyperlinks and Text Markup Language
-
Hyper Tool Markup Language
A
Correct answer
Explanation
HTML stands for Hyper Text Markup Language. It is the standard markup language for creating web pages. 'Hyper Text' refers to the cross-linking of documents, 'Markup' indicates the tags that define elements, and 'Language' identifies it as a coding system for web content structure.
-
None of the above
-
location
-
exception-type
-
error-page
D
Correct answer
Explanation
In the web deployment descriptor (web.xml), the `` tag is used to map specific HTTP status codes or Java exception types to custom error handling pages.
-
It defines the standard tag that works the same everywhere
-
It is a single library and we can use it in multiple jsp containers
-
It has support for the common structural tasks like iteration and condition
-
All of the above
D
Correct answer
Explanation
JSP Tag Libraries (JSTL - JSP Standard Tag Library) define standard tags that work consistently across different JSP containers, are portable as single libraries usable in multiple containers, and provide built-in support for common structural patterns like iteration and conditional logic.
-
<% code fragment %>
-
<%= expressions %>
-
<%! Declarations %>
-
<%-- comment -- %>
D
Correct answer
Explanation
JSP comments are written using the <%-- comment --%> syntax. These comments are ignored by the JSP engine and are not sent to the client browser, unlike standard HTML comments or other JSP tags.
-
readOnly==
-
dynamic
-
static==
-
None of the above
C
Correct answer
Explanation
The <%@ include file="..." %> directive includes a static file at translation time. The content is inserted into the JSP page when it is compiled into a Servlet, making it a static include rather than a runtime (dynamic) include.
-
AirthmaticFormat
-
CurrencyFormat
-
NumberFormat ==
-
StringBuffer
C
Correct answer
Explanation
To solve this question, the user needs to know what class can be used for formatting money on a JSP page.
The correct answer is:
C. NumberFormat
Option C is correct because the NumberFormat class is used for formatting numbers, including currency values. It provides methods for formatting numbers into strings that can be displayed on a JSP page. The CurrencyFormat class does not exist in Java and AirthmaticFormat and StringBuffer are not used for formatting currency values.
Therefore, the answer is: C. NumberFormat.
-
<%= expressions %>
-
<% code fragment %
-
<%! Declarations %>
-
<%-- comment -- %>
B
Correct answer
Explanation
The <% code fragment %> tag (scriptlet) contains Java code fragments that are valid in the page scripting language. This code is placed in the _jspService() method of the generated Servlet and executes during request processing.
D
Correct answer
Explanation
In ASP, server-side code is represented using <% and %> delimiters, often written as <%%> to denote the opening and closing tags together. Options A, B, and C use incorrect syntax that would not be recognized by the ASP engine.
A
Correct answer
Explanation
Perl's most popular use historically was CGI scripting for dynamic web page generation. Before modern frameworks, Perl powered millions of dynamic websites through its powerful text processing capabilities.
-
RPC/encoded
-
RPC/document
-
RPC/literal
-
Document/encoded
-
Document/literal,
A,C,D,E
Correct answer
Explanation
WSDL defines five valid SOAP binding style/use combinations. Document/literal and RPC/literal are WS-I compliant and recommended. RPC/encoded was common in early SOAP but is now deprecated. Document/encoded is technically valid though rarely used. RPC/document is not a standard WSDL combination.
-
Header
-
Envelope
-
Body
-
Fault is the Root Element
-
None of the above
C
Correct answer
Explanation
According to SOAP specification, a Fault element must appear within the Body element of the SOAP message. It cannot be in Header, Envelope (the root), or be a root element itself. The Fault element carries error or fault information from the endpoint.
-
1) A SOAP message MUST NOT use the SOAP Encoding namespace
-
1) A SOAP message MUST use the SOAP Envelope namespace
-
2) A SOAP message MUST contain XML Processing Instructions
-
2) A SOAP message MUST NOT contain a DTD reference
B,D
Correct answer
Explanation
SOAP messages MUST use the SOAP Envelope namespace (xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/') as it defines the message structure. They MUST NOT contain DTD references because SOAP is designed to work with XML parsers that may not validate against DTDs. SOAP Encoding namespace is optional (used with rpc/encoded style).
A
Correct answer
Explanation
Oracle 9i Reports uses JSP (JavaServer Pages) technology to embed reports directly into web pages, enabling dynamic report generation within web applications. ASP is Microsoft's technology, CSS is for styling, and HTML is the markup language itself. JSP allows seamless integration of Oracle reports with Java-based web infrastructure.
-
web_reg_save_param
-
. lr_set_debug
-
lr_think_time()
-
None of the above
A
Correct answer
Explanation
web_reg_save_param is the LoadRunner function (in web Vuser scripts) that captures and saves dynamic values from server responses into parameters. These parameters can then be used in subsequent requests. lr_set_debug is for debugging settings, lr_think_time simulates user think time.