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. <table><tr><td>

  2. <table><tr><tt>

  3. <table><head><tfoot>

  4. <thead><body><tr>

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

The core HTML table structure uses for the table container, for table rows, and for table data cells. Options B and C use incorrect tags like `<tt>` or `/`. Option D incorrectly mixes with `` instead of row/cell tags.

Multiple choice technology web technology
  1. <background img="background.gif">

  2. <img src="background.gif" background />

  3. <body background="background.gif">

  4. < background="background.gif" body>

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

The correct HTML syntax for a background image is ``. The background attribute goes in the body tag. Options A and B use incorrect tag/attribute combinations, and D has malformed syntax with swapped attribute and tag name.

Multiple choice technology web technology
  1. WAP

  2. Web

  3. Mobile

  4. All

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

To answer this question, the user needs to know what WML stands for and what types of browsers can display WML pages.

WML stands for Wireless Markup Language, a markup language used for creating content for mobile devices.

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

A. WAP: This option is partially correct. WAP (Wireless Application Protocol) is a technical standard for accessing information over a mobile wireless network. WML is the markup language used to create content for WAP-enabled devices. Therefore, WML pages can be displayed in a WAP-enabled browser.

B. Web: This option is incorrect. WML pages are not designed for display in a standard web browser. Instead, they are designed for display on mobile devices.

C. Mobile: This option is partially correct. WML pages are designed for display on mobile devices and can be displayed in a browser on a mobile device.

D. All: This option is incorrect. WML pages are not designed for display in a standard web browser, so they cannot be displayed on all types of browsers.

Therefore, the answer is: A. WAP

Multiple choice technology web technology
  1. HTTP

  2. WAP

  3. JAVA

  4. W3c

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

Multiple choice technology web technology
  1. Validate user input

  2. View Error Messages

  3. Generate dialog boxes

  4. None

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

Multiple choice technology web technology
  1. byte code

  2. object code

  3. Hexa code

  4. binary code

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

Multiple choice technology web technology
  1. Map.xml only

  2. page handler only

  3. both map and page handler

  4. None of the above

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

Multiple choice technology web technology
  1. map.xml

  2. web.xml

  3. ps.xml

  4. tag libraries

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

Multiple choice technology web technology
  1. tag libraries

  2. JSP

  3. Servlet

  4. Web.xml

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