0% found this document useful (0 votes)
26 views30 pages

100+ Dotnet MCQ

The document provides a list of various projects related to Spring Boot, React JS, and MySQL, along with YouTube links for each project. It also includes a series of quiz questions and answers related to .NET programming concepts and features. Additionally, there are options for joining a premium subscription and community for further resources and updates.

Uploaded by

d.ankiit25
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views30 pages

100+ Dotnet MCQ

The document provides a list of various projects related to Spring Boot, React JS, and MySQL, along with YouTube links for each project. It also includes a series of quiz questions and answers related to .NET programming concepts and features. Additionally, there are options for joining a premium subscription and community for further resources and updates.

Uploaded by

d.ankiit25
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 30

Explore More

Subcription : Premium CDAC NOTES & MATERIAL @99

Contact to Join Click to Join


Premium Group Telegram Group

For More E-Notes


Join Our Community to stay Updated

TAP ON THE ICONS TO JOIN!


Project List

pg. 1 contact us on 8007592194 / 9284926333 www.codewitharrays.in


Project List

pg. 2 contact us on 8007592194 / 9284926333 www.codewitharrays.in


Project List

pg. 3 contact us on 8007592194 / 9284926333 www.codewitharrays.in


Project List

Spring Boot + React JS + MySQL Project List


Sr.No Project Name YouTube Link
1 Online E-Learning Hub Platform Project https://youtu.be/KMjyBaWmgzg?si=YckHuNzs7eC84-IW
2 PG Mate / Room sharing/Flat sharing https://youtu.be/4P9cIHg3wvk?si=4uEsi0962CG6Xodp
3 Tour and Travel System Project Version 1.0 https://youtu.be/-UHOBywHaP8?si=KHHfE_A0uv725f12
4 Marriage Hall Booking https://youtu.be/VXz0kZQi5to?si=llOS-QG3TpAFP5k7
5 Ecommerce Shopping project https://youtu.be/vJ_C6LkhrZ0?si=YhcBylSErvdn7paq
6 Bike Rental System Project https://youtu.be/FIzsAmIBCbk?si=7ujQTJqEgkQ8ju2H
7 Multi-Restaurant management system https://youtu.be/pvV-pM2Jf3s?si=PgvnT-yFc8ktrDxB
8 Hospital management system Project https://youtu.be/IynIouBZvY4?si=CXzQs3BsRkjKhZCw
9 Municipal Corporation system Project https://youtu.be/cVMx9NVyI4I?si=qX0oQt-GT-LR_5jF
10 Tour and Travel System Project version 2.0 https://youtu.be/_4u0mB9mHXE?si=gDiAhKBowi2gNUKZ

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

2. Feature of a local variable?

A. It can be used anywhere in the program

B. It must accept a class

C. It must be declared within a metho

D. D It represent a class object

Answer» C. It must be declared within a metho


discuss

3. Two methods with the same name but with different parameters?

A. Overloading

B. Loading

C. Multiplexing

D. Duplexing

Answer» A. Overloading
discuss

4. What is the output of the code public class B: A { }?

A. Errors

B. It defines a class that inherits the public methods of A only

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

5. Which of the following statements is correct about Managed Code?

A. Managed code is the code that is compiled by the JIT compilers.

B. Managed code is the code where resources are Garbage Collected.

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?

C. Managed code is the code that runs on top of Windows.

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?

A. .NET class libraries

B. Common Language Runtime

C. Common Language Infrastructure

D. Common Type System

Answer» A. .NET class libraries


discuss

7. Which of the following .NET components can be used to remove unused references from the managed
heap?

A. Common Language Infrastructure

B. CLR

C. Garbage Collector

D. CTS

Answer» C. Garbage Collector


discuss

8. Which of the following assemblies can be stored in Global Assembly Cache?

A. Private Assemblies

B. Public Assemblies

C. Shared Assemblies

D. Protected Assemblies

Answer» C. Shared Assemblies


discuss

9. Code that targets the Common Language Runtime is known as

A. Unmanaged

B. Distributed

C. Native Code

Answer» D. Managed Code


9. Code that targets the Common Language Runtime is known as

D. Managed Code

Answer» D. Managed Code


discuss

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

11. Which of the following are parts of the .NET Framework?

A. CLR & Framework Class Libraries (FCL)

B. Mobile Applications

C. Microsoft Published Web Services

D. Applications deployed on IIS

Answer» A. CLR & Framework Class Libraries (FCL)


discuss

12. int keyword targets to which .Net type?

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

D. More than one

Answer» A. Only One


discuss
14. The RangeValidator control supports the following data types?

A. Integer only

B. Date, Integer and String

C. Only String

D. Date and Interger

Answer» B. Date, Integer and String


discuss

15. How to kill a user session explicitly?

A. Session.Close()

B. Session.Discard()

C. Session.kill()

D. Session.Abandon()

