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. That can be used to generate Java classes from an XML schema

  2. Can be used to read and write XML using Java classes generated from an XML schema

  3. A and B

  4. Is used for parsing XML using SAX and DOM

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. The overall structure of the XML message

  2. The conventions representing the remote procedure call in the XML message

  3. A binding to HTTP

  4. The conventions to wrap and send an error back to the seder

  5. All of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. An API to produce, consume and manipulate the XML structure for the SOAP message programmatically

  2. An API to for XML messaging

  3. An API for remote procedure calls

  4. All of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Multiple choice technology web technology
  1. Determine if two XML documents are logically equivalent

  2. Digitally encrypt an XML document

  3. Digitally sign an XML documents

  4. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Multiple choice technology web technology
  1. ZUML

  2. XML

  3. HTML

  4. XHTML

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology platforms and products
  1. SecurityException

  2. NotValidPermissionException

  3. PermissionNotAllowedException

  4. None of above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology platforms and products
  1. values

  2. layout

  3. xml

  4. namespace

  5. None of above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. Document Object Method

  2. Document Object Model

  3. Descriptive Object Model

  4. Descriptive Object Method

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Data Object Model

  2. Document Object Model

  3. Derived Object Model

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. $string =~ s/<*&>//g;
  2. $string =~ s/<\s*>//g;
  3. $string =~ s/<.*?>//g;
  4. $string =~ s/<.*>//g;
Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. XML columns are used to store XML documents as a hierarchical set of entities

  2. Only XQuery can be used to retrieve an XML document from an XML column

  3. XML columns must be altered to accommodate additional parent/child relationships if they are used in referential constraints

  4. In order to access any portion of an XML document stored in an XML column, the entire document must be retrieved

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. < hyperlinkcolumn>

  2. < boundcolumns>

  3. < asp: headerstyle>

  4. < columns>

  5. < datagrid>

Reveal answer Fill a bubble to check yourself
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.