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
A
Correct answer
Explanation
SAX (Simple API for XML) is an event-driven parser that reads XML documents sequentially and triggers callback methods as it encounters elements, attributes, and text, rather than loading the entire document into a tree structure.
B
Correct answer
Explanation
This is false. SAX cannot be used to modify XML because it's a read-only, forward-only parser. It doesn't build a tree structure or maintain the document in memory - it just fires events as it reads. To modify XML, you need DOM (which loads the full tree) or use StAX with write capabilities. The claimed answer (B/False) is correct.
A
Correct answer
Explanation
The Document Object Model (DOM) parser loads the entire XML document into memory and builds a tree structure for navigation and manipulation. This approach makes it easy to traverse the document, but it requires substantial memory for large files. Alternative parsers, such as SAX, process XML sequentially without loading the entire tree into memory.
B
Correct answer
Explanation
StAX (Streaming API for XML) uses a pull-based parsing model where the application controls when to read the next event. Push-based parsers like SAX generate events automatically and the application must handle them. Since StAX is pull-based, not push-based, the statement is False.
-
a.web_reg_find()
-
b.web_reg_save_param()
-
c.web_regsave_param()
-
d.web_reg_saveparam()
B
Correct answer
Explanation
web_reg_save_param() is the function used to correlate dynamic values in HTTP/HTML scripts. It registers a request to save dynamic data from server responses to a parameter. web_reg_find() is for content verification, not parameter saving.
B
Correct answer
Explanation
Attribute syntax in XAML is more concise and less verbose than property element syntax. Instead of Red, you can write .
-
Binding
-
StaticResource
-
DynamicResource
-
Button
-
Object
-
x:Type
A,B,C,F
Correct answer
Explanation
XAML markup extensions include Binding (data binding), StaticResource (lookup static resources), DynamicResource (lookup dynamic resources), and x:Type (pass a Type object). Button is a regular control, not a markup extension, and Object is not a standard markup extension.
-
Java Script
-
VB Script
-
SQL Server Management Studio
-
Web service
-
ActiveX
-
Flash
A,B,E,F
Correct answer
Explanation
JavaScript, VBScript, ActiveX, and Flash are all client-side scripting technologies that can execute code in browsers, making them vectors for XSS attacks. SQL Server Management Studio is a database administration tool, not a browser scripting platform. Web services themselves don't execute XSS - the client that consumes them does.
B
Correct answer
Explanation
The statement is FALSE. The include directive (<%@ include %>) performs better than the include tag () because the directive includes content at translation/compile time (once), while the tag includes at runtime (every request). The tag is slower but more dynamic. The claimed answer (B/False) correctly identifies this.
-
Cascading Style Structure, defines how to display HTML elements
-
Cascading Style Sheets, defines how to display XML elements
-
Cascading Style Sheets, defines how to display HTML elements
-
Cascading Style Structure, defines how to display the webpage
C
Correct answer
Explanation
CSS stands for Cascading Style Sheets. It is a stylesheet language used to describe the presentation and formatting of HTML documents. CSS separates content (HTML structure) from presentation (styling), allowing developers to control colors, fonts, layouts, and other visual aspects of web pages. The 'Structure' in options A and D is incorrect - CSS refers to 'Sheets,' not 'Structure'.
-
Asynchronous Javascript and XML, is the art of exchanging data with a server, and update parts of a web page - without reloading the whole page
-
Asynchronous Javascript and XSLT, is the art of exchanging data with a server, and update parts of a web page - without reloading the whole page
-
Asynchronous Javascript and XML, is the art of exchanging data with a server, and updates entire web page reloading the whole page
-
Asynchronous Javascript and XSLT, is the art of exchanging data with a server, and updates entire web page reloading the whole page
A
Correct answer
Explanation
AJAX stands for Asynchronous JavaScript and XML. It is a technique for creating interactive web applications where web pages can exchange data with a server and update specific parts of the page asynchronously, without requiring a full page reload. This creates a smoother, more responsive user experience. The 'XSLT' variants in options B and D are incorrect, and option C wrongly states it updates the entire page.
-
Server side
-
Client side
-
Both client and Server side
-
DB Server
B
Correct answer
Explanation
JavaScript traditionally executes on the client-side within the web browser. It runs in the user's browser environment, allowing for interactive features, form validation, DOM manipulation, and dynamic content updates without server interaction. While Node.js now enables server-side JavaScript, in the context of traditional web development fundamentals, JavaScript is primarily a client-side scripting language.
C
Correct answer
Explanation
WSDL (Web Services Description Language) is an XML-based language that describes web services' functionality, including available operations, message formats, and endpoint locations. It tells clients HOW to access a web service. SOAP is a messaging protocol, UDDI is a registry for publishing/discovering services, and WS-I is an interoperability organization - none of these describe the service interface like WSDL does.
-
<xsl:select>
-
<xsl:value-of>
-
<xsl:element>
-
<xsl:import>
B
Correct answer
Explanation
The element in XSLT is used to extract the text value of a selected XML node. creates an element, imports stylesheet content, and is not a valid XSLT element.
-
Using Joiner
-
Create xml using Denormalized XML views( Hierarchical relationship)
-
Direct Move possible
-
None of the above
A,B
Correct answer
Explanation
XML source groups require specific methods to combine into a single target. Joiner transformation merges XML groups based on keys. Denormalized XML views with hierarchical relationships can create unified XML output from multiple source groups.