Microsoft Asp.Net Quiz For Beginners

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Prashantvictory
P
Prashantvictory
Community Contributor
Quizzes Created: 12 | Total Attempts: 217,092
Questions: 32 | Attempts: 9,070

SettingsSettingsSettings
Microsoft Asp.Net Quiz For Beginners - Quiz

ASP. NET is an open-source server-side web application framework designed for web development to produce dynamic web pages. It was developed by Microsoft to allow programmers to build dynamic websites, web applications, and web services. Having begun the course on the application you need adequate revision before the test. Test your basic knowledge for the ASP. NET by taking up the quiz below. All the best!


Questions and Answers
  • 1. 

    The .NET Framework provides a runtime environment called..... ?

    • A.

      RMT

    • B.

      CLR

    • C.

      RCT

    • D.

      RC

    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.

    Rate this question:

  • 2. 

    In ASP.NET in form page the object which contains the user name is ______ ?

    • A.

      Page.User.Identity

    • B.

      Page.User.IsInRole

    • C.

      Page.User.Name

    • D.

      None of the Above

    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.

    Rate this question:

  • 3. 

    Which of the following denote ways to manage state in an ASP.Net Application?

    • A.

      Session objects

    • B.

      Application objects

    • C.

      ViewState

    • D.

      All the Above

    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.

    Rate this question:

  • 4. 

    What is the base class from which all Web forms inherit?

    • A.

      Master Page

    • B.

      Page Class

    • C.

      Session Class

    • D.

      None of the Above

    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.

    Rate this question:

  • 5. 

    WSDL stands for _________________ ?

    • A.

      Web Server Description Language

    • B.

      Web Server Descriptor Language

    • C.

      Web Services Description Language

    • D.

      Web Services Descriptor Language

    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.

    Rate this question:

  • 6. 

    Which of the following must be done in order to connect data from some data resource to Repeater control?

    • A.

      Set the DataSource property

    • B.

      Call the DataBind method

    • C.

      Both A) and B)

    • D.

      None of the Above

    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.

    Rate this question:

  • 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?

    • A.

      DataList

    • B.

      GridView

    • C.

      CompareValidator

    • D.

      Listview

    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.

    Rate this question:

  • 8. 

    Which of the following is used to send email message from my ASP.NET page?

    • A.

      System.Web.Mail.MailMessage

    • B.

      System.Web.Mail.SmtpMail

    • C.

      Both A) and B)

    • D.

      None of the Above

    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.

    Rate this question:

  • 9. 

    In my .NET Framework I have threads. Which of the following denote the possible priority level for the threads?

    • A.

      Normal

    • B.

      AboveNormal

    • C.

      Highest

    • D.

      All the Above

    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.

    Rate this question:

  • 10. 

    In .NET the operation of reading metadata and using its contents is known as ______?

    • A.

      Reflection

    • B.

      Enumeration

    • C.

      Binding

    • D.

      Serialization

    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.

    Rate this question:

  • 11. 

    In ASP.NET the < authorization > section contain which of the following elements?

    • A.

      < deny >

    • B.

      < allow >

    • C.

      Both A) and B)

    • D.

      None of the Above

    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.

    Rate this question:

  • 12. 

    The type of code found in Code-Behind class is ________ ?

    • A.

      Server-side code

    • B.

      Client-side code

    • C.

      Both A) and B)

    • D.

      None of the above

    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.

    Rate this question:

  • 13. 

    Common type system is built into which of the following:

    • A.

      CLR

    • B.

      RCT

    • C.

      RCW

    • D.

      GAC

    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.

    Rate this question:

  • 14. 

    The actual work process of ASP.NET is taken care by _____________?

    • A.

      Inetinfo.exe

    • B.

      Aspnet_isapi.dll

    • C.

      Aspnet_wp.exe

    • D.

      None of the Above

    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.

    Rate this question:

  • 15. 

    Which of the following allow writing formatted output?

    • A.

      Response.Write()

    • B.

      Response.Output.Write()

    • C.

      Both A) and B)

    • D.

      None of the Above

    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.

    Rate this question:

  • 16. 

    Which of the following denote the property in every validation control?

    • A.

      ControlToValidate property

    • B.

      Text property

    • C.

      Both A) and B)

    • D.

      None of the Above

    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.

    Rate this question:

  • 17. 

    How many classes can a single .NET DLL contain?

    • A.

      One

    • B.

      Two

    • C.

      None

    • D.

      Many

    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.

    Rate this question:

  • 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:

    • A.

      One must override the method ReceiveMessage

    • B.

      One must override the method InitializeMethod

    • C.

      Both A) and B)

    • D.

      One must override the method ProcessMessage

    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.

    Rate this question:

  • 19. 

    Which of the following can be used to add alternating color scheme in a Repeater control?

    • A.

      AlternatingItemTemplate

    • B.

      DataSource

    • C.

      ColorValidator

    • D.

      None of the Above

    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.

    Rate this question:

  • 20. 

    Suppose a .NET programmer wants to convert an object into a stream of bytes then the process is called ______________ ?

    • A.

      Serialization

    • B.

      Threading

    • C.

      RCW

    • D.

      AppDomain

    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.

    Rate this question:

  • 21. 

    The technique that allow code to make function calls to .NET applications on other processes and on other machines is

    • A.

      .NET Threading

    • B.

      .NET Remoting

    • C.

      .NET RMT

    • D.

      None of the above

    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.

    Rate this question:

  • 22. 

    The namespace within the Microsoft .NET framework which provides the functionality to implement transaction processing is ....................

    • A.

      System.EnterpriseServices

    • B.

      System.Security

    • C.

      System.Diagnostics

    • D.

      System.Data

    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.

    Rate this question:

  • 23. 

    Which of the following method is used to obtain details about information types of assembly?

    • A.

      GetTypes

    • B.

      GetType

    • C.

      Both A) and B)

    • D.

      None of the Above

    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.

    Rate this question:

  • 24. 

    Which of the following is TRUE about Windows Authentication in ASP.NET?

    • A.

      Automatically determines role membership

    • B.

      Role membership determined only by user programming

    • C.

      ASP.NET does not support Windows Authentication

    • D.

      None of the Above

    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.

    Rate this question:

  • 25. 

    What tags one need to add within the asp:datagrid tags to bind columns manually?

    • A.

      Set AutoGenerateColumns Property to false on the datagrid tag

    • B.

      Set AutoGenerateColumns Property to true on the datagrid tag

    • C.

      It is not possible to do the operation

    • D.

      Set AutomaunalColumns Property to true on the datagrid tag

    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.

    Rate this question:

  • 26. 

    Which method do you invoke on the DataAdapter control to load your generated dataset with data?

    • A.

      Load ( )

    • B.

      Fill( )

    • C.

      DataList

    • D.

      DataBind

    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.

    Rate this question:

  • 27. 

    In ASP.NET the sessions can be dumped by using

    • A.

      Session.Dump

    • B.

      Session.Abandon

    • C.

      Session.Exit

    • D.

      None of the Above

    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.

    Rate this question:

  • 28. 

    ASP.NET is a _________________________ ?

    • A.

      Server Side Scripting Technology

    • B.

      Client Side Scripting Technology

    • C.

      Programming Language

    • D.

      Database Programming Language same as SQL.

    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.

    Rate this question:

  • 29. 

    What is ASP+ ?

    • A.

      ASP+ is the same as ASP.NET.

    • B.

      ASP+ is the Next version of ASP.NET

    • C.

      ASP+ is just an early name used by Microsoft when they developed ASP.NET.

    • D.

      ASP+ is a programming Language Specially developed for ASP.NET

    • E.

      ASP+ is the new Web Server by Microsoft after IIS.

    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.

    Rate this question:

  • 30. 

    ASP stands for ____________ ?

    • A.

      Active Side Pages

    • B.

      Active Script Pages

    • C.

      Active Server Page

    • D.

      Active Script Program

    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.

    Rate this question:

  • 31. 

    ASP.NET provides increased performance by ____________________?

    • A.

      Supporting active variables.

    • B.

      Running CLR.

    • C.

      Running compiled code.

    • D.

      Using IIS Server

    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.

    Rate this question:

  • 32. 

    What is the extension of ASP.NET web pages files

    • A.

      .ashx

    • B.

      .aspx

    • C.

      .asp

    • D.

      .ascx

    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.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Sep 18, 2008
    Quiz Created by
    Prashantvictory
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.