1.
The .NET Framework provides a runtime environment called..... ?
Correct Answer
B. CLR
Explanation
The correct answer is CLR, which stands for Common Language Runtime. The CLR is a runtime environment provided by the .NET Framework. It is responsible for executing and managing applications written in different programming languages that target the .NET platform. The CLR provides various services such as memory management, exception handling, and security enforcement, making it an essential component of the .NET Framework.
2.
In ASP.NET in form page the object which contains the user name is ______ ?
Correct Answer
A. Page.User.Identity
Explanation
The correct answer is Page.User.Identity. In ASP.NET, the object that contains the user name is accessed through the Page.User.Identity property. This property provides information about the user's identity, including their name. The other options, Page.User.IsInRole and Page.User.Name, do not directly provide the user name.
3.
Which of the following denote ways to manage state in an ASP.Net Application?
Correct Answer
D. All the Above
Explanation
Session objects, Application objects, and ViewState are all ways to manage state in an ASP.Net Application.
Session objects allow storing and retrieving user-specific data across multiple requests.
Application objects enable storing data that is accessible across all users of the application.
ViewState is used to persist the state of a control or page across postbacks.
Therefore, all the options mentioned in the question are valid ways to manage state in an ASP.Net Application.
4.
What is the base class from which all Web forms inherit?
Correct Answer
B. Page Class
Explanation
The correct answer is Page Class. This is because the Page Class is the base class from which all web forms inherit in ASP.NET. The Page Class provides the basic functionality and properties that are required for a web form, such as handling events, managing the page lifecycle, and rendering HTML output. The Master Page is a separate concept in ASP.NET that allows for the creation of a consistent layout for multiple web forms. The Session Class is used for managing user-specific data across multiple requests. Therefore, the correct base class for web forms is the Page Class.
5.
WSDL stands for _________________ ?
Correct Answer
C. Web Services Description Language
Explanation
WSDL stands for Web Services Description Language. It is an XML-based language used to describe the functionalities offered by a web service. WSDL provides a standardized way to define the structure of web services, including the operations, input/output messages, and communication protocols. It allows clients to understand and interact with the web service without prior knowledge of its implementation details. Therefore, the correct answer is Web Services Description Language.
6.
Which of the following must be done in order to connect data from some data resource to Repeater control?
Correct Answer
C. Both A) and B)
Explanation
To connect data from a data resource to a Repeater control, both A) and B) must be done. Setting the DataSource property specifies the data source for the Repeater control, while calling the DataBind method binds the data to the control. This ensures that the data from the data resource is connected and displayed correctly in the Repeater control.
7.
If one has two different web form controls in a application and if one wanted to know whether the values in the above two different web form control match what control must be used?
Correct Answer
C. CompareValidator
Explanation
The CompareValidator control should be used in this scenario. The CompareValidator control allows for comparing the values of two different web form controls and checking if they match. It can be used to validate if the values in the two controls are the same or different, depending on the comparison operator specified.
8.
Which of the following is used to send email message from my ASP.NET page?
Correct Answer
C. Both A) and B)
Explanation
Both A) and B) are used to send email messages from an ASP.NET page. System.Web.Mail.MailMessage is a class that represents an email message and allows you to set various properties such as the sender, recipient, subject, and body of the email. System.Web.Mail.SmtpMail is a class that provides methods for sending the email message using the Simple Mail Transfer Protocol (SMTP). By using both classes together, you can create and send email messages from your ASP.NET page.
9.
In my .NET Framework I have threads. Which of the following denote the possible priority level for the threads?
Correct Answer
D. All the Above
Explanation
The possible priority levels for threads in the .NET Framework are Normal, AboveNormal, and Highest. This means that threads can have different priority levels based on their importance or urgency. The "All the Above" option correctly includes all the possible priority levels mentioned in the question.
10.
In .NET the operation of reading metadata and using its contents is known as ______?
Correct Answer
A. Reflection
Explanation
In .NET, the operation of reading metadata and using its contents is known as reflection. Reflection allows the program to dynamically examine and manipulate the metadata of types, such as classes, interfaces, methods, properties, etc. It provides the ability to retrieve information about types at runtime, including their properties, methods, and attributes. Reflection is commonly used for tasks such as creating instances of types dynamically, invoking methods dynamically, and accessing and modifying properties dynamically.
11.
In ASP.NET the < authorization > section contain which of the following elements?
Correct Answer
C. Both A) and B)
Explanation
The section in ASP.NET contains both the and elements. These elements are used to specify access control rules for different users or roles. The element denies access to a specific user or role, while the element allows access to a specific user or role. By using both elements, you can create fine-grained access control policies for your ASP.NET application.
12.
The type of code found in Code-Behind class is ________ ?
Correct Answer
A. Server-side code
Explanation
The code found in the Code-Behind class is server-side code. This type of code is executed on the server and is responsible for handling server-side operations and processing. It is used to interact with databases, perform calculations, and generate dynamic content for the client-side to display. Client-side code, on the other hand, is executed on the client's browser and is responsible for handling client-side operations and interactions. Therefore, the correct answer is server-side code.
13.
Common type system is built into which of the following:
Correct Answer
A. CLR
Explanation
The Common Language Runtime (CLR) is built into the Common Type System (CTS). The CTS is a set of rules and guidelines that define how types are declared, used, and managed in the .NET framework. It ensures that different programming languages can interoperate seamlessly by providing a common set of data types and behavior. The CLR, as part of the .NET framework, provides the runtime environment for executing managed code and includes features such as memory management, exception handling, and security. Therefore, the correct answer is CLR.
14.
The actual work process of ASP.NET is taken care by _____________?
Correct Answer
C. Aspnet_wp.exe
Explanation
The actual work process of ASP.NET is taken care of by aspnet_wp.exe. This is the worker process that handles the execution of ASP.NET applications on the web server. It is responsible for processing incoming requests, managing application domains, and handling the execution of ASP.NET code.
15.
Which of the following allow writing formatted output?
Correct Answer
B. Response.Output.Write()
Explanation
Both Response.Write() and Response.Output.Write() allow writing formatted output. The Response.Write() method is used to write a string directly to the HTTP response output stream, while the Response.Output.Write() method is used to write a formatted string to the output stream. Therefore, both options A) and B) are correct.
16.
Which of the following denote the property in every validation control?
Correct Answer
C. Both A) and B)
Explanation
The ControlToValidate property is used in every validation control to specify the input control that needs to be validated. The Text property is used to get or set the text value of the input control being validated. Therefore, both A) and B) denote properties that are present in every validation control.
17.
How many classes can a single .NET DLL contain?
Correct Answer
D. Many
Explanation
A single .NET DLL can contain multiple classes. This allows for better organization and modularization of code, making it easier to manage and maintain. By having multiple classes within a DLL, developers can create reusable components that can be easily accessed and utilized by other applications. This promotes code reusability and enhances the overall efficiency and scalability of the application.
18.
Suppose one wants to modify a SOAP message in a SOAP extension then how this can be achieved. Choose the correct option from below:
Correct Answer
A. One must override the method ReceiveMessage
Explanation
To modify a SOAP message in a SOAP extension, one must override the method ReceiveMessage. This method is responsible for receiving the SOAP message and allows for modifications to be made before further processing. By overriding this method, one can access and modify the SOAP message as needed before it is processed.
19.
Which of the following can be used to add alternating color scheme in a Repeater control?
Correct Answer
A. AlternatingItemTemplate
Explanation
The AlternatingItemTemplate can be used to add an alternating color scheme in a Repeater control. This template allows you to define the layout and formatting for the alternating items in the repeater control. By specifying different styles or colors for the alternating items, you can achieve an alternating color scheme in the control. The DataSource is used to bind data to the repeater control, while the ColorValidator is not relevant to adding an alternating color scheme. Therefore, the correct answer is AlternatingItemTemplate.
20.
Suppose a .NET programmer wants to convert an object into a stream of bytes then the process is called ______________ ?
Correct Answer
A. Serialization
Explanation
Serialization is the process of converting an object into a stream of bytes, typically for the purpose of storing or transmitting the object. This allows the object to be easily reconstructed later. In the given scenario, the .NET programmer wants to convert an object into a stream of bytes, which aligns with the concept of serialization. Therefore, the correct answer is Serialization.
21.
The technique that allow code to make function calls to .NET applications on other processes and on other machines is
Correct Answer
A. .NET Threading
Explanation
.NET Threading is not the correct answer because it is a technique used for managing multiple threads within a single application. .NET Remoting, on the other hand, allows code to make function calls to .NET applications on other processes and on other machines. Therefore, the correct answer is .NET Remoting.
22.
The namespace within the Microsoft .NET framework which provides the functionality to implement transaction processing is ....................
Correct Answer
A. System.EnterpriseServices
Explanation
The correct answer is System.EnterpriseServices. This namespace within the Microsoft .NET framework provides the functionality to implement transaction processing. Transaction processing is a crucial aspect of many applications, especially those that involve multiple operations that need to be executed as a single unit. System.EnterpriseServices provides classes and interfaces that allow developers to manage transactions, ensuring data consistency and integrity. By using this namespace, developers can easily implement transactional behavior in their applications, making it easier to handle complex operations that require atomicity and reliability.
23.
Which of the following method is used to obtain details about information types of assembly?
Correct Answer
C. Both A) and B)
Explanation
Both the GetTypes and GetType methods are used to obtain details about information types of an assembly. The GetTypes method returns an array of Type objects that represent all the types defined in the assembly. On the other hand, the GetType method is used to obtain a Type object that represents a specific type defined in the assembly. Therefore, both methods can be used to retrieve information about the types present in an assembly.
24.
Which of the following is TRUE about Windows Authentication in ASP.NET?
Correct Answer
A. Automatically determines role membership
Explanation
Windows Authentication in ASP.NET automatically determines role membership. This means that ASP.NET can determine the roles that a user belongs to based on the Windows authentication credentials provided. This allows for easy integration with existing Windows user accounts and permissions, making it convenient for developers to implement role-based access control in their applications.
25.
What tags one need to add within the asp:datagrid tags to bind columns manually?
Correct Answer
A. Set AutoGenerateColumns Property to false on the datagrid tag
Explanation
To manually bind columns within the asp:datagrid tags, one needs to set the AutoGenerateColumns property to false on the datagrid tag. This will prevent the automatic generation of columns and allow the user to define and bind the columns manually.
26.
Which method do you invoke on the DataAdapter control to load your generated dataset with data?
Correct Answer
B. Fill( )
Explanation
The correct method to load a generated dataset with data using the DataAdapter control is the Fill() method. This method is used to populate a DataTable or a DataSet with data from a data source, such as a database. It retrieves the data and fills the specified DataTable or DataSet object with the retrieved data. Therefore, the Fill() method is the appropriate choice for loading a dataset with data.
27.
In ASP.NET the sessions can be dumped by using
Correct Answer
B. Session.Abandon
Explanation
In ASP.NET, the correct way to dump or end a session is by using the Session.Abandon method. This method clears all the session variables and releases the session resources. It is commonly used when a user logs out or when the session needs to be terminated for any reason. The other options mentioned, Session.Dump and Session.Exit, are not valid methods in ASP.NET for dumping or ending a session.
28.
ASP.NET is a _________________________ ?
Correct Answer
A. Server Side Scripting Technology
Explanation
ASP.NET is a server-side scripting technology used for building dynamic web applications. It allows developers to create web pages that can interact with databases, handle user input, and perform various server-side tasks. Unlike client-side scripting technologies, which run on the user's browser, ASP.NET scripts are executed on the server before the web page is sent to the client. This enables the server to process data and generate dynamic content, providing a more robust and secure solution for web development.
29.
What is ASP+ ?
Correct Answer(s)
A. ASP+ is the same as ASP.NET.
C. ASP+ is just an early name used by Microsoft when they developed ASP.NET.
Explanation
ASP+ is the correct answer because it states that ASP+ is the same as ASP.NET. This implies that ASP+ is not a separate programming language or web server, but rather an early name used by Microsoft during the development of ASP.NET. This explanation clarifies the relationship between ASP+ and ASP.NET, suggesting that they are essentially the same technology.
30.
ASP stands for ____________ ?
Correct Answer
C. Active Server Page
Explanation
ASP stands for Active Server Page. This technology was developed by Microsoft and is used to create dynamic web pages and web applications. ASP allows for server-side scripting, meaning that the code is executed on the server before the page is sent to the user's browser. This allows for the generation of dynamic content and the ability to interact with databases and other server-side resources.
31.
ASP.NET provides increased performance by ____________________?
Correct Answer
C. Running compiled code.
Explanation
ASP.NET provides increased performance by running compiled code. When an ASP.NET application is first accessed, the source code is compiled into a binary format, which can be directly executed by the server. This eliminates the need for the server to interpret and compile the code each time a request is made, resulting in faster execution and improved performance. Additionally, compiled code can be optimized and cached, further enhancing the performance of the application.
32.
What is the extension of ASP.NET web pages files
Correct Answer
B. .aspx
Explanation
The correct answer is ".aspx". This is the extension used for ASP.NET web pages files. ASP.NET is a web development framework that allows developers to build dynamic web applications. The ".aspx" extension indicates that the file contains ASP.NET code and will be processed by the ASP.NET runtime when requested by a client's web browser.