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
A
Correct answer
Explanation
When an .aspx page is requested, ASP.NET processes it server-side and generates HTML that is sent to the browser. The browser receives and renders standard HTML - it does not receive XML, WML (Wireless Markup Language), or JSP (JavaServer Pages) format. The output is always HTML (or XHTML which is HTML-compatible).
-
TagPrefix
-
Name space of the dll that is referenced
-
Assemblyname
-
All of the above
D
Correct answer
Explanation
To add a custom control to an ASP.NET Web form, you must register it using the @Register directive, which requires specifying the TagPrefix (used in markup), Namespace (where the control class resides), and Assembly name (containing the control). All three elements are mandatory for proper registration, making 'All of the above' the correct answer.
-
Hyper Text Mark Language
-
HyperText Multiple Languages
-
HyperText Markup Language
-
Hyperlink Markup Languages
C
Correct answer
Explanation
HTML stands for HyperText Markup Language, which accurately describes its function of creating structured documents with hypertext links. Option A incorrectly omits 'up' from 'Markup,' while Option B incorrectly suggests it handles multiple languages and Option D focuses on hyperlinks rather than markup.
-
X-TENSIBLE MARKUP LANGUAGES
-
EXTENSIBLE MARKUP LANGUAGE
-
XHTML MARKUP LANGUAGE
-
EXTENSIBLE MARK-UP LANGUAGES
B
Correct answer
Explanation
XML stands for 'eXtensible Markup Language' - a markup language designed to store and transport data in a structured, human-readable format. The 'X' comes from 'eXtensible' (with a lowercase E), emphasizing that users can define their own custom tags. Option B has the correct spelling. Option A uses 'X-TENSIBLE' incorrectly, and D adds a hyphen to 'Markup' and uses 'Languages' (plural).
-
web_reg_find
-
web_reg_save_find
-
web_reg_save_value
-
web_reg_save_param
D
Correct answer
Explanation
web_reg_save_param is the classic LoadRunner function used to register a request to save dynamic data (correlation) from the server. web_reg_find checks for text, and other functions like web_reg_save_find or web_reg_save_value either do not exist or do not serve this purpose.
-
JavaScript library
-
HTML component
-
CSS component
-
XML component
A
Correct answer
Explanation
jQuery is a fast, small, and feature-rich JavaScript library that simplifies HTML document traversal, event handling, animation, and AJAX interactions. It is not a component of HTML, CSS, or XML, but rather a cross-browser JavaScript library designed to make client-side scripting easier.
-
(selector).action()
-
$(action).selector()
-
$(selector).action()
-
selector.action()
C
Correct answer
Explanation
The basic jQuery syntax is $(selector).action(), where $ is the jQuery alias, selector identifies HTML elements using CSS syntax, and action() is the jQuery method to perform. This pattern is consistent throughout jQuery: first select elements, then perform actions on them. Option B reverses the order, while A and D miss the $ symbol or parentheses.
-
prepend
-
middle
-
append
-
before
B
Correct answer
Explanation
jQuery provides prepend() (insert at beginning), append() (insert at end), and before() (insert before element) as standard DOM manipulation methods. 'middle' is not a valid jQuery method for HTML manipulation, making it the correct answer to this negative question.
-
constructors of jquery
-
html tags of jquery
-
callback
-
selectors
D
Correct answer
Explanation
jQuery selectors are used to find and manipulate HTML elements in the DOM. Selectors use CSS syntax to identify one or more elements, which can then be modified using jQuery methods. Constructors like $() wrap selections, callbacks are functions executed after events, and jQuery doesn't have 'html tags' as a concept.
-
css(object)
-
css(name)
-
css(name,value)
-
css({properties})
A
Correct answer
Explanation
This question is poorly designed. Options B, C, and D are all valid jQuery CSS method syntaxes, while option A (css(object)) is ambiguous. If 'object' means a plain object, then css({properties}) already covers that case. The question likely intends to test knowledge of valid CSS() method signatures, but all standard syntaxes are represented in B, C, and D, making the question confusing.
-
Utilities
-
server side validations
-
JavaScript Effects and animations
-
HTML DOM traversal and modification
B
Correct answer
Explanation
jQuery is a client-side JavaScript library that runs in the browser and cannot perform server-side validations. It provides utilities, effects/animations, and DOM manipulation, but server-side validation requires server-side code like PHP, Node.js, or ASP.NET.
-
("p").css("background-color","yellow");
-
$("p").css("background-color","yellow")
-
$("p").css("background-color","yellow");
-
$("p").css("back-color","yellow");
C
Correct answer
Explanation
The correct jQuery syntax requires the $ selector function, followed by the .css() method. Option C is correct: $("p").css("background-color","yellow"); - the $ creates a jQuery object, .css() takes two string arguments (property and value), and the semicolon terminates the statement. Option A is missing the $, Option B is missing the semicolon, and Option D uses an incorrect property name.
B
Correct answer
Explanation
The traditional file extension for a Web Part in SharePoint is .dwp (Digital Web Part). This XML-based file format was used in SharePoint 2003 and earlier versions. Note that modern SharePoint uses .webpart files, but DWP was the classic extension.
B
Correct answer
Explanation
STP is the correct file extension for SharePoint site templates. These .stp files package site structures, lists, and templates for reuse. FTP is a file transfer protocol, HTM is HTML markup, and JS is JavaScript - none are specific to SharePoint templates.
-
XML
-
WSDL,XML
-
SOAP
-
All of the above
D
Correct answer
Explanation
BPEL is built on all three technologies: it's an XML-based language, uses WSDL to define service interfaces, and relies on SOAP for message exchange. These form the foundation of BPEL's web service orchestration capabilities.