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
-
?
-
xml=”version”
-
encode=”utf-8”
-
None of the above
C
Correct answer
Explanation
In the XML declaration , the encoding attribute is optional (defaults to UTF-8). The version attribute is mandatory, but encoding can be omitted.
B
Correct answer
Explanation
HTML5 provides both audio and video elements for media playback. The element handles sound files while the element handles video content with optional captions and tracks. Therefore the statement that HTML5 has only audio elements is false.
A
Correct answer
Explanation
Although modern web browsers have exceptionally high compatibility with HTML5, none implement 100% of all HTML5 specifications, experimental features, and peripheral APIs. Therefore, the statement remains true, as full, comprehensive compliance across every detail has not been fully achieved by any single browser.
A,C
Correct answer
Explanation
HTML5 standardizes support for three audio formats in the `` element: MP3, Wav, and Ogg. While AAC is supported by many modern browsers, MP3 and Wav are the officially recognized standard options listed here, whereas AIFF is not standard. Thus, MP3 and Wav are correct.
-
Ogg
-
WebM
-
MPEG 4
-
HTML5 doesn't have video elements
A,B,C
Correct answer
Explanation
HTML5 officially supports three video formats for the `` element: MP4 (MPEG 4 with H.264 video and AAC audio), WebM (with VP8/VP9 video and Vorbis/Opus audio), and Ogg (with Theora video and Vorbis audio). The claim that HTML5 lacks video elements is false.
B
Correct answer
Explanation
HTML5 became an official W3C Recommendation in October 2014. The statement is false because HTML5 is indeed a W3C recommendation - it completed the standardization process and is now a formal web standard.
A
Correct answer
Explanation
The `` element is only a container for graphics and has no drawing capabilities of its own. It requires JavaScript to access the rendering context and perform drawing operations like rendering shapes, paths, text, or images. Therefore, the statement is true.
-
web_reg_save_param
-
web_set_max_html_param_len
-
lr_get_attrib_string
-
lr_check_text
-
web_reg_find
E
Correct answer
Explanation
web_reg_find is the LoadRunner function used for text validation - it checks whether a specific text string exists in the server response. web_reg_save_param is for correlation, lr_get_attrib_string gets parameter attributes, lr_check_text doesn't exist in LoadRunner.
-
[Bindable]
-
[DefaultProperty]
-
[DataBinding]
-
[AutoUpdate]
A
Correct answer
Explanation
In Adobe Flex, the [Bindable] metadata tag is used to mark a variable or property as eligible for data binding. When a property is marked as bindable, it can be used as the source or destination in data binding expressions, and changes to the property will automatically update bound destinations.
B
Correct answer
Explanation
A document view template is typically designed and associated with a specific object type or document type. It defines how that particular type of document should be displayed, what fields are visible, how they're arranged, and what actions are available. While you might be able to apply the same template to similar object types, the fundamental association is one-to-one between template and object type for proper rendering and data binding.
-
<?php>...</?>
-
<?php…?>
-
<script>...</script>
-
<&>...</&>
B
Correct answer
Explanation
PHP server-side scripts are enclosed in delimiters, which tell the PHP processor to interpret the code between them as PHP. Option A incorrectly uses and ?>, option C shows HTML script tags used for JavaScript, and option D shows invalid syntax.
-
web.xml
-
AS.xml
-
PS.xml
-
AC.xml
B
Correct answer
Explanation
The PS Framework requires exactly one ps.xml configuration file per application to define page flows, task mappings, and controller associations. Having multiple configuration files would create ambiguity and conflicts in the framework's routing logic.
-
Only one
-
More than one
-
Zero
-
None of the above
B
Correct answer
Explanation
The PS Framework allows multiple pages to be defined under a single task in ps.xml, supporting complex workflows and navigation scenarios. Restricting to one page would severely limit the framework's ability to handle multi-page user interactions within a task.
-
Parsing JSP using an XML Parser.
-
Converting JSP into static Html content.
-
Generating Servlet Code for the Jsp
-
none
C
Correct answer
Explanation
JSP translation is the process where the web container converts JSP pages into Java Servlet source code. This happens automatically - the first time a JSP is accessed, it's translated to a Servlet, compiled to bytecode, and then executed. Subsequent requests use the compiled Servlet directly. Options A and B describe parsing or static content generation, not the translation process.