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
-
Asynchronous JavaScript and XML
-
Asynchronous Java and XML
-
All JavaScript and XML
-
Asynchronous JavaScript and HTML
A
Correct answer
Explanation
AJAX stands for Asynchronous JavaScript and XML. It describes a set of web development techniques that allow web applications to send and retrieve data from a server asynchronously in the background. The other options mistakenly substitute Java for JavaScript, or HTML for XML, or alter the meaning of asynchronous.
-
Standard Generation Markup Language.
-
Software Generalized Markup Language
-
Standard Generalized Markup Language.
-
Software Generation Markup Language
C
Correct answer
Explanation
SGML stands for Standard Generalized Markup Language, a standard for defining markup languages. Option A is incorrect as it uses 'Generation' instead of 'Generalized'. Option B is wrong because SGML is not called 'Software Generalized Markup Language'. Option D is incorrect as it uses 'Generation' instead of 'Generalized'. The correct answer is C.
-
XmlValidatingReader
-
XmlDictionaryReader
-
XmlReader
-
XmlSchemaReader
C
Correct answer
Explanation
XmlReader provides the core functionality for reading XML documents, while XmlValidatingReader specifically validates against schemas. XmlReader alone can validate when used with schema validation enabled, making it the correct choice for XML-schema validation in .NET.
-
@OutputCache
-
@CacheOutput
-
@PageCache
-
@CacheAll
A
Correct answer
Explanation
@OutputCache enables page output caching with support for varying by parameters, headers, and browser type. The directive offers attributes like VaryByParam, VaryByHeader, and VaryByCustom to control cache variations. Options B, C, and D are not valid ASP.NET directives.
-
Extended expressions
-
Regular expressions
-
Irregular expressions
-
Basic expressions
B
Correct answer
Explanation
Regular expressions provide the most robust way to validate complex string patterns like email addresses. They support pattern matching with quantifiers, character classes, anchors, and groups to define intricate validation rules. Options A, C, and D are not standard pattern matching mechanisms in programming.
-
Extensible Markup Language (XML)
-
Hyper text mark up language(HTML)
-
C ++language
-
ASP.net
A
Correct answer
Explanation
WebLogic domain configurations are defined in XML files (notably config.xml). XML provides a structured, hierarchical format for specifying server resources, settings, and deployment parameters. HTML, C++, and ASP.net are not used.
D
Correct answer
Explanation
Knowledge base articles for GFS properties are hosted at http://octanexml. This internal repository serves as the central documentation source for property-related information and procedures within the GFS infrastructure.
B
Correct answer
Explanation
The include directive (<%@ include %>) is processed at translation time (compile-time) and is faster, while the include tag () is processed at request time (runtime) and slower. The question incorrectly claims the tag is more performant. The directive actually provides better performance for static content.
-
Input attribute
-
Name attribute
-
Page attribute
-
Path attribute
D
Correct answer
Explanation
Inside the struts-config.xml file, each Action mapping is uniquely identified by its path attribute, which specifies the request URI that triggers the action. The name attribute links a form bean, and the input attribute defines the error fallback page, meaning they cannot identify the action.
-
Always converts HTML markup to entity equivalents, like <
-
Never converts HTML markup to entity equivalents
-
Converts markup when filter=true
-
Converts markup when markup=false
C
Correct answer
Explanation
The tag in Struts bean library converts HTML markup to entity equivalents (like < becoming <) ONLY when the filter attribute is set to true (option C). When filter is false, markup passes through unchanged. Options A and B are incorrect because the behavior is conditional, not absolute. Option D uses wrong attribute name.
-
Call the reset method if validation fails
-
Set the tag's redisplay property to false
-
Set the tag's reset property to false
-
Use a plain html tag instead
B
Correct answer
Explanation
Setting the redisplay property to false prevents the password from being redisplayed in the form field when validation fails. This is a security best practice to avoid exposing the password value in the HTML source. The reset method is unrelated to password security.
B
Correct answer
Explanation
DOJO is fundamentally a JavaScript toolkit designed to work with HTML and JavaScript. It's a framework for building JavaScript-based web applications and widgets. The statement that DOJO cannot be used with JavaScript/HTML is completely false - that's its entire purpose.
-
form
-
rowSelector
-
field
-
postData
A,D
Correct answer
Explanation
dojo.xhrPost is an AJAX method in the Dojo toolkit that accepts multiple object properties to configure POST requests. The 'form' property accepts a form ID or DOM node to serialize its contents automatically. The 'postData' property allows passing raw data as a string or object directly in the request body. Options B (rowSelector) and C (field) are not valid dojo.xhrPost properties - they may belong to other Dojo widgets or data structures.
A
Correct answer
Explanation
ClearCase allows writing to elements that are checked out. This is the fundamental purpose of checkout in version control - to obtain a writable copy for modification. When you check out an element, you gain the ability to make changes, and those changes are tracked until you check the element back in.
-
<config>
-
<global-exceptions>
-
<controller>
-
<action>
B,C,D
Correct answer
Explanation
Valid elements in struts-config.xml include global-exceptions for exception handling, controller for controller configuration, and action-mappings containing action elements. The config element is not a standard struts-config.xml tag.