.NET/ C# Interview Masterclass - Top 500 Questions & Answers

8h 31m 35s
English
Paid
May 8, 2024

Are you checking out multiple websites and videos for collecting the interview questions? Your search is over here. All .NET interview questions are covered in this question bank. This course contains 200 most important questions + 300 more questions for practice. The instructor has more than 13 years of experience in DotNet technologies and given and taken more than 100 interviews in his career.

Watch Online .NET/ C# Interview Masterclass - Top 500 Questions & Answers

Join premium to watch
Go to premium
# Title Duration
1 Introduction (PDF book attached here in resources) 03:11
2 Introduction 00:42
3 Q1. What is C#? What is the difference between C# and .NET? 02:11
4 Q2. What is OOPS? What are the main concepts of OOPS? 00:58
5 Q3. What are the advantages of OOPS? 02:29
6 Q4. What are the limitations of OOPS? 00:43
7 Q5. What are Classes and Objects? 03:48
8 Q6. What are the types of classes in C#? 00:25
9 Q7. Is it possible to prevent object creation of a class in C#? 00:38
10 Q8. What is Property? 01:00
11 Q9. What is the difference between Property and Function? 00:56
12 Q10. What are Namespaces? 01:01
13 Introduction 00:44
14 Q11. What is Inheritance? When to use Inheritance? 02:48
15 Q12. What are the different types of Inheritance? 03:27
16 Q13. Does C# support Multiple Inheritance? How to you implement 00:47
17 Q14. How to prevent a class from being Inherited? 02:03
18 Q15. Are private class members inherited to the derived class? 00:46
19 Q16. What is Abstraction? How to implement abstraction in real applications? 02:27
20 Q17. What is Encapsulation? How to implement encapsulation in real applications? 03:14
21 Q18. What is the difference between Abstraction and Encapsulation? 01:56
22 Q19. What is Polymorphism and what are its types? When to use polymorphism? 02:29
23 Q20. What is Method Overloading? In how many ways a method can be overloaded? 01:58
24 Q21. When should you use method overloading in real applications? 00:57
25 Q22. If two methods have same except return type, then methods are overloaded? 00:42
26 Q23. What is the difference between Overloading and Overriding? 02:38
27 Q24.Use of Overriding ? When should I override the method in real applications ? 02:06
28 Q25. Method is marked as virtual,do we have to "override" it from the child base 00:38
29 Q26. What is the difference between Method Overriding and Method Hiding? 02:58
30 Introduction 00:38
31 Q27. What is the difference between an Abstract class and an Interface? V.IMP. 03:48
32 Q28. When to use Interface and when Abstract class in real applications? 02:27
33 Q29. Why to create Interfaces in real applications? 01:19
34 Q30.Can we define body of Interfaces methods ? 01:05
35 Q31. Can you create an instance of an Abstract class or an Interface? 00:49
36 Q32. Do Interface can have a Constructor? 00:20
37 Q33. Do abstract class have Constructors in C#? 00:49
38 Q34. What is the difference between abstraction and abstract class? 00:24
39 Q35. Can Abstract class be Sealed or Static in C#? 00:30
40 Q36. Can you declare abstract methods as private in C#? 00:42
41 Q37. Does Abstract class support multiple Inheritance? 00:29
42 Mock Interview 1 01:10
43 Introduction 00:28
44 Q38. What are Access Specifiers? 01:43
45 Q39. What is internal access modifier? Show example. 01:11
46 Q40. What is the default access modifier in a class? 00:10
47 Q41. What is Boxing and Unboxing? Where to use them in real applications? 01:52
48 Q42. Which one is explicit Boxing or Unboxing? 00:30
49 Q43. Is Boxing and Unboxing good for performance? 00:40
50 Q44. What are the basic string operations in C#? 01:00
51 Q45. What is the difference between “String” and “StringBuilder”? 01:55
52 Q46. When to use String and when StringBuilder in real applications? 00:41
53 Q47. What is String Interpolation in C#? 01:01
54 Introduction 00:32
55 Q48. What are the Loop types in C#? When to use what in real applications? 02:45
56 Q49. What is the difference between “continue” and “break” statement? 01:38
57 Q50. What are the alternative ways of if-else conditions? When to use what? 03:59
58 Q51. How to implement Exception Handling in C#? 00:58
59 Q52. Can we execute multiple Catch blocks? 00:48
60 Q53. When to use Finally in real applications? 00:50
61 Q54. Can we have only “Try” block without “Catch” block? 00:50
62 Q55. What is the difference between Finally and Finalize? 00:31
63 Q56. What is the difference between “throw ex” and “throw”? 02:39
64 Introduction 00:54
65 Q57. Explain Generics in C#? When and why to use them? 05:53
66 Q58. What are Collections in C# and what are their types? 01:47
67 Q59. What is the difference between Array and ArrayList? 01:50
68 Q60. What is the difference between Arraylist and Hashtable? 00:45
69 Q61. What is the difference between List and Dictionary Collections? 01:39
70 Q62. What isВ IEnumerable in C#? 01:14
71 Q63. What is the difference between IEnumerable and IEnumeratorВ in C#? 01:12
72 Q64. What is the difference between IEnumerable & IQueryable? 03:45
73 Mock Interview 2 00:37
74 Introduction 00:29
75 Q65. What is a Constructor? When to use constructor in real applications? 00:56
76 Q66. What are the types of constructor? 00:17
77 Q67. What is Default constructor? 00:48
78 Q68. What is Parameterized constructor? 00:39
79 Q69. What is Static constructor? What is the use in real applications? 01:00
80 Q70. Can we have parameters or access modifier in static constructor? 00:18
81 Q71. What is Copy constructor? 01:00
82 Q72. What is Private constructor? What is the use? 00:54
83 Q73. What is Constructor overloading? 00:40
84 Q74. What is Destructor? 00:44
85 Q75. Can you create object of class with private constructor in C#? 00:23
86 Q76. If base & child both class have constructors, which will be called first? 00:25
87 Introduction 00:23
88 Q77. What is a Method in C#? 00:28
89 Q78. Difference between Pass by Value and Pass by Reference Parameters? 02:10
90 Q79. How to return more than one value from a method in C#? 01:09
91 Q80. What is the difference between “out” and “ref” parameters? 02:00
92 Q81. What is “params” keyword? When to use params keyword in real applications? 00:59
93 Q82. What are optional parameters in a method? 01:01
94 Q83. What are named parameters in a method? 01:08
95 Q84. What are extension Methods? When to use them? V Imp 04:55
96 Q85. What are Delegates in C#? When to use delegates in real applications? 02:15
97 Q86. What are Multicast Delegates? 01:14
98 Q87. What are Anonymous Delegates in C#? 00:59
99 Q88. What are the differences between Events and Delegates? 01:35
100 Introduction 00:28
101 Q89. What is “this” keyword in C#? When to use it in real application? 01:52
102 Q90. What is the purpose of “using” keyword in C#? 03:12
103 Q91. Can we use Using keyword with other classes apart from DB Connection? 00:26
104 Q92. What is the difference between “is” and “as” operators? 02:07
105 Q93. What is the difference between “Readonly” and “Constant” variables? 03:10
106 Q94. What is “Static” class? When to use it? 02:12
107 Q95. What is the difference between “var” and “dynamic” in C#? 01:49
108 Q96. What is Enum keyword used for? 01:24
109 Q97. Is it possible to inherit Enum in C#? 00:23
110 Q98. What is the use of Yield keyword in C#? 04:19
111 Introduction 00:26
112 Q99. What is LINQ? When to use LINQ in real applications? 02:01
113 Q100. What are the advantages & disadvantages of LINQ? 01:08
114 Q101. What is Lambda Expressions? What is the use in real applications? 02:33
115 Q102. What is the difference between First and FirstOrDefault methods in LINQ? 01:05
116 Mock Interview 3 00:44
117 Introduction 00:44
118 Q103. What are the important components of .NET framework? 04:16
119 Q104. What is an Assembly? What are the different types of assembly in .NET? 02:28
120 Q105. What is GAC? 00:38
121 Q106. What is Reflection? 01:53
122 Q107. Serialization and Deserialization? What are the types of serialization? 02:46
123 Q108. What is meant by Globalization and Localization? 01:41
124 Q109. What are Window Services? 01:46
125 Introduction 00:27
126 Q110. What is Garbage Collection(GC)? 01:36
127 Q111. What are Generations in garbage collection? 02:33
128 Q112. What is the difference between “Dispose” and “Finalize”? 02:19
129 Q113. What is the difference between “Finalize” and “Finally” methods? 01:03
130 Q114. Can we force Garbage Collector to run? 01:22
131 Introduction 00:43
132 Q115. What is the difference between Process and Thread? 01:10
133 Q116. Explain Multithreading? 01:01
134 Q117. What is the difference between synchronous and asynchronous programming? 03:48
135 Q118. Difference between Threads & Tasks? Advantages of Tasks over threads ? 02:56
136 Q119. What is the role of Async and Await ? 07:06
137 Mock Interview 4 00:55
138 Introduction 00:44
139 Q120. What is the difference between DBMS and RDBMS? 01:42
140 Q121. What is a Constraint is SQL? What are its types. 02:58
141 Q122. What is the difference between Primary key and Unique key? 00:51
142 Q123. What are Triggers and types of triggers? 03:22
143 Q124. What is a View? 02:15
144 Q125. What is the difference between Having clause and Where clause? 00:49
145 Q126. What is Sub query or Nested query or Inner query in SQL? 00:47
146 Q127. What is Auto Increment/ Identity column in SQL Server? 01:14
147 Introduction 00:30
148 Q128. What are Joins in SQL? 00:45
149 Q129. What are the types of Joins in SQL Server? 01:34
150 Q130. What is Self-Join? 03:06
151 Q131. What are Indexes in SQL Server? 01:04
152 Q132. What is Clustered index? 01:06
153 Q133. What is Non-Clustered index? 01:06
154 Q134. What is the difference between Clustered and Non-Clustered index? 01:56
155 Q135. How to create Clustered and Non-Clustered index in a table? 00:56
156 Q136. In which column you will apply the indexing to optimize this query? 01:19
157 Introduction 00:42
158 Q137. What is the difference between Stored Procedure and Functions? 02:50
159 Q138. How to optimize a Stored Procedure or SQL Query? 02:32
160 Q139. What is a Cursor? Why to avoid them? 01:56
161 Q140. What is the difference between scope_identity and @@identity? 02:05
162 Q141. What is CTE in SQL Server? 01:28
163 Q142. What is the difference between Delete, Truncate and Drop commands? 02:04
164 Q143. How to get the Nth highest salary of an employee? 01:44
165 Q144. What are ACID properties? 02:26
166 Q145. What are Magic Tables in SQL Server? 01:50
167 Mock Interview 5 00:33
168 Introduction 00:29
169 Q146. What is MVC (Model View Controller)? Explain MVC Life cycle. 01:16
170 Q147. What are the advantages of MVC over Web Forms (atleast 3)? 03:12
171 Q148. What are the different return types of a controller Action method? 02:45
172 Q149. What are Filters and their types in MVC? 05:38
173 Q150. What is Authentication and Authorization in ASP.NET MVC? 01:27
174 Q151. What are the types of Authentication in ASP.NET MVC? 02:02
175 Q152. What is Output Caching in MVC? How to implement it? 02:28
176 Q153. What is Routing in MVC? 01:17
177 Q154. Explain Attribute Based Routing in MVC? 01:09
178 Introduction 00:36
179 Q155. What is the difference between ViewData, ViewBag & TempData? 01:37
180 Q156. How can we pass the data from controller to view in MVC? 00:14
181 Q157. What is Partial View? 01:12
182 Q158. What are Areas in MVC? 00:44
183 Q159. How Validation works in MVC? What is Data Annotation? 01:23
184 Q160. Explain the concept of MVC Scaffolding? 01:03
185 Q161. What is Bundling and Minification in MVC? 02:01
186 Q162. How to implement Security in web applications in MVC? 04:53
187 Mock Interview 6 00:40
188 Introduction 00:37
189 Q163. What are the events in Page Life Cycle? In which event the controls loaded 02:25
190 Q164. What is the difference between Server.Transfer() and Response.Redirect()? 02:51
191 Q165. What are the different types of Caching? 02:02
192 Q166. What are the types of state management? 03:59
193 Q167. Where the ViewState is stored after the page postback? 00:13
194 Q168. What are the different ways to store session state in asp.net? 02:23
195 Q169. What is cookie less session? 00:58
196 Q170. How to force all the validation controls to run in a page in web forms? 00:30
197 Introduction 00:35
198 Q171. What are the main components of ADO.NET? 01:05
199 Q172. What is Connected architecture and Disconnected architecture? 01:21
200 Q173. What are the different Execute Methods of ADO.NET? 01:03
201 Q174. What are the Authentication techniques used to connect to SQL Server? 02:19
202 Q175. What is ORM? What are the different types of ORM? 01:03
203 Q176. What is Entity Framework? 01:02
204 Q177. How will you differentiate ADO.NET from Entity Framework? 02:33
205 Q178. How Entity Framework works? OR How to setup EF? 02:05
206 Q179. What is meant by DBContext and DBSet? 01:16
207 Q180. What are the different types of development approaches used with EF? 02:13
208 Q181. What is the difference between LINQ to SQL and Entity Framework? 01:50
209 Mock Interview 7 00:37
210 Introduction 00:38
211 Q182. What is Web API? What is the purpose of Web API? 02:01
212 Q183. What are Web API advantages over WCF and web serivces? 02:19
213 Q184. What are HTTP verbs or HTTP methods? 02:50
214 Q185. What is the difference Rest API and Web API? 00:53
215 Q186. What are REST guidelines? What is the difference between Rest and Restful? 03:49
216 Q187. Is it possible to use WCF as Restful services? 00:14
217 Q188. How to consume Web API from a .NET MVC application? 03:19
218 Q189. What is the difference between Web API and MVC Controller? 01:11
219 Introduction 00:26
220 Q190. What are the types of authentication techniques in web API? 00:49
221 Q191. What is Basic Authentication in Web API? 01:00
222 Q192. What is API Key Authentication in Web API? 01:11
223 Q193. What is Token based authentication? 01:53
224 Q194. What is JWT Authentication? 01:19
225 Q195. What are the parts of JWT token? 02:48
226 Q196. Where JWT token reside in the request? 00:33
227 Introduction 00:32
228 Q197. How to test Web API? What are the tools? 00:23
229 Q198. What are main Return Types supported in Web API? 03:13
230 Q199. What is the difference between HTTPResponseMessage and IHttpActionResult? 03:02
231 Q200. What is the difference between IActionResult and IHttpActionResult? 00:32
232 Q201. What is Content Negotiation in Web API? 01:22
233 Q202. What is MediaTypeFormatter class in Web API? 01:40
234 Q203. What are Response Codes in Web API? 02:03
235 Mock Interview 9 00:41
236 Introduction 00:41
237 Q204. What is .NET Core? 00:55
238 Q205. What is .NET Standard? 00:43
239 Q206. What are the advantages of .NET Core over .NET framework? 02:47
240 Q207. What is the role of Program.cs file in ASP.NET Core? 02:04
241 Q208. What is the role of ConfigureServices method? 02:22
242 Q209. What is the role of Configure method? 01:29
243 Q210. Describe the complete Request Processing Pipeline for ASP.NET Core MVC? 01:20
244 Q211. What is the difference between .NET Core and .NET 5? 00:54
245 Q212. What is Metapackage? What is the name of Metapackage in ASP.NET Core? 00:54
246 Introduction 00:27
247 Q213. What is Dependency Injection? 02:45
248 Q214. How to implement Dependency injection in .NET Core? 07:26
249 Q215. What are the advantages of Dependency Injection in .NET Core? 02:54
250 Q216. How to use Dependency Injection in Views in ASP.NET Core? 01:03
251 Introduction 00:27
252 Q217. What are the types of Service Lifetimes of an object/ instance in ASP.NET 01:40
253 Q218. What is AddSingleton, AddSoped and AddTransient method? 04:23
254 Q219. What is Middleware in ASP.NET Core? What is custom middleware? 01:18
255 Q220. How ASP.NET Core Middleware is different from HttpModule? 00:55
256 Q221. What is Request Delegate? 01:03
257 Q222. What is Run(), Use() and Map() method? 03:17
258 Q223. What are the types of Hosting in ASP.NET Core? What is In process and Out 01:37
259 Q224. What is Kestrel? What is the difference between Kestrel and IIS? 01:24
260 Introduction 00:27
261 Q225. What is Routing? Explain attribute routing in ASP.NET Core? 02:16
262 Q226. Explain default project structure in ASP.NET Core application? 01:24
263 Q227. How ASP.NET Core serve static files? 01:02
264 Q228. What are the roles of Appsettings.Json and Launchsetting.Json file? 01:50
265 Q229. What are the techniques to save configuration settings in .NET Core 01:01
266 Q230. What is CORS? Why CORS restriction is required? Hot to fix CORS error? 03:53
267 Q231. What is In-Memory caching & Distributed Caching? When to use what? 01:26
268 Q232. How to handle errors in ASP.NET Core? 02:05
269 Q233. What are Razor pages in .NET Core? 00:47
270 Mock Interview 10 00:55
271 Introduction 00:35
272 Q234. What are SOLID Principles? How they different from Design Patterns? 02:21
273 Q235. What is Single Responsibility Principle? 02:08
274 Q236. What is Open-closed Principle? 03:20
275 Q237. What is Liskov Substitution Principle? 07:38
276 Q238. What is Interface Segregation Principle? 02:21
277 Q239. What is Dependency Inversion Principle? 03:59
278 Q240. What is DRY principle? 01:09
279 Introduction 00:42
280 Q241. What are Design Patterns and what problem they solve? 01:07
281 Q242. What are the types of Design Patterns? 00:53
282 Q243. What are Creational Design Patterns? 00:58
283 Q244. What are Structural Design Patterns? 01:35
284 Q245. What are Behavioral Design Patterns? 01:09
285 Q246. What is Singleton Design Pattern? 02:59
286 Q247. How to make singleton pattern thread safe? 02:09
287 Q248. What is Factory pattern? Why to use factory pattern? 05:49
288 Q249. How to implement Factory method pattern? 04:49
289 Q250. What is Abstract Factory pattern? 03:09
290 Mock Interview 11 00:39
291 Overview - Mock Interview 1 00:41
292 Mock Interview 1 05:49
293 Overview - Mock Interview 2 00:42
294 Mock Interview 2 05:29
295 Overview - Mock Interview 3 00:25
296 Mock Interview 3 05:30
297 Overview - Mock Interview 4 00:25
298 Mock Interview 4 03:47
299 Overview - Mock Interview 5 00:28
300 Mock Interview 5 03:49
301 End 00:20

Similar courses to .NET/ C# Interview Masterclass - Top 500 Questions & Answers

Data Structures Crash Course

Data Structures Crash Coursealgoexpert

Duration 4 hours 28 minutes 24 seconds
System Design for Beginners

System Design for Beginnersneetcode.io

Duration 5 hours 21 minutes 21 seconds
DevOps from Start to Finish

DevOps from Start to Finishiamtimcorey.com (Tim Corey)

Duration 5 hours 43 minutes 19 seconds
Coding Interview Class (Back To Back SWE)

Coding Interview Class (Back To Back SWE)backtobackswe.com

Duration 33 hours 12 minutes 16 seconds
System Design Interview

System Design Interviewneetcode.io

Duration 4 hours 9 minutes 34 seconds