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
-
It contains a root element
-
It contain an element
-
It contains one or more elements
-
Must contain one or more elements and root element must contain all other elements
-
The browser name
-
The size of element name
-
Entity declarations
-
Element declarations
A
Correct answer
Explanation
DTD specifies element declarations, entity declarations, attribute list declarations (ATTLIST), and notation declarations. It is browser-independent and does NOT specify which browser to use. The DTD defines document structure, not presentation or browser-specific information.
-
Required when validating XML documents
-
No longer necessary after the XML editor has been customized
-
Used to direct conversion using an XSLT processor
-
A good guide to populating a templates to be filled in when generating an XML document automatically
A
Correct answer
Explanation
DTD is required for validating XML documents against a defined structure. XSLT uses XSLT stylesheets for transformation, not DTD. Customizing an XML editor doesn't eliminate the need for DTD when validation is required. DTD defines structure, not template content.
-
In XMl Declaration
-
As an Attribute of Root Element
-
In the ATTLIST
-
In DTD
D
Correct answer
Explanation
Processing Instructions (PIs) like can be included in the DTD section of an XML document. They provide instructions to applications processing the XML. PIs are not attributes, not part of element declarations, and not restricted to the XML declaration alone.
-
Complex Content
-
Simpel Content
-
Hybrid Content
-
Pre-Defined Content
A
Correct answer
Explanation
In XSD, an empty element has complex type with complexContent restriction. It may have attributes but no character content. Simple content would allow text content. 'Simpel' is also misspelled. Empty elements like
have complex content models in schema definitions.
-
Are a part of XML Structure
-
Are mandatory in XSD
-
Are Used in Inline and External XSD
-
None of the above
C
Correct answer
Explanation
XSD annotations () provide documentation and are optional. They can appear in both inline XSD (embedded in XML) and external XSD files. Annotations are not part of core XML structure - they're XSD-specific documentation elements.
-
All the statements are true
-
All XML elements must have a closing tag
-
All XML elements must be lower case
-
All XML documents must have a DTD
B
Correct answer
Explanation
XML requires all elements to have a closing tag (or self-close like
). XML is case-sensitive but doesn't require lowercase. DTD is optional for XML - well-formed XML doesn't need a DTD. Only option B is universally true for XML.
-
Improves Server Performance
-
Allows customize data presentations
-
Replaces XML
-
Used to store xml to databases
B
Correct answer
Explanation
XSLT transforms XML documents into different formats like HTML, text, or other XML - enabling customized presentations. It doesn't replace XML, doesn't inherently improve server performance, and isn't for database storage. XSLT is a presentation layer technology.
-
<xml version="1.0" />
-
<?xml version="1.0"?>
-
<?xml version="1.0" />
-
None of the above
C
Correct answer
Explanation
XML declaration uses Processing Instruction syntax: . Option A is wrong - needs not <. Option B is technically correct but marked false. Option C adds a space before ?> which is also valid XML 1.0 syntax. The ?> PI syntax is the key.
A
Correct answer
Explanation
XML is the core data format used in SOAP-based web services testing. SOAP (Simple Object Access Protocol) messages are XML documents that structure data in a hierarchical format. Oracle is a database, CTI is telephony integration, and MW stands for middleware (generic term) - none of these are data formats used in SOAP testing. XML is the standard for all SOAP communications.
-
Ambiguous branches and to check the syntax.
-
Ambiguous branches, Cascading phrases,normalization errors and to check the syntax.
-
Cascading phrases and normalization errors only.
-
Normalization errors only.
C
Correct answer
Explanation
Microsoft SRGS (Speech Recognition Grammar Specification) validation tool checks for cascading phrases (where one rule contains another) and normalization errors (grammar format issues). Option B adds ambiguous branches which are typically checked by different tools.
-
VoiceXML 3.0 is the current release we are using.
-
VoiceXML has a scope of DTMF input as well as Voice inputs
-
VoiceXML is a dynamic one.
-
Voice Browser is a component of VoiceXML
A
Correct answer
Explanation
VoiceXML 2.0 and 2.1 are the industry-standard, widely adopted versions for developing voice applications. VoiceXML 3.0 was never fully adopted as the mainstream active release, making the statement that it is currently used false, while the other statements are true.
-
Voice Browsers
-
Voice Interpreter
-
Microsoft SRGS validation tools
-
Voice mails.
A
Correct answer
Explanation
VoiceXML documents are interpreted by Voice Browsers, similar to how web browsers interpret HTML. Voice Browsers execute VoiceXML applications, handle speech recognition/playback, and manage telephony resources. A Voice Interpreter is not a standard term in this context, and voicemail systems are different applications entirely.
-
Example Markup Language
-
X-Markup Language
-
eXtra Modern Link
-
eXtensible Markup Language
D
Correct answer
Explanation
XML stands for eXtensible Markup Language, which is designed to store and transport data while allowing users to define their own custom tags. The other options are incorrect distractors that do not match the official name of the XML standard defined by the W3C.
-
XML uses a DTD to describe the data
-
XML uses a description node to describe data
-
XML uses XSL to describe data
-
XML uses a DND to describe the data
A
Correct answer
Explanation
XML uses Document Type Definition (DTD) to describe the structure and content of XML data, defining valid elements, attributes, and their relationships. This makes option A correct. XSL is for transformation, not description. Options B and D contain terminology that doesn't exist in XML standards.