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

  2. Web pages

  3. Application pages

  4. HTML pages

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

HTML documents are commonly referred to as web pages because they are the fundamental documents that make up the World Wide Web. While they are technically HTML documents, 'web page' is the standard term used in web development and general usage.

Multiple choice technology web technology
  1. Definition

  2. Messaage

  3. Types

  4. Port

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

In WSDL, the element is the root element that contains all other WSDL elements. defines data structures, defines XML schema types, and defines specific endpoints.

Multiple choice technology web technology
  1. header

  2. body

  3. fault element

  4. end point url

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

A SOAP message has an optional element for application-specific data, a mandatory element containing the actual message content, and can include a element for error information. Endpoint URLs are configured separately in WSDL.

Multiple choice technology web technology
  1. Yes

  2. No

  3. Both

  4. None of these

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

In web forms, the Page Load event fires before control events like button clicks or selection changes. The page lifecycle processes Page Load first (where initial data binding and setup occur), then processes postback events triggered by user interactions. This sequence is important because event handlers often rely on data or state set during Page Load.

Multiple choice technology web 2.0
  1. xmlhttp=new XMLHttpRequest();

  2. xmlhttp=new XMLHttpRequest("Microsoft.XMLHTTP");

  3. xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");

  4. IE5 and IE6 do not support XMLHttpRequest

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

In Internet Explorer 5 and 6, the XMLHttpRequest object was implemented as an ActiveX control rather than a native JavaScript object. The correct syntax is xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"). Modern browsers use new XMLHttpRequest(), but this doesn't work in IE5/IE6.

Multiple choice technology web 2.0
  1. xmlhttp.get("OPEN","samplePageUrl",true);

  2. xmlhttp.open("GET","samplePageUrl",true);

  3. xmlhttp.post("OPEN","samplePageUrl",true);

  4. xmlhttp.open("POST","samplePageUrl",true);

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

The correct XMLHttpRequest methods are open() with method as first parameter (case-sensitive: "GET" or "POST"), not get() or post(). Options B and D correctly use xmlhttp.open() with proper method names. Options A and C incorrectly use lowercase get()/post() methods and uppercase "OPEN"/"POST" as parameters.

Multiple choice technology web technology
  1. <html:error/>

  2. <html:javaScript>

  3. <html:Validate>

  4. <html:ClientValidate>

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

The tag generates client-side JavaScript validation code based on validation rules defined in the validation framework. It enables automatic client-side validation without requiring developers to write custom JavaScript, though it's often used alongside for displaying messages.

Multiple choice technology web technology
  1. XML imposes important limitations on the receiving program or tool.

  2. The receiving program or tool can use the XML tagging information to determine how to best handle the incoming data.

  3. XML tags offer an extra level of security.

  4. XML tags specify to the receiving program or tool exactly how to format and display the data.

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

XML uses custom, self-describing tags to define data structures. The receiving application parses these tags to interpret the data's semantic meaning and process it accordingly. XML does not specify visual formatting or provide built-in security features.

Multiple choice technology web technology
  1. <servlet-class>

  2. <taglib-url>

  3. <security-constraint>

  4. <init-param>

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

The security-constraint tag in web.xml defines access rules for web resources, specifying URL patterns, HTTP methods, and authorized roles. This is the primary mechanism for declarative security in servlet applications. Option C correctly identifies this tag.

Multiple choice technology
  1. #contents=1

  2. #contents=0

  3. ?contents=0

  4. ?contents=1

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

SharePoint provides a query string parameter to expose WebParts on a page for debugging and management. Appending ?contents=1 to the page URL displays all WebParts in maintenance view, allowing you to see and manage them. The # prefix is incorrect (it's a client-side fragment), and ?contents=0 would hide the view rather than show it.

Multiple choice technology
  1. Onet.XML

  2. Manifest.XML

  3. Feature.XML

  4. Elements.XML

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

In SharePoint solution packages (.wsp files), Manifest.xml is the core file that defines the solution package structure and contents. It lists all features, assemblies, files, and other components included in the solution. Onet.xml, Feature.xml, and Elements.xml are component-level files, not the solution package definition file.