Computer Knowledge

Markup and Web Languages

1,492 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. <config>

  2. <global-exceptions>

  3. <controller>

  4. <action>

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

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

ZK is a server-side framework where ZUML markup and Java code are executed on the server. The framework generates HTML and JavaScript that is sent to the client browser. All business logic, event handling, and component creation happens server-side, with ZK's AJAX engine handling client-server communication seamlessly. This is a fundamental architectural characteristic of ZK.

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 web technology
  1. open-source

  2. Ajax based

  3. written in php

  4. Event driven

  5. written in java

Reveal answer Fill a bubble to check yourself
A,B,D,E Correct answer
Explanation

ZK is a Java-based open-source Ajax framework that uses event-driven architecture. It is NOT written in PHP. ZK enables server-centric UI development with automatic Ajax updates, separating events by desktop and processing them sequentially per desktop.

Multiple choice technology web technology
  1. client centric

  2. Server Centric

  3. Data Centric

  4. Process Centric

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

ZK uses a server-centric approach where all UI logic and event handling execute on the server. The framework automatically handles Ajax communication between browser and server, abstracting away client-side complexity. This differs from client-centric frameworks like GWT or Angular.

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 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.

Multiple choice technology web technology
  1. language

  2. metalanguage

  3. meta

  4. services

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

To solve this question, the user needs to have a basic understanding of XML and its purpose.

XML stands for Extensible Markup Language, and it is a markup language that is used to store and transport data. One of the main features of XML is its ability to define custom markup languages, which are specialized languages used to express complex interactions between clients and services or between the components of a composite service.

Now, let's go through each option and explain why it is right or wrong:

A. language: This option is incorrect. While XML can be used to define custom markup languages, this option is too general and does not specifically relate to the purpose of XML.

B. metalanguage: This option is correct. A metalanguage is a language used to describe another language, and XML is a metalanguage that is used to define custom markup languages. Thus, option B is the correct answer.

C. meta: This option is incorrect. While the term "meta" is often used in the context of XML and custom markup languages, it is not specific enough to fully answer the question.

D. services: This option is incorrect. While services can be involved in the interactions described by custom markup languages, this option is too general and does not specifically relate to the purpose of XML.

The Answer is: B. metalanguage

Multiple choice technology web technology
  1. Render HTML content types

  2. Manage the metadata within a list

  3. Content editor webpart types

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Content types in SharePoint define reusable collections of settings and metadata (columns) that can be applied to list items or documents across lists. They manage metadata structure consistently. Option A is incorrect - content types are not about rendering HTML. Option C is wrong - content editor web part is a specific control, not related to content types.