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
B
Correct answer
Explanation
XML elements can be closed in two ways: with a separate closing tag () OR as a self-closing tag (). Self-closing tags don't require a separate closing tag, making the statement false.
A
Correct answer
Explanation
Standard XML defines exactly 5 predefined entity references for special characters: amp, lt, gt, apos, and quot. Any other entities must be explicitly declared in a DTD or schema.
B
Correct answer
Explanation
XML stands for eXtensible Markup Language, not 'eXtensible Modeling Language'. The statement incorrectly substitutes 'Modeling' for 'Markup', so it's false.
B
Correct answer
Explanation
Every well-formed XML document MUST have exactly one root element that contains all other elements. This is a fundamental requirement of XML structure.
A
Correct answer
Explanation
Unlike HTML, which typically collapses whitespace, XML preserves all white spaces in element content. Applications parsing XML receive the exact spacing written by the author unless explicitly trimmed.
B
Correct answer
Explanation
This XML has two errors: (1) the opening tag doesn't match the closing tag (XML is case-sensitive), and (2) it's not a complete document - missing root element and XML declaration.
B
Correct answer
Explanation
XML element names cannot contain the $ character. Valid names can only contain letters, digits, underscores, hyphens, and periods, but must start with a letter or underscore. The $ makes this invalid.
-
FieldValidator
-
RegularExpressionValidator
-
RangeValidator
-
PatternValidator
B
Correct answer
Explanation
The RegularExpressionValidator control is specifically designed for pattern matching validation in ASP.NET. It validates input against a regular expression pattern, making it the right choice for pattern matching requirements.
A
Correct answer
Explanation
ASP.NET web controls fully support CSS styling. Developers can apply CSS classes, inline styles, or use the control's style properties to customize appearance. Web controls render as standard HTML elements that can be styled using CSS like any other HTML element. This integration allows for consistent styling across web applications.
-
an XML file
-
a Web Page
-
an excel template
-
a text file
C
Correct answer
Explanation
The .xlt extension is used for Excel template files in Microsoft Excel. When you save a workbook as a template, Excel uses the .xlt extension (in older versions) or .xltx (in newer Excel 2007+ formats). Templates preserve formatting and structure for reuse.
B
Correct answer
Explanation
SOAP uses XML as its message format. SOAP envelopes are XML documents that contain the message data. HTML and DHTML are for web pages, CSS is for styling, and none of these are the message format for SOAP.
-
HyperText Markup Language
-
HyperText Marked Language
-
HyperTagged Markup Language
-
HyperText Markup land
A
Correct answer
Explanation
HTML stands for HyperText Markup Language. It is the standard markup language for creating web pages and web applications, defining the structure and layout of a document.