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
-
Site template
-
Features
-
List Definition
-
All the above
D
Correct answer
Explanation
WSP (SharePoint Solution Package) files are deployment packages that can contain features, site definitions, list templates, web parts, assemblies, and other SharePoint artifacts. They're the standard unit for deploying custom SharePoint components. Option D correctly indicates WSP files are versatile containers for multiple solution types.
-
From DB
-
From XML
-
From CSV file
-
All of The Above
D
Correct answer
Explanation
VSTS (Visual Studio Team System) web tests support multiple parameterization sources including databases, XML files, and CSV files. This allows test data to be externalized and varied across test iterations. Since all three sources (DB, XML, CSV) are supported, Option D is the correct comprehensive answer.
B
Correct answer
Explanation
Web user controls in ASP.NET use the .ascx file extension to distinguish them from regular .aspx pages. The 'x' in ascx stands for 'extended' or 'user control.' Asmx is for web services, and Aucx is not a valid ASP.NET file extension.
-
Add Tag prefix, Tag name
-
Add Source, Tag prefix
-
Add Src, Tagprefix, Tagname
-
None of these
B
Correct answer
Explanation
To register a user control in an ASP.NET page, you use the @Register directive with the Source attribute (pointing to the .ascx file) and TagPrefix attribute. The TagName is optional in some contexts but Source and TagPrefix are the essential required elements for proper registration.
B
Correct answer
Explanation
There are three main types of XML parsers: SAX (Simple API for XML) - event-based push parser, DOM (Document Object Model) - tree-based parser, and StAX (Streaming API for XML) - pull parser. Some might also consider character-only parsers, but the three major programming models are SAX, DOM, and StAX.
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.
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'.