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
-
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.
-
Advance JavaScript and XML
-
Asynchronous JavaScript and XML
-
Actual JavaScript and XML
-
None of the Above
B
Correct answer
Explanation
AJAX stands for Asynchronous JavaScript and XML. It describes a technique for making asynchronous HTTP requests from the browser to exchange data and update parts of a web page without requiring a full page reload. Despite the name containing XML, modern AJAX often uses JSON instead.
-
JavaScript and XML
-
JavaScript and Java
-
VBScript and XML
-
JavaScript and HTTP requests
A
Correct answer
Explanation
AJAX is based on JavaScript for client-side logic and XML for data exchange (traditionally). The core technology is the XMLHttpRequest object, which JavaScript uses to make asynchronous HTTP requests. While modern AJAX often uses JSON instead of XML, the name reflects the original design.
-
Interact with XML
-
Sent request to client and get the request from server
-
Both 1 & 2
-
None of the above
-
XHTML
-
XML
-
Javascript
-
Is not language or structure specific
-
Search engines would not be able to index an AJAX application
-
ActiveX requests are enabled only in IE 5 and IE6
-
Back button in the browser
-
All the above
D
Correct answer
Explanation
AJAX has several disadvantages: search engines cannot easily index dynamically loaded content (SEO issue), browser back/forward buttons don't work with AJAX page updates by default, and historically there were browser compatibility concerns. Since all three listed options describe genuine disadvantages, 'All the above' is correct.
-
Activity defenition
-
Transaction defenition
-
FPS defenition
-
Program defenition
B
Correct answer
Explanation
In the Hogan CICS environment, the Transaction definition is the first element triggered when you enter a transaction name or screen identifier. This transaction definition then points to the Program, which contains Activity definitions. The 24th line reference is specific to Hogan screen entry conventions.
-
GetData(Row,Col)
-
GetRowValue(Rowid,Colname)
-
GetCellData (Row,Col)
-
GetRowValue(Row,Col)
C
Correct answer
Explanation
GetCellData(Row,Col) is the correct method to retrieve data from an HTML Table in QTP/UFT. The other options (GetData, GetRowValue with various signatures) are not standard methods for table cell extraction.
A
Correct answer
Explanation
Rule Resolution in Pega is a fundamental mechanism that determines which rule instance to execute at runtime. It DOES apply to Rule-HTML-Property rules (along with most other rule types) to select the appropriate version based on class, ruleset, and other criteria. The statement is correct.
-
Fragments
-
text files
-
streams
-
harnesses
B
Correct answer
Explanation
In Pega, text file rules (Rule-File-Text) store static content like CSS style sheets, JavaScript files, or images. These rules are cached and served directly by the web server, bypass rule resolution during execution, and optimize performance compared to dynamic HTML fragments or harnesses.
-
A. The prefix defines the name of the tag that may be used for a tag library
-
B. The prefix attribute defines the location of the tag library descriptor file.
-
C. The prefix attribute should refer to the short name attribute of the tag library file that is defined by the uri attribute of taglib directive.
-
D. The prefix attribute is used in front of a tagname of a tag defined within the tag library.
D
Correct answer
Explanation
In JSP tag libraries, the prefix attribute serves as a namespace identifier. When you declare a tag library with <%@ taglib uri="..." prefix="..." %>, the prefix defines the short name you'll use to reference tags from that library in the JSP page. You then use this prefix before tag names, like . The prefix itself doesn't define the tag name or point to the TLD location - it's simply used as a namespace qualifier before tag names to distinguish them from tags in other libraries or standard JSP elements.