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 programming languages
  1. True

  2. False

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

The open method of the XMLHttpRequest object takes the HTTP method as its first argument, and 'POST' is a valid standard HTTP method alongside 'GET'. Therefore, POST requests can indeed be sent using this method by passing 'POST' as the first parameter followed by the target URL.

Multiple choice technology programming languages
  1. When browser is closed

  2. When the page reloads as well.

  3. Only when you navigate out of the page.

  4. All Of the Above

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

The onUnload event fires when a document is unloaded from the browser window. This occurs in three scenarios: when the browser window closes, when the page reloads (including refresh), and when the user navigates away from the page (clicking links, back/forward buttons). Therefore, all listed conditions are correct.

Multiple choice technology programming languages
  1. True

  2. False

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

HTML elements like Form, Select, and Textarea do NOT inherit from Element in the DOM hierarchy. While they are DOM nodes, they inherit from specific interfaces (HTMLFormElement, HTMLSelectElement, etc.) that may or may not extend Element depending on DOM specification.

Multiple choice technology testing
  1. Dws

  2. Dwp

  3. Pwd

  4. Wbp

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

Web Parts in SharePoint use the .dwp (Web Part Package) file extension. These XML files define web part properties and configuration. The .dwp format was used in SharePoint 2003 and 2007, though later versions moved to .webpart files. Option B is correct among the given choices.

Multiple choice technology testing
  1. Site template

  2. Features

  3. List Definition

  4. All the above

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

WSP (SharePoint Solution Package) files are deployment packages that can contain features, site definitions, list templates, web parts, assemblies, and other SharePoint artifacts. They're the standard unit for deploying custom SharePoint components. Option D correctly indicates WSP files are versatile containers for multiple solution types.

Multiple choice technology web technology
  1. Add Tag prefix, Tag name

  2. Add Source, Tag prefix

  3. Add Src, Tagprefix, Tagname

  4. None of these

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

To register a user control in an ASP.NET page, you use the @Register directive with the Source attribute (pointing to the .ascx file) and TagPrefix attribute. The TagName is optional in some contexts but Source and TagPrefix are the essential required elements for proper registration.

Multiple choice technology web technology
  1. 2

  2. 3

  3. 4

  4. None of the above

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

There are three main types of XML parsers: SAX (Simple API for XML) - event-based push parser, DOM (Document Object Model) - tree-based parser, and StAX (Streaming API for XML) - pull parser. Some might also consider character-only parsers, but the three major programming models are SAX, DOM, and StAX.