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
-
define the structure with a list of legal elements
-
to carry data
-
to display data
-
none of these
B
Correct answer
Explanation
XML is designed primarily for data transport and storage, not display. It provides a structured, self-describing format for exchanging information between systems. HTML focuses on presentation, while XML focuses on what the data IS, making it ideal for APIs, configuration files, and data interchange.
-
to specify the minimum number of lines in an element
-
specify the max number of lines
-
specify the number of lines from the right of a page
-
none of these
A
Correct answer
Explanation
The orphans property in CSS paged media specifies the minimum number of lines that must appear at the bottom of a page. It prevents awkward page breaks that leave single lines stranded. It's often used with 'widows' (minimum lines at top of next page) for proper typography.
-
underlined text
-
pre-formatted text
-
subscripted
-
none of these
B
Correct answer
Explanation
The xmp (example) tag displays pre-formatted text exactly as written, preserving whitespace and line breaks. Unlike 'pre', xmp also escapes HTML tags within it so they display as text rather than rendering. Both are deprecated in favor of 'pre' or 'code' tags with proper entity encoding.
B
Correct answer
Explanation
XHTML 1.0 is organized into 28 modules that define the various elements and attributes. These modules can be combined to create different XHTML document types (Strict, Transitional, Frameset), allowing for flexible document composition.
A
Correct answer
Explanation
All XML-based documents, including XHTML, must have exactly one root element to be well-formed. In XHTML, this is typically the element that encloses the entire document structure (head and body).
B
Correct answer
Explanation
In certain presentation or documentation systems, slide collections (decks) are referred to as WNL files. This appears to be specific terminology from a particular software platform or file format specification.
-
Body
-
Head
-
Title
-
None of these
C
Correct answer
Explanation
WML (Wireless Markup Language) was designed specifically for WAP (Wireless Application Protocol) to display content on early mobile phones with limited displays and input capabilities. Unlike HTML, WML was optimized for low-bandwidth, small-screen wireless devices.
-
New MySqli extension
-
SimpleXML extension
-
Perl extension
-
Tidy extension
-
An exact pattern to match
D
Correct answer
Explanation
This extension enables PHP developers to parse, diagnose, clean and repair hyper text markup language documents.
-
DOM extension
-
SimpleXML extension
-
New MySqli extension
-
Perl extension
-
An exact pattern match
A
Correct answer
Explanation
This extension supports three kind of schemas for extensive markup language validation such as DTD, XML schema and RelaxNG.
-
Database
-
Extensions
-
Domains
-
Protocols
-
None of these
B
Correct answer
Explanation
File extensions are the suffixes at the end of a filename (like .doc or .htm) that tell the operating system which program should be used to open the file. They define the format of the data within the file.
-
SMTP service
-
Description
-
MessageName
-
CacheDuration
-
Assembly name
B
Correct answer
Explanation
This WebMethod's attribute adds a textual description to a web method.
E
Correct answer
Explanation
This element of body tag in HTML is used for defining a section of text as a quotation.
-
OperaSoft Opera
-
Microsoft Internet Explorer
-
Mozilla
-
Google Chrome
-
Amaya
A
Correct answer
Explanation
This is a spunky browser that can parse XML documents but supports only CSS Level 1 and parts of CSS Level 2.
-
UDDI
-
WSDL
-
SOAP
-
SOA
-
XMLDOM
E
Correct answer
Explanation
This is a document object model that provides an interface to the programmer to manipulate an XML document, while it is in memory.