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 component of the .NET Framework that provides a runtime environment for executing and managing applications. It is responsible for tasks such as memory management, security, and exception handling. The CLR also provides services such as JIT (Just-In-Time) compilation, which converts intermediate language code into machine code at runtime for improved performance.
2.
In ASP.NET in form page the object which contains the user name is ______ ?
Correct Answer
A. Page.User.Identity
Explanation
In ASP.NET, the object that contains the user name in a form page is Page.User.Identity. This object represents the identity of the user making the request and provides access to properties such as the user name. The other options, Page.User.IsInRole and Page.User.Name, do not directly provide the user name.
3.
Find the term: The .NET framework which provides automatic memory management using a technique called ______________ ?
Correct Answer
B. Garbage Collection
Explanation
The correct answer is Garbage Collection. In the .NET framework, Garbage Collection is a technique used for automatic memory management. It helps to identify and free up memory that is no longer in use by the program, thus preventing memory leaks and improving performance. This process involves identifying and removing objects that are no longer referenced by the program, allowing the memory to be reused for other purposes.
4.
Which of the following denote ways to manage state in an ASP.Net Application?
Correct Answer
D. All the Above
Explanation
The correct answer is "All the Above" because all three options mentioned - Session objects, Application objects, and ViewState - are ways to manage state in an ASP.Net Application. Session objects allow storing and retrieving user-specific data across multiple requests, Application objects allow storing and retrieving data that is shared among all users of the application, and ViewState allows preserving the state of controls during postbacks. Therefore, all three options are valid ways to manage state in an ASP.Net Application.
5.
What is the base class from which all Web forms inherit?
Correct Answer
B. Page Class
Explanation
The correct answer is Page Class. In ASP.NET, the Page class is the base class from which all Web forms inherit. It provides a set of properties, methods, and events that are commonly used in web development. The Page class represents an individual web page and is responsible for handling user events, rendering HTML content, and managing the page's lifecycle. It provides a framework for building dynamic and interactive web applications.
6.
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 of a web service. WSDL provides a standardized way for different applications to communicate with each other over a network. It defines the operations, messages, data types, and protocols used by the web service. By using WSDL, developers can easily understand and integrate the web service into their own applications.
7.
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 the DataSource property must be set and the DataBind method must be called. The DataSource property is used to specify the data source for the Repeater control, while the DataBind method is used to bind the data source to the Repeater control. Therefore, in order to successfully connect the data from a data resource to a Repeater control, both A) and B) must be done.
8.
Which of the following is FALSE?
Correct Answer
D. None of the Above
Explanation
The statement "ASP.NET applications run without a Web Server" is false because ASP.NET applications require a web server to run. ASP.NET is a framework developed by Microsoft for building web applications and it relies on a web server to process the requests and serve the application to clients. ASP+ and ASP.NET do not refer to the same thing as ASP+ was an early codename for ASP.NET, which is a major upgrade over classic ASP. Therefore, the correct answer is "None of the Above".
9.
Which of the following transfer execution directly to another page?
Correct Answer
A. Server.Transfer
Explanation
Server.Transfer is the correct answer because it allows for transferring the execution directly to another page on the server without the client being aware of the transfer. This means that the URL in the browser's address bar does not change, and the client's request is processed by the new page. In contrast, Response.Redirect causes the client's browser to be redirected to a new URL, resulting in a new request being made to the server.
10.
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
A CompareValidator control must be used in this scenario. The CompareValidator control allows for comparing the values of two different web form controls. It can be used to check if the values in the two web form controls match each other.
11.
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 used to create an email message and System.Web.Mail.SmtpMail is used to send the email message using the Simple Mail Transfer Protocol (SMTP). By using both A) and B), developers can create and send email messages from their ASP.NET pages.
12.
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 a normal priority level, above normal priority level, or the highest priority level. Therefore, all of the given options - Normal, AboveNormal, and Highest - denote the possible priority levels for the threads.
13.
In .NET the operation of reading metadata and using its contents is known as ______?
Correct Answer
A. Reflection
Explanation
Reflection in .NET refers to the ability of a program to examine and manipulate its own structure, properties, and behavior at runtime. It allows accessing and analyzing metadata, such as classes, methods, properties, and attributes, of an assembly. Reflection is commonly used for dynamically loading types, invoking methods, creating instances, and accessing and modifying properties at runtime. It provides a powerful mechanism for building flexible and extensible applications by enabling developers to perform operations based on the runtime information of their code.
14.
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, developers can define fine-grained access control policies for their web applications.
15.
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 means that it is executed on the server rather than on the client's browser. Server-side code is responsible for processing requests, interacting with databases, and generating HTML or other content to be sent back to the client. This code is typically written in languages such as C# or VB.NET and is used to handle the logic and functionality of a web application.
16.
Common type system is built into which of the following:
Correct Answer
A. CLR
Explanation
The Common Language Runtime (CLR) is built into the CLR itself. The CLR is a component of the .NET framework that provides various services such as memory management, exception handling, and security. It is responsible for executing .NET programs and managing the execution environment. Therefore, the correct answer is CLR.
17.
The actual work process of ASP.NET is taken care by _____________?
Correct Answer
C. Aspnet_wp.exe
Explanation
The correct answer is aspnet_wp.exe. This is because aspnet_wp.exe is responsible for managing the worker process of ASP.NET applications. It handles the execution of ASP.NET code and manages resources such as memory and threads. inetinfo.exe is the Internet Information Services (IIS) process responsible for handling incoming HTTP requests, while aspnet_isapi.dll is an ISAPI extension that allows IIS to communicate with the ASP.NET runtime. Therefore, neither of these options is the correct answer.
18.
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 writes a string directly to the output stream without any formatting. On the other hand, the Response.Output.Write() method allows for more control over the output by providing formatting options. Therefore, both options A) and B) are correct.
19.
Which of the following denote the property in every validation control?
Correct Answer
C. Both A) and B)
Explanation
The correct answer is Both A) and B). In every validation control, the ControlToValidate property is used to specify the input control to validate, and the Text property is used to get or set the text displayed in the validation control. Both of these properties are important for the validation process and are present in every validation control.
20.
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 modularity of code, as different classes can be grouped together based on their functionality. It also promotes code reusability, as these classes can be accessed and used by other applications or projects. Therefore, the correct answer is "Many."
21.
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, allowing the extension to intercept and modify it before further processing. By overriding this method, the extension can access the SOAP message and make the necessary modifications according to the requirements.
22.
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 appearance of the alternating items in the Repeater control. By specifying different colors or styles for the alternating items, you can create a visually appealing and organized display for the repeated data. The other options, DataSource and ColorValidator, are not related to adding an alternating color scheme in a Repeater control.
23.
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, which can then be stored or transmitted. This allows the object to be recreated later, either in the same application or in a different one. In the context of the given question, the correct answer is Serialization, as it accurately describes the process of converting an object into a stream of bytes.
24.
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 that allows code to execute multiple threads within a single process, but it does not specifically enable function calls to .NET applications on other processes or machines. .NET RMT is not the correct answer because it is not a recognized term or technology in the .NET framework. None of the above is not the correct answer because there is a specific technique in .NET that allows function calls to .NET applications on other processes and machines, which is .NET Remoting.
25.
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 because this namespace in the Microsoft .NET framework is specifically designed to provide the functionality for implementing transaction processing. It includes classes and interfaces that allow developers to create and manage transactions, ensuring the consistency and reliability of data operations in a distributed environment. System.Security, System.Diagnostics, and System.Data are other namespaces in the .NET framework, but they do not specifically focus on transaction processing functionality.
26.
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 all the types defined in the assembly, while the GetType method is used to retrieve information about a specific type within the assembly. Therefore, both methods can be used to obtain information about the types present in an assembly.
27.
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 without requiring any additional programming. This is a convenient feature as it allows developers to easily implement role-based authorization and access control in their applications without having to manually manage and assign roles to users.
28.
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 bind columns manually within the asp:datagrid tags, one needs to set the AutoGenerateColumns Property to false on the datagrid tag. This will disable the automatic generation of columns and allow the user to manually define the columns for data binding.
29.
Which method do you invoke on the DataAdapter control to load your generated dataset with data?
Correct Answer
B. Fill( )
Explanation
The correct answer is "Fill( )". This method is invoked on the DataAdapter control to load a generated dataset with data. It retrieves data from a data source and populates the dataset with the retrieved data.
30.
In ASP.NET the sessions can be dumped by using
Correct Answer
B. Session.Abandon
Explanation
The correct answer is Session.Abandon. In ASP.NET, the Session.Abandon method is used to abandon or end a user's session. When this method is called, the session state is reset and all session data is removed. This can be useful in scenarios where you want to clear out session data and start a new session for the user. The other options, Session.Dump and Session.Exit, are not valid methods in ASP.NET for dumping or ending sessions.
31.
ASP.NET is a _________________________ ?
Correct Answer
A. Server Side Scripting Technology
Explanation
ASP.NET is a server-side scripting technology used for developing dynamic web applications. It allows developers to build web pages and applications that can run on a web server. Unlike client-side scripting technologies, which run on the user's browser, server-side scripting technologies execute on the server before sending the response to the client. ASP.NET enables the server to process user requests, interact with databases, and generate dynamic content, making it a suitable choice for server-side scripting.
32.
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 same as ASP.NET. The answer suggests that ASP+ and ASP.NET are essentially the same thing. It implies that ASP+ was just an early name used by Microsoft when they were developing ASP.NET.
33.
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 for creating dynamic and interactive web pages. ASP allows the server to generate dynamic content by embedding server-side scripts within HTML pages. These scripts can be written in various programming languages such as VBScript or JScript. ASP enables the execution of server-side code before the page is sent to the user's browser, allowing for dynamic content generation based on user input or other factors.
34.
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 deployed, the source code is compiled into an intermediate language (IL) that can be executed by the Common Language Runtime (CLR). This compilation process improves performance because the code is pre-compiled and optimized, reducing the overhead of just-in-time (JIT) compilation that occurs with interpreted languages. By running compiled code, ASP.NET can execute faster, resulting in improved performance for the application.
35.
What is the extension of ASP.NET web pages files
Correct Answer
B. .aspx
Explanation
The extension of ASP.NET web pages files is .aspx.