100+ Dotnet MCQ
100+ Dotnet MCQ
Sr.No
Project Name YouTube Link
11 Tour and Travel System Project version 3.0 https://youtu.be/Dm7nOdpasWg?si=P_Lh2gcOFhlyudug
12 Gym Management system Project https://youtu.be/J8_7Zrkg7ag?si=LcxV51ynfUB7OptX
13 Online Driving License system Project https://youtu.be/3yRzsMs8TLE?si=JRI_z4FDx4Gmt7fn
14 Online Flight Booking system Project https://youtu.be/m755rOwdk8U?si=HURvAY2VnizIyJlh
15 Employee management system project https://youtu.be/lD1iE3W_GRw?si=Y_jv1xV_BljhrD0H
16 Online student school or college portal https://youtu.be/4A25aEKfei0?si=RoVgZtxMk9TPdQvD
17 Online movie booking system project https://youtu.be/Lfjv_U74SC4?si=fiDvrhhrjb4KSlSm
18 Online Pizza Delivery system project https://youtu.be/Tp3izreZ458?si=8eWAOzA8SVdNwlyM
19 Online Crime Reporting system Project https://youtu.be/0UlzReSk9tQ?si=6vN0e70TVY1GOwPO
20 Online Children Adoption Project https://youtu.be/3T5HC2HKyT4?si=bntP78niYH802I7N
pg. 4 contact us on 8007592194 / 9284926333 www.codewitharrays.in
1. A variable which is declared inside a method is called?
A. Serial
B. Local
C. Private
D. Static
Answer» B. Local
discuss
3. Two methods with the same name but with different parameters?
A. Overloading
B. Loading
C. Multiplexing
D. Duplexing
Answer» A. Overloading
discuss
A. Errors
C. It defines a class that inherits all the methods of A but the private members cannot be accesse
D. D Both b and c
Answer» C. It defines a class that inherits all the methods of A but the private members cannot be accesse
discuss
Answer» D. Managed code is the code that is written to target the services of the CLR.
5. Which of the following statements is correct about Managed Code?
D. Managed code is the code that is written to target the services of the CLR.
Answer» D. Managed code is the code that is written to target the services of the CLR.
discuss
6. Which of the following components of the .NET framework provide an extensible set of classes that can be
used by any .NET compliant programming language?
7. Which of the following .NET components can be used to remove unused references from the managed
heap?
B. CLR
C. Garbage Collector
D. CTS
A. Private Assemblies
B. Public Assemblies
C. Shared Assemblies
D. Protected Assemblies
A. Unmanaged
B. Distributed
C. Native Code
D. Managed Code
10. Which of the following is the root of the .NET type hierarchy?
A. System.Object
B. System.Type
C. System.Base
D. System.Root
Answer» A. System.Object
discuss
B. Mobile Applications
A. System.Int8
B. System.Int16
C. System.Int32
D. System.Int64
Answer» C. System.Int32
discuss
13. How many web.config files that can be there an ASP.NET application?
A. Only One
B. Only Two
C. Upto 10
A. Integer only
C. Only String
A. Session.Close()
B. Session.Discard()
C. Session.kill()
D. Session.Abandon()
Answer» D. Session.Abandon()
discuss
A. No
B. Yes
Answer» A. No
17. Can you store multiple data types in System.Array?
C. Both
D. None
Answer» A. No
discuss
A. Yes
B. No
C. Both
D. None
Answer» A. Yes
discuss
D. All of above
20. All control inherits either directly or indirectly from the base class control?
A. Yes
B. No
C. Both
D. None
Answer» A. Yes
discuss
A. .Net Assemblies
B. ActiveX Control
A. Get / set
B. Try / catch
C. Finally/throw
A. Html
B. Webforms
C. Windows
D. All of above
Answer» B. Webforms
discuss
A. Configures the time that the server-side code behind module is called
B. To store the global information and variable definitions for the application
A. Page_Init()
Answer» A. Page_Init()
25. The first event triggers in an aspx page is?
B. Page_Load()
C. Page_Click()
Answer» A. Page_Init()
discuss
26. What is used to validate complex string patterns like an e-mail address?
B. Range Validator
D. Custom Validator
A. If we provide a one-argument constructor then the compiler still provides a zero-argument constructor.
Answer» D. If we do not provide a constructor, then the compiler provides a zeroargument constructor.
discuss
28. How many times can a constructor be called during lifetime of the object?
B. Only once.
A. True
B. False
C. none
D. all
Answer» A. True
discuss
A. True
B. False
C. none
D. all
Answer» B. False
discuss
31. Which of the following statements is correct about properties used in C#.NET?
C. Properties of a class are actually methods that work like data members.
Answer» C. Properties of a class are actually methods that work like data members.
discuss
A. Exception
B. StatckMemoryException
C. DivideByZeroException
D. OutofMemoryException
Answer» B. StatckMemoryException
discuss
C. It occurs at run-time.
34. In C#.NET if we do not catch the exception thrown at runtime then which of the following will catch it?
A. Compiler
Answer» B. CLR
34. In C#.NET if we do not catch the exception thrown at runtime then which of the following will catch it?
B. CLR
C. Linker
D. Loader
Answer» B. CLR
discuss
35. Which of the following is the Object Oriented way of handling run-time errors?
A. OnError
B. HERESULT
C. Exceptions
D. Error Codes
Answer» C. Exceptions
discuss
36. Exceptions can be thrown even from a constructor, whereas error codes cannot be returned from a
constructor.
A. True
B. False
C. none
D. all
Answer» A. True
discuss
37. All code inside finally block is guaranteed to execute irrespective of whether an exception occurs in the
protected block or not.
A. True
B. False
C. none
D. all
Answer» A. True
discuss
38. It is compulsory for all classes whose objects can be thrown with throw statement to be derived from
System.Exception class.
A. True
Answer» B. False
38. It is compulsory for all classes whose objects can be thrown with throw statement to be derived from
System.Exception class.
B. False
C. none
D. all
Answer» B. False
discuss
A. Stack Overflow
B. Division By Zero
C. Insufficient Memory
40. Which of the following is NOT a namespace in the .NET Framework Class Library?
A. System.Process
B. System.Security
C. System.Threading
D. System.Drawing
Answer» A. System.Process
discuss
C. If not mentioned, then the name 'root' gets assigned to the namespace.
Answer» A. Namespaces help us to control the visibility of the elements present in it.
discuss
A. Class
B. Struct
C. Enum
Answer» D. Data
42. Which of the following CANNOT belong to a C#.NET Namespace?
D. Data
Answer» D. Data
discuss
43. Which of the following statements is correct about a namespace used in C#.NET?
44. Which of the following denote the web control associated with Table control function of ASP.NET?
A. DataList
B. ListBox
C. TableRow
Answer» C. TableRow
discuss
45. ASP.NET separates the HTML output from program logic using a feature named as
A. Exception
B. Code-behind
C. Code-front
Answer» B. Code-behind
discuss
46. If a developer of ASP.NET defines style information in a common location. Then that location is called as
A. Master Page
B. Theme
C. Customization
Answer» B. Theme
discuss
47. The feature in ASP.NET 2.0 that is used to fire a normal postback to a different page in the application is
called
A. Theme
C. Code-front
48. The GridView control in ASP.NET has which of the following features
B. Automatic paging
C. Both A and B
A. Single File
B. Code Behind
C. Both A and B
50. Which of the following denote New Data-bound Controls used with ASP.NET?
A. GridView
B. SqlDataSource
C. FormView
A. LinkButton
B. AdRotator
C. Both A and B
Answer» B. AdRotator
discuss
52. In ASP.NET if one wants to maintain session then which of the following is used?
A. In-Process Storage
53. I have an ASP.NET application. I have a page loaded from server memory. At this instance which of the
following methods gets fired
A. Unload()
B. Load()
C. PreRender()
Answer» B. Load()
discuss
54. Give one word: What model does ASP.NET request processing is based on
A. Buttom-up
B. Top-down
C. Waterfall
D. Pipeline
Answer» D. Pipeline
discuss
55. What is the significance of Server.MapPath
A. Returns the physical file path that corresponds to virtual specified path
D. None
Answer» A. Returns the physical file path that corresponds to virtual specified path
discuss
A. The PreRender
B. Render
C. Page_Loa
D. D Display
Answer» B. Render
discuss
58. What section of the Web.config file is used for storing a list of authorized users?
A. Authorization
B. Authentication
C. SecurityPolicy
D. None
Answer» A. Authorization
discuss
A. RMT
B. CLR
C. CTS
Answer» B. CLR
59. The .NET Framework provides a runtime environment called
D. RCT
Answer» B. CLR
discuss
60. The .NET framework which provides automatic memory management using a technique called
A. Serialization
B. Garbage Collection
C. Assemblies
D. Overriding
61. Which of the following can be used to add alternating color scheme in a Repeater control?
A. AlternatingItemTemplate
B. DataSource
C. ColorValidator
Answer» A. AlternatingItemTemplate
discuss
62. Which of the following method is used to obtain details about information types of assembly?
A. GetTypes
B. GetType
C. Both A and B
A. Session.Dump
B. Session.Abandon
C. Session.Exit
Answer» B. Session.Abandon
discuss
64. Which method do you invoke on the DataAdapter control to load your generated dataset with data?
A. Load()
B. Fill()
C. DataList
D. DataBind
Answer» B. Fill()
discuss
A. One
B. Two
C. None
D. Many
Answer» D. Many
discuss
66. Which of the following denote the property in every validation control?
A. ControlToValidate
B. Text
C. Both A and B
A. Server-side code
B. Client-side code
C. Both A and B
A. CLR
B. RCT
Answer» A. CLR
68. Common type system is built into which of the following:
C. RCW
D. GAC
Answer» A. CLR
discuss
Answer» A. The one which renders the dataset object contents to XML
discuss
B. 20 mins
C. 2 mins
D. 2 sec
A. Integer
B. String
C. Date
72. To set page title dynamically in ASP.NET which of the following is used?
B. <sheet> section
C. <tail> section
D. <head> section
A. Application
B. System
C. Root
Answer» C. Root
discuss
74. The control used in ASP.NET to display information from data set but with better formatting and editing
behavior is
A. Panel
B. Button
C. DataList
Answer» C. DataList
discuss
A. Using SQLDataAdapter
B. Using SQLDataReader
C. Using SQLComman
D. D None
77. Which of the following extension does a WebService file will have?
A. .asmx
B. .aspx
Answer» A. .asmx
77. Which of the following extension does a WebService file will have?
C. .ascx
D. .resx
Answer» A. .asmx
discuss
78. Which of the following extension does a WebForm file will have?
A. .asmx
B. .aspx
C. .ascx
D. .resx
Answer» B. .aspx
discuss
A. 5
B. 10
C. 20
D. 30
Answer» C. 20
discuss
A. Master Page
B. Themes
C. GridView
A. Asp:label
B. Asp:listitem
C. Asp:button
Answer» A. Asp:label
discuss
82. Why is Global.asax is used?
C. No use
A. ExecuteScalar
B. ExecuteStream
C. Open
D. ExecuteReader
Answer» C. Open
discuss
A. StateServer
B. Session Object
C. InProcess
Answer» C. InProcess
discuss
85. Which of the following control is used to validate that two fields are equal?
A. RegularExpressionValidator
B. CompareValidator
C. Equals() metho
D. D RequiredFieldValidator
Answer» B. CompareValidator
discuss
A. InProc
B. StateServer
C. SQL Server
87. Which of the following denote ways to manage state in an ASP.Net Application?
A. Session objects
B. Application objects
C. ViewState
88. In .NET the operation of reading metadata and using its contents is known as ______?
A. Reflection
B. Enumeration
C. Binding
D. Serialization
Answer» A. Reflection
discuss
89. When an .aspx page is requested from the web server, the output will be rendered to browser in following
format?
A. HTML
B. XML
C. WML
D. JSP
Answer» A. HTML
discuss
90. Select the control which does not have any visible interface.
A. Datalist
B. DropdownList
C. Repeater
D. DataGrid
Answer» C. Repeater
discuss
91. Which of the following languages are used to write server side scripting in ASP.NET?
A. C-Sharp
B. VB
D. C++
A. Cookies
B. Cache
C. Database
D. Global Variable
Answer» A. Cookies
discuss
A. Init
B. Load
C. Import
D. Disposed
Answer» C. Import
discuss
94. What class does the ASP.NET web form class inherit from by default?
A. System.Web.UI.Page
B. System.Web.UI.Form
C. System.Web.GUI.Page
D. System.Web.Form
Answer» A. System.Web.UI.Page
discuss
95. Master pages are used to provide the code and appearance that are the same for a series of __________.
A. Content Pages
B. Base pages
C. Both A and B
96. Menus, TreeView and SiteMapPath controls cannot be styled with CSS
A. True
B. False
C. none
D. all
Answer» B. False
discuss
A. True
B. False
C. none
D. all
Answer» A. True
discuss
A. Web.config
B. Local.asax
C. Global.asax
Answer» C. Global.asax
discuss
99. Properties and Indexer are used to access which type of data members?
A. Private
B. Publi
C. C Protecte
D. D Internal
Answer» A. Private
discuss
https://www.youtube.com/@codewitharrays
https://www.instagram.com/codewitharrays/
https://codewitharrays.in/project