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
A
Correct answer
Explanation
Oracle Workflow Messages support both plain text and HTML formats for the message body. This allows flexibility in presentation - text for simple notifications and HTML for formatted content with styling, links, or structure. The format can be specified when defining the message.
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).
-
Names must be 10 or less characters.
-
Names must contain at least 1 alpha character in any position.
-
Names must be lower case.
-
Multiple word names must be separated with an underscore.
B
Correct answer
Explanation
COBOL requires user-defined names to contain at least one alphabetic character. Names can be 1-30 characters, can be mixed case, and hyphens (not underscores) are used in multi-word names. Numeric characters are allowed but not required.
-
"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.
-
The name attribute of action tag, specifies the action name
-
Only one controller can be defined for a module in struts application
-
Struts configuration files should be placed only inside WEB-INF folder or its sub folders
-
The <exception> tag can be used to forward user to a specific view in case of an exception.
B,D
Correct answer
Explanation
Statement B is true: Each Struts module can have only one controller (RequestProcessor) defined. Statement D is true: The tag in struts-config.xml allows configuring exception handling, including forwarding to specific error views when exceptions occur. Statement A is false: The 'name' attribute of specifies the form bean name, not the action name (the action's logical name is the 'path' attribute). Statement C is false: While WEB-INF is recommended for security, config files can be placed elsewhere if properly configured in web.xml.
-
a) A and B Only
-
b) A, B and C only
-
c) All of the above
-
d) A, B and D only
B
Correct answer
Explanation
In SAP IS Retail, standard article categories include Single articles, Generic articles, and Structured articles (such as sets, prepacks, and displays). Unstructured is not a standard article category.
-
<tr>
-
<text area>
-
<table>
-
<td>
D
Correct answer
Explanation
colspan attribute extends a single table cell across multiple horizontal columns. It only works on and tags. A represents an entire row, not a cell, and is the container element.
-
Graphic designer
-
Any text editor
-
browsers
-
all of the above
B
Correct answer
Explanation
HTML is plain text markup. Any text editor (Notepad, VS Code, Sublime, etc.) can write HTML files. Graphic designers create visuals, browsers render HTML, and neither writes HTML code.
-
<head>
-
<body>
-
<html>
-
both 1 & 2
C
Correct answer
Explanation
The tag is the root element that encloses the entire HTML document. contains metadata, contains visible content, but defines where the document starts and stops.