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
-
Script pages
-
Web pages
-
Application pages
-
HTML pages
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.
-
Keep with previous property
-
Lot of objects to be displayed
-
Complex conditions applied
-
Large XML data
-
Both A and C
-
Definition
-
Messaage
-
Types
-
Port
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.
B
Correct answer
Explanation
In a SOAP message structure, the Soap Body is a mandatory element containing the actual XML data sent to the service receiver. Only the Soap Header is optional.
-
header
-
body
-
fault element
-
end point url
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.
-
Bindings
-
end Point
-
Service
-
Message
C
Correct answer
Explanation
In WSDL, the element contains one or more elements, each of which specifies the actual endpoint URL where the web service can be accessed. define protocol details and defines data structures.
-
Yes
-
No
-
Both
-
None of these
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.
-
xmlhttp=new XMLHttpRequest();
-
xmlhttp=new XMLHttpRequest("Microsoft.XMLHTTP");
-
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
-
IE5 and IE6 do not support XMLHttpRequest
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.
-
xmlhttp.get("OPEN","samplePageUrl",true);
-
xmlhttp.open("GET","samplePageUrl",true);
-
xmlhttp.post("OPEN","samplePageUrl",true);
-
xmlhttp.open("POST","samplePageUrl",true);
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.
-
<html:error/>
-
<html:javaScript>
-
<html:Validate>
-
<html:ClientValidate>
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.
-
XML imposes important limitations on the receiving program or tool.
-
The receiving program or tool can use the XML tagging information to determine how to best handle the incoming data.
-
XML tags offer an extra level of security.
-
XML tags specify to the receiving program or tool exactly how to format and display the data.
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.
-
<servlet-class>
-
<taglib-url>
-
<security-constraint>
-
<init-param>
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.
-
#contents=1
-
#contents=0
-
?contents=0
-
?contents=1
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.
-
Onet.XML
-
Manifest.XML
-
Feature.XML
-
Elements.XML
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.