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
-
iframe
-
inframe
-
form
-
frame
-
frameset
A
Correct answer
Explanation
The HTML iframe tag is used to specify an inline frame. An inline frame allows us to embed another document within the current HTML document. We can use the iframe src attribute to specify the source of the other document, as well as other attributes to determine the height, width, scrolling properties, border, etc.
-
document.forms.element
-
document.forms[0].elements[0]
-
document[0].forms.element
-
document.forms.elements[0]
-
document.forms[0].element
B
Correct answer
Explanation
if a web document contains a form element it can be referred in JavaScript using the syntax -document.forms[0]
If the Web document contains two form elements the first form is referred to as document.forms[0] and the second document.forms[1]. Therefore we can access first form element using document.forms[0].elements[0], the second element can be accessed as document.forms[0].elements[1] and so on.
-
Detecting client browser information.
-
Validating user input.
-
Handling date and time.
-
Mathematical calculations on client system.
-
Access files on the client system.
E
Correct answer
Explanation
JavaScript can not directly access files on the user's system the only exception is the access to the browser's cookie files.
-
The content of a webpage can be changed dynamically using InnerHTML.
-
The id of an element can be referred by using getElement() method.
-
InnerHTML is not a part of DOM.
-
It was introduced by Microsoft.
-
It is valid for both block and inline elements.
B
Correct answer
Explanation
Each element that we want to modify dynamically must be assigned a unique id. The InnerHTML property is used along with the getElementById() method to refer to a particular element by using its Id.
-
The tag under a keyword string is possible.
-
The tag under a Hex colour is possible.
-
The tag under a reference to another resource type is possible.
-
The tag under another item tag is possible.
-
-
D
Correct answer
Explanation
<item> tag in another item tag is not possible. A Keyword string, Hex colour and a reference to another resource type are possible values to an <item> tag.
-
android.util
-
android.os
-
android.text
-
android.database
-
android.graphics
A
Correct answer
Explanation
The android.util library has core utility package which contains low level classes for XML parsing utilities in the application.
-
<activity>
-
<services>
-
<os>
-
<provider>
-
<receiver>
-
entity
-
switch board
-
macro
-
pages
-
none of these
A
Correct answer
Explanation
In database design and Entity-Relationship modeling, attributes are properties or characteristics that describe entities. Entities are the objects/concepts (like Customer, Product), while attributes are their details (like CustomerName, Price). Switchboards, macros, and pages are Access interface elements, not structural database components that have attributes.
-
Web Service Method ()
-
Web Method ()
-
Web Services ()
-
Services Method ()
B
Correct answer
Explanation
In .NET ASMX web services, methods must be marked with the [WebMethod] attribute to be exposed as callable web service operations. This attribute enables the method to be invoked via SOAP/HTTP requests. Without it, the method remains internal to the class.
-
Response.write
-
Response.end
-
response.end
-
None of these
A
Correct answer
Explanation
In classic ASP, the Response.Write method outputs text or HTML content to the client's browser. Response.End terminates script execution and sends output. The Write method is the standard way to dynamically generate page content during server-side processing.
-
Java Script
-
ASP Script
-
VB Script
-
None of these
A
Correct answer
Explanation
JavaScript is the universal default scripting language for client-side web development. It runs natively in all browsers. ASP Script is server-side (classic ASP). VBScript only worked in Internet Explorer and is now obsolete. JavaScript remains the standard for client-side interactivity.
-
No
-
Yes
-
Sometimes
-
Can't be determined
B
Correct answer
Explanation
ADO.NET uses XML extensively for data representation and serialization. The DataSet class can read and write XML, and XML is used for interoperability between different systems. XML is integral to disconnected data access in ADO.NET.
-
2,2,3 and 2,3,2
-
2,2,3 and 2,2,3
-
2,3,2 and 2,3,2
-
2,3,2 and 2,2,3
C
Correct answer
Explanation
Here two <td> command used in first <tr> command and three <td> command used in second <tr> command, so required rows in each column is <2, 3, 2>
-
Embed web objects from different sites into the same page
-
Refresh the page automatically after a specified interval
-
Automatically redirect to another page upon download
-
Display the client time as part of the page
D
Correct answer
Explanation
Pure HTML without JavaScript cannot dynamically display or manipulate client-side data like the current time. HTML can embed objects from other sites (iframe element), auto-refresh (meta http-equiv='refresh'), and auto-redirect (meta refresh), but displaying the client's current time requires client-side scripting like JavaScript.
-
how to organize the page
-
how to display the page
-
how to display message box on page
-
none of these
B
Correct answer
Explanation
How to display the page, as we use markup language it tells browser to display the page as per the markup tags, which is the main goal of HTML and not to describe or organize the page. To organize the page i.e. for describing the contents we use XML and obviously to display message box on page we use tags but the entire markup tags do not have only one functionality.