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
B
Correct answer
Explanation
WMLScript is part of the WAP (Wireless Application Protocol) specification. WAP was the standard for accessing internet content on early mobile devices before modern smartphones. WMLScript serves as the scripting language component of the WAP ecosystem.
-
confirm()
-
alert()
-
prompt()
-
error()
D
Correct answer
Explanation
The WMLScript Dialog library includes confirm(), alert(), and prompt() for user interactions. The error() function is not part of the Dialogs library - it belongs to other WMLScript libraries or doesn't exist in this context.
-
Validate user input
-
View Error Messages
-
Generate dialog boxes
-
None
D
Correct answer
Explanation
WMLScript is used for all the listed purposes: validating user input on the client side, generating dialog boxes for user interaction, and working with error messages. Since all these are valid uses of WMLScript, 'None' indicates there's nothing WMLScript cannot do among these options.
-
higher
-
lighter
-
stronger
-
not a version of the JavaScript language
B
Correct answer
Explanation
WMLScript is a client-side scripting language used for Wireless Markup Language (WML) pages. It is a 'lighter' version of JavaScript, optimized for low-bandwidth devices and limited processing power in mobile environments.
-
byte code
-
object code
-
Hexa code
-
binary code
A
Correct answer
Explanation
WMLScript is compiled into byte code on the server before transmission to the client device. This compilation process reduces file size and improves execution efficiency on resource-constrained mobile devices. The byte code is then interpreted by the WMLScript virtual machine.
-
display Value
-
EditMode
-
Mandatory
-
Expected
-
Map.xml only
-
page handler only
-
both map and page handler
-
None of the above
C
Correct answer
Explanation
In MVC web frameworks, input and business validations can be configured declaratively via XML mapping files (such as map.xml) or programmatically within the page handler class.
-
map.xml
-
web.xml
-
ps.xml
-
tag libraries
C
Correct answer
Explanation
In PS (PeopleSoft) applications, page handlers are defined in the ps.xml configuration file, which is specific to the PS framework. web.xml is for general servlet configuration, map.xml is for field mappings, and tag libraries are for UI components - none of these define page handlers. The correct answer is C (ps.xml).
-
tag libraries
-
JSP
-
Servlet
-
Web.xml
A
Correct answer
Explanation
Custom JSP tags are defined in tag libraries, which are XML files with a .tld (Tag Library Descriptor) extension. These tag library descriptors contain the tag definitions, including tag names, attributes, and handler classes. The tag library is then referenced in the JSP page or web.xml configuration.
-
eXpendable Mother in Law
-
eXtensible Markup Language
-
eXtended Mobile Language
-
eXtensive Machine Language
B
Correct answer
Explanation
XML is a widely used standard markup language that stands for eXtensible Markup Language, designed to store and transport structured data.
A
Correct answer
Explanation
Custom tags in JSP (JavaServer Pages) are user-defined elements that allow developers to encapsulate reusable functionality. They extend JSP's standard tag library with domain-specific tags, improving code maintainability and reusability.
-
Hyper Text Markup Languauge
-
Hyper Tension Maker Language
-
Hyper Text Makeup Language
-
Hyper Test Markup Language
A
Correct answer
Explanation
HTML stands for HyperText Markup Language, which is the standard language for creating web pages. Note: option A has a typo (Languauge should be Language) but it's still the intended correct answer among the choices.
-
var obj=document.findControl('controlId');
-
var obj=document.getObjectById('controlId');
-
var obj=document.getElementById('controlId');
-
var obj=document.getObject('controlId');
C
Correct answer
Explanation
The standard DOM method to retrieve an HTML element by its ID attribute is document.getElementById(). This returns the element object if found, or null if no element with that ID exists. Options A, B, and D reference non-standard methods that don't exist in the DOM API.
-
One to one
-
One to many
-
Many to one
-
None of the above
B
Correct answer
Explanation
The element in Hibernate mapping is used for collections requiring key-value pair semantics, typically for one-to-many or many-to-many associations where the collection needs to be indexed. While , , and can also map one-to-many relationships, is specifically designed when you need to maintain index-based access to the collection elements.