1.
Which ASP command sends a web page to another web page but keeps the URL the same?
Correct Answer
C. Server.Transfer("URL")
Explanation
The correct answer is Server.Transfer("URL"). This ASP command transfers control from one web page to another while keeping the URL the same. It is useful when you want to navigate to another page but maintain the original URL for various reasons, such as maintaining the user's context or hiding sensitive information. Unlike Response.Redirect, which performs a client-side redirect and changes the URL in the browser, Server.Transfer is a server-side transfer that maintains the original URL in the address bar.
2.
Which ASP command allows easy navigation between web pages in a web site? The URL which the user sees changes also for each web page.
Correct Answer
B. Response.Redirect("URL")
Explanation
The correct answer is Response.Redirect("URL"). This ASP command allows easy navigation between web pages in a web site by redirecting the user to a different URL. This means that the URL which the user sees changes for each web page, providing a seamless browsing experience.
3.
What are four ways of navigating to another web page in ASP?
Correct Answer(s)
A. Cross-page posting using PostBackURL
B. Response.Redirect("URL")
D. Server.Transfer("URL")
E. Response.Write("a href="URL">click here")
Explanation
The question asks for four ways of navigating to another web page in ASP. The correct answer includes four options: Cross-page posting using PostBackURL, Response.Redirect("URL"), Server.Transfer("URL"), and Response.Write("a href="URL">click here"). These methods allow for different ways of redirecting the user to another web page in ASP.
4.
Which is a server-side technology that allows tracking of data for all users of an application?
Correct Answer
D. Application State
Explanation
Application State is a server-side technology that allows tracking of data for all users of an application. It stores data that is accessible across multiple sessions and users, making it suitable for scenarios where shared data needs to be maintained. Unlike Session State, which is specific to individual users, Application State can be accessed and modified by all users of the application. This makes it useful for storing global information such as application settings, user preferences, or any other data that needs to be shared among users. Control State and View State, on the other hand, are specific to individual controls and user sessions respectively.
5.
Which is a client-side technology that saves data on a web page between refreshes? It saves the state of the form and controls between postback page refreshes.
Correct Answer
C. View State
Explanation
View State is a client-side technology that saves data on a web page between refreshes. It is used to save the state of the form and controls between postback page refreshes. View State allows the web page to retain its state and data, providing a seamless user experience without losing any inputted information.
6.
Which technology is a client-side technology and allows a control to continue functioning even when the ViewState property is turned off?
Correct Answer
B. Control State
Explanation
Control State is a client-side technology that allows a control to continue functioning even when the ViewState property is turned off. Control State is similar to ViewState, but it is independent of ViewState and is used to persist control-specific data. It is useful when the control's state needs to be maintained even if the ViewState is disabled or cleared. Control State ensures that the control's data is retained across postbacks, providing a reliable and consistent user experience.
7.
What alters the layout of a web page?
Correct Answer
C. CSS
Explanation
CSS (Cascading Style Sheets) is responsible for altering the layout of a web page. It is a style sheet language used to describe the presentation of a document written in HTML or XML. With CSS, web designers can control the appearance of various elements on a web page, such as fonts, colors, margins, and positioning. By applying CSS rules to HTML elements, the layout and visual presentation of the web page can be customized and modified according to specific design requirements.
8.
Which image tag is required for strict XHTML compliance? It specifies text to be displayed whilst the image is loading which shows on the web page particularly if there is a slow connection and the image takes a long time to load
Correct Answer
D. Alt
Explanation
The "alt" attribute is required for strict XHTML compliance. This attribute specifies alternative text to be displayed in case the image cannot be loaded or if the user is using a screen reader. It is important for accessibility purposes and helps improve the user experience for those with visual impairments or slow internet connections.
9.
Which technologies can be used to initialise variables etc on a page? (Select Four)
Correct Answer(s)
A. Global.asax
B. Page_Load
C. Application_Start
E. Session_Start
Explanation
The correct answer is Global.asax, Page_Load, Application_Start, Session_Start. These technologies can be used to initialize variables on a page. Global.asax is a file that contains events for the application's lifecycle, including Application_Start and Session_Start. Page_Load is an event that occurs when a page is loaded, and it can be used to initialize variables. Application_Start is an event that occurs when the application starts, and it can be used to initialize application-level variables. Session_Start is an event that occurs when a new user session starts, and it can be used to initialize session-level variables.
10.
Which is a read-only control that a user cannot modify directly, but the contents of which may be changed programatically if required?
Correct Answer
C. Label
Explanation
A label is a read-only control that a user cannot modify directly. It is typically used to display text or information that does not require user input. Although the user cannot edit the label's contents, the contents can be changed programmatically if needed. Therefore, a label fits the description of a read-only control that can be modified programmatically.
11.
What is used to make sure the user input is correct?
Correct Answer
B. Validation
Explanation
Validation is used to ensure that user input is correct. This process involves checking the input data against specified rules or constraints to ensure its accuracy and integrity. By validating user input, errors and inconsistencies can be detected and prevented, improving the overall reliability and usability of the system.
12.
Which has stricter standards of coding?
Correct Answer
C. XHTML
Explanation
XHTML has stricter standards of coding compared to CSS and HTML. XHTML is a stricter version of HTML, following stricter rules and guidelines. It requires well-formed and valid code, meaning that all elements must be properly nested and closed, and attribute values must be enclosed in quotes. This strictness ensures consistency and compatibility across different browsers and devices, making XHTML a preferred choice for developers who prioritize code quality and adherence to standards.
13.
What allows data to be sent between a web page and a server without fully refreshing the web page?
Correct Answer
C. AJAX
Explanation
AJAX (Asynchronous JavaScript and XML) allows data to be sent between a web page and a server without fully refreshing the web page. It is a combination of technologies including JavaScript, XML, and HTTP requests. With AJAX, web pages can make asynchronous requests to the server, retrieve data in the background, and update parts of the web page dynamically without the need for a full page reload. This enhances the user experience by providing smooth and responsive interactions on the web page.
14.
What is the name given to the library of all items stored in .NET?
Correct Answer
B. FCL Framework Class Library
Explanation
The correct answer is FCL Framework Class Library. The FCL, or Framework Class Library, is a library of pre-built code that is included with the .NET framework. It provides a wide range of classes and functions that developers can use to build applications. The FCL includes classes for tasks such as file input/output, networking, database access, and user interface development. It serves as a foundation for .NET development and allows developers to quickly and easily access and utilize common functionality without having to write all the code from scratch.
15.
Which tool can be used to manage a website???
Correct Answer
B. WSAT Website Administration Tool
Explanation
The WSAT Website Administration Tool can be used to manage a website. This tool provides a user-friendly interface for managing various aspects of a website, such as user accounts, roles, and security settings. It allows website administrators to easily add, edit, and delete users, assign roles and permissions, and configure website settings. This tool is particularly useful for managing websites built on the ASP.NET framework.
16.
Which command is used to link an ASP.NET web page with a programming language eg C# so that C# commands are executed and linked to buttons and other controls on the web page?
Correct Answer
B. AutoEvent Wireup
Explanation
AutoEvent Wireup is the correct answer because it is a feature in ASP.NET that allows the automatic wiring up of event handlers to the corresponding events in the code-behind file. This means that when a button or control is clicked on the web page, the associated C# code will be executed without the need for explicit event handler assignment. It simplifies the process of linking C# commands to buttons and controls on the web page, making development easier and more efficient.
17.
Which technology can be used like a database but read by any text editor?
Correct Answer
A. XML
Explanation
XML can be used like a database but read by any text editor. XML stands for Extensible Markup Language and is a markup language that is designed to store and transport data. It is a text-based format that uses tags to define elements and their attributes. XML can be easily read and edited using any text editor, making it a versatile technology for storing and exchanging data. HTML, CSS, and JavaScript are also web technologies but they are not typically used as databases and may not be as easily readable in a text editor.
18.
When HTML code is written to a structured, XML structure what is the technology called?
Correct Answer
B. XHTML
Explanation
XHTML stands for Extensible Hypertext Markup Language. It is a stricter and more structured version of HTML that follows the rules of XML. When HTML code is written in a structured, XML-like manner, it is referred to as XHTML. This allows for better organization and compatibility with XML-based technologies. AJAX, HTML5, and JQuery are not specifically related to writing HTML code in a structured XML structure.
19.
Which two objects can be used to read and write XML data eg to a text file?
Correct Answer(s)
C. XMLReader
D. XMLWriter
Explanation
XMLReader and XMLWriter are both objects that can be used to read and write XML data to a text file. XMLReader is used for reading XML data, allowing the user to navigate through the XML structure and extract the required information. XMLWriter, on the other hand, is used for writing XML data, allowing the user to create and modify XML documents by adding elements, attributes, and values. Both objects are commonly used in XML processing to handle the input and output of XML data.
20.
How many top-level elements can an XML document contain?
Correct Answer
B. 1
Explanation
An XML document can contain only one top-level element. This is because XML follows a hierarchical structure where all elements must be nested within a single root element. Therefore, there can only be one element at the highest level in an XML document.
21.
What can be used to create XML rules to force data to adhere to certain standards and structure?
Correct Answer
B. DTD Validation (Document Type Definition)
Explanation
DTD Validation (Document Type Definition) can be used to create XML rules to force data to adhere to certain standards and structure. DTD is a set of rules that defines the structure and elements of an XML document. It specifies the allowed elements, their order, attributes, and data types. By validating XML against a DTD, it ensures that the data follows the defined rules and meets the required standards and structure.
22.
When an HTML or XHTML document passes validation eg at http://validator.w3.org/ it is said to be ...... ....
Correct Answer
B. Well formed
Explanation
When an HTML or XHTML document passes validation, it is said to be "well-formed". This means that the document follows the syntax rules and guidelines set by the HTML or XHTML specifications. A well-formed document is free from syntax errors and can be parsed correctly by web browsers or other HTML processors. It ensures that the document is structured correctly and all elements are properly nested and closed.
23.
What is used to define the structure of an XML document, in a more advanced way than DTD Document Type Definition Validation?
Correct Answer
D. XML Schema
Explanation
XML Schema is used to define the structure of an XML document in a more advanced way than DTD validation. XML Schema provides a more comprehensive and powerful set of tools for defining the structure, data types, and constraints of XML documents. It allows for more precise validation and enables the definition of complex data structures, data types, and relationships between elements. Unlike DTD, XML Schema supports features like data typing, namespaces, and regular expressions, making it a more robust and flexible choice for validating XML documents.