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
-
eXpendable Mother in Law
-
eXtensible Markup Language
-
eXtended Mobile Language
-
eXtensive Machine Language
B
Correct answer
Explanation
XML is a widely used standard markup language that stands for eXtensible Markup Language, designed to store and transport structured data.
A
Correct answer
Explanation
Custom tags in JSP (JavaServer Pages) are user-defined elements that allow developers to encapsulate reusable functionality. They extend JSP's standard tag library with domain-specific tags, improving code maintainability and reusability.
-
Hyper Text Markup Languauge
-
Hyper Tension Maker Language
-
Hyper Text Makeup Language
-
Hyper Test Markup Language
A
Correct answer
Explanation
HTML stands for HyperText Markup Language, which is the standard language for creating web pages. Note: option A has a typo (Languauge should be Language) but it's still the intended correct answer among the choices.
-
var obj=document.findControl('controlId');
-
var obj=document.getObjectById('controlId');
-
var obj=document.getElementById('controlId');
-
var obj=document.getObject('controlId');
C
Correct answer
Explanation
The standard DOM method to retrieve an HTML element by its ID attribute is document.getElementById(). This returns the element object if found, or null if no element with that ID exists. Options A, B, and D reference non-standard methods that don't exist in the DOM API.
-
window.parent.location='newpage.html'
-
window.top.location='newpage.html'
-
window.opener.location='newpage.html'
-
Cannot be done
C
Correct answer
Explanation
In JavaScript, window.opener refers to the window that opened the current window. To change its URL, you assign a new value to window.opener.location. window.parent and window.top refer to iframe hierarchies.
-
Hyper Text Markup Language
-
Home Tool Markup Language
-
Hyperlinks and Text Markup Language
-
Hyper Tool Markup Language
A
Correct answer
Explanation
HTML stands for Hyper Text Markup Language. It is the standard markup language for creating web pages. 'Hyper Text' refers to the cross-linking of documents, 'Markup' indicates the tags that define elements, and 'Language' identifies it as a coding system for web content structure.
B
Correct answer
Explanation
The code-behind model places code in a separate file but DOES use a specifically designated mechanism - the @Page directive with CodeFile/Inherits attributes. The statement claims it does NOT use a designated mechanism, which is false.
C
Correct answer
Explanation
Web service pages in ASP.NET use the .asmx file extension, which specifically identifies ASP.NET web services. This distinguishes them from regular web pages (.aspx) and user controls (.ascx).
-
"Page Not Found Error" is displayed
-
Opens a Blank Page without any error
-
Opens a Blank Page with error - "No Template Exist."
-
Unpredictable behaviour
A
Correct answer
Explanation
The page was created with an underscore in its name ('My_Test_Page') but the URL attempts to access it without underscores ('MyTestPage'). Since the actual URL would be /urlmagic/My_Test_Page.htm to match the page name, the mismatched URL results in a Page Not Found error - Livelink URLs must exactly match the page object name.
-
A and B Only
-
A, B and C only
-
All of the above
-
A, B and D only
B
Correct answer
Explanation
SAP IS Retail has three article categories: Single (individual products), Generic (grouped similar products like different colors), and Structured (products with variants like size/color combinations). Unstructured is not a valid category.
C
Correct answer
Explanation
In Struts configuration, each action mapping is uniquely identified by its 'path' attribute (e.g., '/login'), which the ActionServlet uses to route requests. The 'name' attribute refers to the form bean, 'type' specifies the Action class, and 'page' is not a standard action mapping attribute.
-
<html:errors/>
-
<bean:errors/>
-
<html:message/>
-
<bean: message/>
A
Correct answer
Explanation
In Struts 1.x, the tag is used to display error messages that have been added to the ActionErrors or ActionMessages objects in an ActionForm or Action. The tag retrieves errors from the request scope and renders them appropriately. Option B is incorrect because there is no tag. Option C is for individual messages, not error collections. Option D has a space and doesn't exist.
B
Correct answer
Explanation
In struts-config.xml, the tag uses the 'type' attribute to specify the fully qualified class name of the Action class implementation. The 'name' attribute specifies the logical name of the action and references the form bean, not the action class. Options C and D are not valid attributes for specifying the action class.
-
<request-processor/>
-
<controller/>
-
<action-processor/>
-
<action-controller/>
B
Correct answer
Explanation
In Struts configuration, the tag is used to specify a custom RequestProcessor class. The 'processorClass' attribute of the controller element defines the fully qualified class name of the custom RequestProcessor. Options A, C, and D are not valid Struts configuration tags.