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

  2. XML

  3. WSDL

  4. UDDI

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

UDDI (Universal Description, Discovery, and Integration) is a directory service for web services, allowing businesses to discover and locate available services. SOAP is the messaging protocol, XML is the data format, and WSDL describes individual service interfaces - but UDDI is specifically for finding services.

Multiple choice technology web technology
  1. XML and SOAP

  2. XML and HTTP

  3. WSDL and UDDI

  4. eb-XML and WSDL

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

To solve this question, the user needs to have basic knowledge of web services and their components.

Web services are a standardized way of exchanging data between different systems over the internet. They are made up of multiple components, each serving a different purpose.

The correct option is:

B. XML and HTTP

Explanation:

Web services typically use the XML (Extensible Markup Language) protocol to format the data being exchanged between systems, and the HTTP (Hypertext Transfer Protocol) protocol to transmit the data over the internet.

Option A is incorrect because SOAP (Simple Object Access Protocol) is a messaging protocol used to exchange structured data between applications. It is often used in conjunction with XML in web services.

Option C is incorrect because WSDL (Web Services Description Language) is an XML-based language used to describe the functionality offered by a web service, while UDDI (Universal Description, Discovery, and Integration) is a platform-independent, XML-based registry for businesses to list their web services.

Option D is incorrect because eb-XML (Electronic Business using eXtensible Markup Language) is a set of modular specifications for conducting business over the internet using XML, while WSDL is a language used to describe web services.

Therefore, the correct answer is:

The Answer is: B. XML and HTTP

Multiple choice technology programming languages
  1. System.Data.OleDb

  2. System.Web

  3. System.Data.xml

  4. System.Data.SqlClient

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

.NET Framework namespace conventions follow specific patterns. System.Data.OleDb and System.Data.SqlClient are valid data provider namespaces. System.Web contains core web functionality. However, System.Data.xml doesn't exist - XML-related classes are in System.Xml or System.Xml.Linq. XML functionality is in System.Xml namespace, not under System.Data.

Multiple choice technology databases
  1. document.write("Hello World")

  2. "Hello World"

  3. response.write("Hello World")

  4. ("Hello World")

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

document.write() is a standard JavaScript method that outputs text directly to the HTML document stream when the page is loading. Option B is merely a string value that doesn't produce output, option C uses the ASP response object (not JavaScript), and option D is just a parenthesized string with no output mechanism.

Multiple choice technology databases
  1. <script type="text/javascript" href="xxx.js">

  2. <script type="text/javascript" src="xxx.js">

  3. <script type="text/javascript" name="xxx.js">

  4. <script type="text/javascript" value="xxx.js">

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

The src attribute of the tag is used to specify the path to an external JavaScript file. Option A incorrectly uses href (which is for <link> tags), option C incorrectly uses name (which is for form elements), and option D incorrectly uses value (which is for input elements). The type attribute was historically required but is now optional.

Multiple choice technology web technology
  1. True

  2. False

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

External JavaScript files should contain only pure JavaScript code without any HTML markup. The tag is an HTML element that belongs only in the HTML document that references the external file. Including <script> tags in an external .js file would cause syntax errors because the browser expects JavaScript, not HTML.

Multiple choice technology databases
  1. <!--This is a comment-->

  2. 'This is a comment

  3. //This is a comment

  4. /*This is a comment */

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

Single-line comments in JavaScript begin with two forward slashes (//). Option A uses HTML comment syntax which doesn't work in JavaScript, option B uses a single quote which is for string literals, and option D shows multi-line comment syntax (which works but isn't the standard single-line approach).

Multiple choice technology web technology
  1. //This comment has ...//

  2. <!--This comment has ...-->

  3. /This comment has .../

  4. <--This comment has ...-->

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

Multi-line comments in JavaScript are enclosed between /* and /. Option A shows single-line syntax, option B uses HTML comment syntax, and option C correctly shows the multi-line comment syntax (though the closing slash is backward in the option text, the pattern /...*/ is correct).

Multiple choice technology web technology
  1. type

  2. message

  3. portType

  4. binding

  5. operations

  6. error messages

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

WSDL defines service structure using types for data structures, messages for communicated data, portTypes (interfaces) for operations, and bindings for protocol specifics. Operations are defined within portTypes, not as separate WSDL components. Error messages are handled through SOAP faults, not WSDL components. The four core elements provide complete service description.

Multiple choice technology programming languages
  1. Multiple word names must be separated with an underscore

  2. Names must be 10 or less characters

  3. Names must contain at least 1 alpha character in any position.

  4. Names must be lower case

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

COBOL requires user-defined names to contain at least one alphabetic character (A-Z). Names can include letters, digits, and hyphens, but cannot be all digits. They must start with a letter, can be up to 30 characters (not 10), and hyphens (not underscores) separate multi-word names. Case is not significant.

Multiple choice technology web technology
  1. DT

  2. LI

  3. DD

  4. DL

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

DL (Definition List) is a two-sided tag that requires both opening

and closing
tags to enclose definition terms and descriptions. While DT, DD, and LI are also container elements that require closing tags in HTML, the question likely frames DL as the primary two-sided tag that defines the list structure itself. Two-sided tags must have matching opening and closing tags.

Multiple choice technology web technology
  1. Quit

  2. Closing

  3. Exit

  4. Anti

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

To solve this question, the user needs to have knowledge of HTML tags and how they are applied in web development.

The correct answer is:

B. Closing

Explanation:

In HTML, tags are used to define elements and their properties. The browser applies the feature of an opening tag until it encounters its corresponding closing tag. The closing tag is indicated by adding a forward slash (/) to the tag name before the closing angle bracket (>). For example, to define a paragraph in HTML, you would use the opening

tag and the closing

tag.

Therefore, option B, Closing, is the correct answer.

Multiple choice technology web technology
  1. Tags

  2. Code

  3. Slashes

  4. Properties

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

HTML tags are the fundamental codes that control how document content appears and is structured. Tags are enclosed in angle brackets and come in pairs (opening and closing) to define elements like headings, paragraphs, and formatting. Code is a broad term not specific to HTML, slashes are just part of tag syntax, and properties are attributes within tags, not the controlling mechanism themselves.

Multiple choice technology web technology
  1. Browser

  2. Editor

  3. Converter

  4. Processor

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

An HTML converter transforms text from other formats (like plain text, Word documents, or Rich Text) into HTML code. Browsers render HTML rather than convert it, editors help write HTML but don't convert between formats, and processor is too vague. Converters are specifically designed for translation between document formats.