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
-
That can be used to generate Java classes from an XML schema
-
Can be used to read and write XML using Java classes generated from an XML schema
-
A and B
-
Is used for parsing XML using SAX and DOM
C
Correct answer
Explanation
JAXB provides two-way binding between XML schemas and Java classes. It can generate Java classes from an XML schema through the binding compiler, and these classes can then be used to read (unmarshal) and write (marshal) XML documents. This bidirectional capability makes it useful for both processing and generating XML.
-
The overall structure of the XML message
-
The conventions representing the remote procedure call in the XML message
-
A binding to HTTP
-
The conventions to wrap and send an error back to the seder
-
All of the above
E
Correct answer
Explanation
SOAP is a comprehensive protocol that defines multiple aspects of web service communication. It specifies the XML message structure using an Envelope, establishes conventions for representing remote procedure calls, defines protocol bindings (including HTTP), and provides standardized error handling through Fault elements. All these components work together to enable robust web service communication.
-
An API to produce, consume and manipulate the XML structure for the SOAP message programmatically
-
An API to for XML messaging
-
An API for remote procedure calls
-
All of the above
-
Determine if two XML documents are logically equivalent
-
Digitally encrypt an XML document
-
Digitally sign an XML documents
-
None of the above
A
Correct answer
Explanation
ZUML (ZK User Interface Markup Language) is the XML-based markup language used in ZK framework for defining user interface components. It is ZK's own markup extension, not standard XML, HTML, or XHTML. ZUML allows developers to declare UI components in a declarative manner while embedding Java code and ZK-specific features.
A
Correct answer
Explanation
ZUML files support embedded Java code through zscript () and EL expressions. Developers can write Java code directly in ZUML files using the tag or within component attributes using EL ${...}. This allows business logic and event handlers to be defined declaratively alongside the UI markup, keeping view and logic together.
-
To reference an object using Microsoft Internet Explorer's DOM
-
To retrieve all the objects from the web page
-
To reference a Test Object's properties from the Object Repository
-
To use an Object that does not exist in the Object Repository
-
VB-Script
-
Javascript
-
4G-Test
-
Perl
C
Correct answer
Explanation
SilkTest Classic uses its proprietary 4Test (often written as 4G-Test) scripting language, designed specifically for testing GUI applications. It does not natively use VBScript, Perl, or JavaScript for classic test scripts.
-
SecurityException
-
NotValidPermissionException
-
PermissionNotAllowedException
-
None of above
A
Correct answer
Explanation
When an app calls a protected API without the required permission, Android throws SecurityException at runtime. This is the documented exception type for permission violations in Android's permission model.
-
values
-
layout
-
xml
-
namespace
-
None of above
D
Correct answer
Explanation
R.java is an auto-generated file in Android that contains references to all project resources. It exposes resource types like values (strings, colors, dimensions), layouts, XML resources, drawables, etc. 'namespace' is not a resource type in Android - it's a Java package concept.
-
Document Object Method
-
Document Object Model
-
Descriptive Object Model
-
Descriptive Object Method
B
Correct answer
Explanation
DOM stands for Document Object Model, which is a programming interface for HTML and XML documents. It represents the page as a tree of objects that can be manipulated with programming languages. Document Object Method and Descriptive Object Model are incorrect terms.
-
Data Object Model
-
Document Object Model
-
Derived Object Model
-
None of the above
B
Correct answer
Explanation
The Document Object Model (DOM) is a cross-platform, language-independent interface that treats HTML, XHTML, and XML documents as tree structures. It defines the logical structure of documents and the way they are accessed and manipulated. It is not specific to data alone, nor is it derived from anything.
-
$string =~ s/<*&>//g;
-
$string =~ s/<\s*>//g;
-
$string =~ s/<.*?>//g;
-
$string =~ s/<.*>//g;
D
Correct answer
Explanation
The pattern <.> matches any text enclosed in angle brackets. The * quantifier is greedy by default, matching as much as possible. For nested tags like , <.> matches from the first < to the last >, removing all content between. Option D is the correct greedy regex that deletes all HTML tags.
-
XML columns are used to store XML documents as a hierarchical set of entities
-
Only XQuery can be used to retrieve an XML document from an XML column
-
XML columns must be altered to accommodate additional parent/child relationships if they are used in referential constraints
-
In order to access any portion of an XML document stored in an XML column, the entire document must be retrieved
A
Correct answer
Explanation
XML columns store XML documents natively in their hierarchical structure, preserving the document's entity relationships and organization. DB2 supports multiple retrieval methods including XQuery, SQL/XML functions, and XPath. You can extract portions of XML documents without retrieving the entire document, and XML columns don't require structural alterations for referential constraints as they maintain document integrity internally.
-
< hyperlinkcolumn>
-
< boundcolumns>
-
< asp: headerstyle>
-
< columns>
-
< datagrid>
D
Correct answer
Explanation
(option D) is a valid ASP.NET tag used within DataGrid to define column collections. Option A uses invalid syntax (space in tag name), B incorrectly uses 'boundcolumns', C has a space in the tag name, and E uses lowercase 'datagrid' which is not a standard declarative tag.