Answer» D. Session.Abandon()
discuss

16. Different ways a method can be overloaded in C#.NET?

A. Different parameter data types

B. Different number of parameters

C. Different order of parameters

D. All of the Above

Answer» D. All of the Above


discuss

17. Can you store multiple data types in System.Array?

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

18. Can you inherit multiple interfaces?

A. Yes

B. No

C. Both

D. None

Answer» A. Yes
discuss

19. What are the basic techniques for creating a control?

A. Inheriting from an existing control

B. Inherit from User Control

C. Inherit from Control

D. All of above

Answer» D. All of above


discuss

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

21. Which of the following can`t be used in our .NET application?

A. .Net Assemblies

B. ActiveX Control

C. COM type libraries

D. All of the above can be used

Answer» D. All of the above can be used


discuss

22. Which access modifiers are used in the concept of a property?

A. Get / set

B. Try / catch

C. Finally/throw

D. None of the above

Answer» A. Get / set


discuss

23. Choose the form in which Postback occurs?

A. Html

B. Webforms

C. Windows

D. All of above

Answer» B. Webforms
discuss

24. Web.config file is used?

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

C. To configure the web server

D. To configure the web browser

Answer» C. To configure the web server


discuss

25. The first event triggers in an aspx page is?

A. Page_Init()

Answer» A. Page_Init()
25. The first event triggers in an aspx page is?

B. Page_Load()

C. Page_Click()

D. All of the above

Answer» A. Page_Init()
discuss

26. What is used to validate complex string patterns like an e-mail address?

A. Required Field Validator

B. Range Validator

C. Regular Expression Validator

D. Custom Validator

Answer» C. Regular Expression Validator


discuss

27. Which of the following statements is correct about constructors?

A. If we provide a one-argument constructor then the compiler still provides a zero-argument constructor.

B. Static constructors can use optional arguments.

C. Overloaded constructors cannot use optional arguments.

D. If we do not provide a constructor, then the compiler provides a zeroargument 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?

A. As many times as we call it.

B. Only once.

C. Any number of times before the object gets garbage collected.

D. Any number of times before the object is deleted.

Answer» B. Only once.


discuss

29. A property can be declared inside a class, struct, Interface.

A. True

B. False

C. none

D. all

Answer» A. True
discuss

30. A property can be declared inside a namespace or a procedure.

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?

A. Every property must have a set accessor and a get accessor.

B. Properties cannot be overloaded.

C. Properties of a class are actually methods that work like data members.

D. A property has to be either read only or a write only.

Answer» C. Properties of a class are actually methods that work like data members.
discuss

32. Which of the following is NOT a .NET Exception class?

A. Exception

B. StatckMemoryException

C. DivideByZeroException

D. OutofMemoryException

Answer» B. StatckMemoryException
discuss

33. Which of the following statements is correct about an Exception?

A. It occurs during compilation.

B. It occurs during linking.

C. It occurs at run-time.

D. It occurs during loading of the program.

Answer» C. It occurs at run-time.


discuss

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

39. Which of the following is NOT an Exception?

A. Stack Overflow

B. Division By Zero

C. Insufficient Memory

D. Incorrect Arithmetic Expression

Answer» D. Incorrect Arithmetic Expression


discuss

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

41. Which of the following statements is correct about a namespace in C#.NET?

A. Namespaces help us to control the visibility of the elements present in it.

B. A namespace can contain a class but not another namespace.

C. If not mentioned, then the name 'root' gets assigned to the namespace.

D. It is necessary to use the using statement to be able to use an element of a namespace.

Answer» A. Namespaces help us to control the visibility of the elements present in it.
discuss

42. Which of the following CANNOT belong to a C#.NET Namespace?

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?

A. Nested namespaces are not allowed.

B. Importing outer namespace imports inner namespace.

C. Nested namespaces are allowed.

D. If nested, the namespaces cannot be split across files.

Answer» C. Nested namespaces are allowed.


discuss

44. Which of the following denote the web control associated with Table control function of ASP.NET?

A. DataList

B. ListBox

C. TableRow

D. All the above

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

D. None of the above

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

D. None of the above

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

B. Cross page posting

C. Code-front

D. None of the above

Answer» B. Cross page posting


discuss

48. The GridView control in ASP.NET has which of the following features

A. Automatic data binding

B. Automatic paging

C. Both A and B

D. None of the above

Answer» C. Both A and B


discuss

49. Which of the following denote page code model in ASP.NET?

A. Single File

B. Code Behind

C. Both A and B

D. None of the above

Answer» C. Both A and B


discuss

50. Which of the following denote New Data-bound Controls used with ASP.NET?

A. GridView

B. SqlDataSource

C. FormView

D. All of the above

Answer» D. All of the above


discuss
51. A developer wanted to achieve graphics in his display using ASP.NET. Which of the following web controls
are available in ASP.NET to achieve the above?

A. LinkButton

B. AdRotator

C. Both A and B

D. None of the above

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

B. Microsoft SQL Server

C. Session State Service

D. All of the above

Answer» D. All of the above


discuss

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()

D. None of the Above

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

B. Returns the Virtual Path of the web folder

C. Maps the specified virtual path to Physical path

D. None

Answer» A. Returns the physical file path that corresponds to virtual specified path
discuss

56. Which method displays the custom control?

A. The PreRender

B. Render

C. Page_Loa

D. D Display

Answer» B. Render
discuss

57. When is the user controls code is executed

A. After the webform loads

B. After the page_init event of webform

C. Before Page_init event of web form

D. None of the above

Answer» A. After the webform loads


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

59. The .NET Framework provides a runtime environment called

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

Answer» B. Garbage Collection


discuss

61. 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

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

D. None of the Above

Answer» C. Both A and B


discuss

63. In ASP.NET the sessions can be dumped by using

A. Session.Dump

B. Session.Abandon

C. Session.Exit

D. None of the above

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

65. How many classes can a single .NET DLL contain?

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

D. None of the above

Answer» C. Both A and B


discuss

67. 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

Answer» A. Server-side code


discuss

68. Common type system is built into which of the following:

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

69. What is Diffgram?

A. The one which renders the dataset object contents to XML

B. Finds the difference in two objects

C. Finds the difference in two files

D. None of the above

Answer» A. The one which renders the dataset object contents to XML
discuss

70. What is the lifespan for items stored in ViewState?

A. Exists for the Life of the current page

B. 20 mins

C. 2 mins

D. 2 sec

Answer» A. Exists for the Life of the current page


discuss

71. What data types do a RangeValidator Support?

A. Integer

B. String

C. Date

D. All of the above

Answer» D. All of the above


discuss

72. To set page title dynamically in ASP.NET which of the following is used?

A. None of the above

B. <sheet> section

C. <tail> section

D. <head> section

Answer» D. <head> section


discuss
73. In ASP.NET application the Global.asax file lie in which directory

A. Application

B. System

C. Root

D. None of the above

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

D. None of the above

Answer» C. DataList
discuss

75. How do we Delete, Update, Select data in a Dataset?

A. Using SQLDataAdapter

B. Using SQLDataReader

C. Using SQLComman

D. D None

Answer» A. Using SQLDataAdapter


discuss

76. What is the size of the session ID?

A. 32 bit long string

B. 32 bit long double

C. 32 bit long character

D. 32 bit long integer

Answer» D. 32 bit long integer


discuss

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

79. What is default timeout of session?

A. 5

B. 10

C. 20

D. 30

Answer» C. 20
discuss

80. Which concept is used to provide consistent layout in webform?

A. Master Page

B. Themes

C. GridView

D. None of the above

Answer» A. Master Page


discuss

81. An alternative way of displaying text on web page using

A. Asp:label

B. Asp:listitem

C. Asp:button

D. None of the above

Answer» A. Asp:label
discuss
82. Why is Global.asax is used?

A. Declare Global variables

B. Implement application and session level events

C. No use

D. None of the above

Answer» B. Implement application and session level events


discuss

83. Which of the following is not a member of ADO DBCommand object?

A. ExecuteScalar

B. ExecuteStream

C. Open

D. ExecuteReader

Answer» C. Open
discuss

84. Default Session data is stored in ASP.Net.

A. StateServer

B. Session Object

C. InProcess

D. all of the above

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

86. Mode of storing ASP.NET session

A. InProc

B. StateServer

Answer» D. All of the above


86. Mode of storing ASP.NET session

C. SQL Server

D. All of the above

Answer» D. All of the above


discuss

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

A. Session objects

B. Application objects

C. ViewState

D. All of the above

Answer» D. All of the above


discuss

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

C. Both C-Sharp and VB

D. C++

Answer» C. Both C-Sharp and VB


discuss

92. By default, ASP.NET store SessionIDs in _________.

A. Cookies

B. Cache

C. Database

D. Global Variable

Answer» A. Cookies
discuss

93. Which of the following is not an ASP.NET page event?

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

Answer» A. Content Pages


95. Master pages are used to provide the code and appearance that are the same for a series of __________.

B. Base pages

C. Both A and B

D. None of the above

Answer» A. Content Pages


discuss

96. Menus, TreeView and SiteMapPath controls cannot be styled with CSS

A. True

B. False

C. none

D. all

Answer» B. False
discuss

97. Every Server control must have an Id

A. True

B. False

C. none

D. all

Answer» A. True
discuss

98. Application_Start event is available in ___________.

A. Web.config

B. Local.asax

C. Global.asax

D. None of the above

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://t.me/codewitharrays Group Link: https://t.me/ccee2025notes

+91 8007592194 +91 9284926333

[email protected]

https://codewitharrays.in/project

You might also like