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. <%– JSP Comment –%>

  2. <!– HTML Comment –>

  3. Both a and b

  4. None of the above

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

JSP supports both JSP-style comments &lt;%-- JSP Comment --%&gt; (which are stripped out before compilation) and standard HTML comments `` (which are sent to the client browser). Thus, both are valid types of comments in JSP development.

Multiple choice technology web technology
  1. Static Content

  2. Dynamic content

  3. Both a and b

  4. None of the above

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

JSP content consists of two types: static content (HTML, plain text that is sent to the browser as-is) and dynamic content (JSP elements, scriptlets, expressions that are executed on the server). Both types are used together in a JSP page.

Multiple choice technology programming languages
  1. <session-config> <session-timeout>10</session-timeout> </session-config>

  2. <session-config> <session-timeout>600</session-timeout> </session-config>

  3. <session-time-config> <session-timeout>600</session-timeout> </session-time-config>

  4. <session-config> <session-invalid-time>60</ session-invalid-time> </session-config>

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

Session timeout in web.xml is specified in MINUTES within the element, not seconds. The value 10 represents 10 minutes, whereas 600 would be 600 minutes (10 hours), which is incorrect for this requirement. The element is the correct parent for session timeout configuration.

Multiple choice technology web technology
  1. <% %>

  2. <%= %>

  3. <%! %>

  4. <!-- -->

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

JSP (JavaServer Pages) uses specific syntax for different types of code: <%= %> for expressions (evaluated and output), <% %> for scriptlets (Java code), and <%! %> for declarations. Expressions enclosed in <%= %> are evaluated at runtime and their result is sent to the output stream.

Multiple choice technology web technology
  1. page

  2. include

  3. taglib

  4. all the above

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

JSP provides three main types of directives: page directive (for page-specific settings like content type, session, imports), include directive (for including files at translation time), and taglib directive (for importing custom tag libraries). Each directive type serves a specific purpose in JSP page configuration and behavior control.

Multiple choice technology web technology
  1. extends

  2. session

  3. import

  4. language

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

The import directive is the only JSP page directive that can be declared multiple times in a single translation unit to import different packages. Other page directives, such as extends, session, or language, define unique page-level attributes and can only be specified once per JSP file.

Multiple choice technology web technology
  1. Tag Library Descriptor

  2. Tag Language Description

  3. Tag Library Description

  4. Tag Language Dynamics

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

TLD stands for Tag Library Descriptor, an XML file that describes a custom tag library in JSP. It contains metadata about the tag library including tag names, attributes, validation rules, and tag handler classes. The descriptor file enables JSP containers to process custom tags correctly by providing the necessary mapping and validation information.

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 in BRMS systems is a comprehensive deployment package containing all necessary artifacts for rule execution. This includes the Business Object Model (BOM), XML representations, the executable XOMs (eXecutable Object Models), their corresponding XML schemas for validation, BOM to XOM mapping files that translate between business and execution models, and engine configuration files. Option C is the most complete and accurate description.

Multiple choice technology web 2.0
  1. xml

  2. xhtml

  3. perl

  4. javascript

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

PHP's syntax is most similar to JavaScript and C-like languages. Both PHP and JavaScript share similar control structures (if/else, loops), function definitions, and statement syntax ending with semicolons. XML and XHTML are markup languages, not programming languages with procedural syntax. Perl is influential but PHP's C-style syntax is closer to JavaScript.

Multiple choice technology web 2.0
  1. false

  2. true

  3. both

  4. none

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

When using the POST method, form variables are sent in the HTTP request body, not displayed in the URL. This provides better security and privacy for sensitive data compared to GET method, which appends variables to the URL. The answer is 'false' because POST does NOT display variables in the URL - that's the defining characteristic of POST vs GET.

Multiple choice technology web technology
  1. True

  2. False

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

XML and HTML serve different purposes. XML is designed for data storage and transport, while HTML is designed for displaying data in web browsers. They complement each other rather than replace.