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
B
Correct answer
Explanation
StAX (Streaming API for XML) is a pull-based parser where the application controls parsing by requesting events from the parser. This contrasts with SAX which is push-based (parser drives the application). The claimed answer correctly identifies that StAX is not push-based.
-
Methods
-
Properties
-
Objects
-
None of The above
B
Correct answer
Explanation
innerHTML, innerText, outerHTML, and outerText are properties of DOM Element objects, not methods. They are accessed like element.innerHTML (without parentheses), not invoked as functions. Methods would be called with parentheses.
B
Correct answer
Explanation
innerHTML is a property of DOM elements, not a method. It should be accessed as document.getElementById('trial').innerHTML (without parentheses), not innerHTML(). The parentheses would attempt to call it as a function, which is incorrect syntax.
A
Correct answer
Explanation
SLD (System Landscape Directory) adheres to CIM (Common Information Model), the DMTF standard for representing managed system elements in a consistent, vendor-neutral manner. BPEL is for business processes, MIME is for email, and cXML is for e-commerce - none define system landscape modeling.
-
HTML-Based with A Script describing User actions mode
-
HTML-Based with A Script containing explicit URLs only mode
-
URL-Based with Web Custom Request only mode
-
None of the above
A
Correct answer
Explanation
Web Intelligence reports can be saved in various formats including Excel (.xls), PDF (.pdf), CSV, and HTML. The XML format is not a standard export option for WebI reports. The Save As dialog typically shows the supported formats, and .xml is not among the default options.
B
Correct answer
Explanation
innerHTML is a property, not a method. The correct syntax is document.getElementById('trial').innerHTML = 'value' without parentheses. Adding () as if calling a function causes a JavaScript error.
-
Methods
-
Properties
-
Objects
-
None of The above
B
Correct answer
Explanation
In the DOM Level 1 specification, innerHTML, innerText, outerHTML, and outerText are properties of Element objects. They are accessed and assigned like obj.propertyName, not called as methods with parentheses.
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.
B
Correct answer
Explanation
Although the open method of XMLHttpRequest is used to initialize the request and specify the HTTP verb (such as POST or GET), the request is not actually transmitted to the server until the send method is invoked. Therefore, the statement is false.
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.