1. What is .NET?
A) Operating System
B) Framework for building applications
C) Database
D) Browser
Answer: B
2. Which language is primarily used with .NET?
A) Java
B) Python
C) C#
D) PHP
Answer: C
3. What does CLR stand for?
A) Common Language Runtime
B) Code Language Resource
C) Core Language Reader
D) Common Logic Resolver
Answer: A
4. Which is NOT part of .NET?
A) CLR
B) FCL
C) JVM
D) ASP.NET
Answer: C
5. What is FCL?
A) Framework Class Library
B) File Control Library
C) Fast Code Loader
D) Function Class Logic
Answer: A
6. What is C#?
A) Database
B) Programming Language
C) OS
D) Browser
Answer: B
7. Which keyword creates an object in C#?
A) create
B) object
C) new
D) make
Answer: C
8. Which of the following is a value type?
A) string
B) class
C) int
D) array
Answer: C
9. What is boxing?
A) Converting value type to reference type
B) Converting reference to value
C) Deleting object
D) None
Answer: A
10. What is unboxing?
A) Reference to value type
B) Value to reference
C) Copying object
D) None
Answer: A
11. Which loop executes at least once?
A) for
B) while
C) do-while
D) foreach
Answer: C
12. What is an array?
A) Single variable
B) Collection of elements
C) Function
D) Class
Answer: B
13. Which keyword is used for inheritance?
A) inherit
B) :
C) extends
D) base
Answer: B
14. What is polymorphism?
A) One name many forms
B) Many names one form
C) No forms
D) None
Answer: A
15. What is encapsulation?
A) Hiding data
B) Showing data
C) Deleting data
D) None
Answer: A
16. What is abstraction?
A) Hiding implementation
B) Showing code
C) Copying code
D) None
Answer: A
17. What is namespace?
A) Storage
B) Logical grouping
C) Function
D) Variable
Answer: B
18. Which symbol is used for comments?
A) //
B) ##
C) **
D) @@
Answer: A
19. What is a class?
A) Blueprint
B) Object
C) Variable
D) Loop
Answer: A
20. What is an object?
A) Instance of class
B) Loop
C) Method
D) Variable
Answer: A
21. Which access modifier is most restrictive?
A) public
B) private
C) protected
D) internal
Answer: B
22. What is method overloading?
A) Same name different parameters
B) Same name same parameters
C) Different name
D) None
Answer: A
23. What is method overriding?
A) Redefining method
B) Copying method
C) Deleting method
D) None
Answer: A
24. What is exception handling?
A) Error handling
B) Code writing
C) Compilation
D) None
Answer: A
25. Which block handles exceptions?
A) try-catch
B) if-else
C) loop
D) switch
Answer: A
26. What is finally block?
A) Always executes
B) Executes sometimes
C) Never executes
D) None
Answer: A
27. What is ASP.NET?
A) Desktop framework
B) Web framework
C) Database
D) OS
Answer: B
28. What is MVC?
A) Model View Controller
B) Main View Code
C) Model Version Control
D) None
Answer: A
29. What is routing?
A) URL mapping
B) Database
C) Loop
D) None
Answer: A
30. What is middleware?
A) Software layer
B) Database
C) Language
D) None
Answer: A
31. What is dependency injection?
A) Providing dependencies
B) Removing dependencies
C) Copying code
D) None
Answer: A
32. What is LINQ?
A) Query language
B) Loop
C) Variable
D) Class
Answer: A
33. What is lambda expression?
A) Anonymous function
B) Loop
C) Class
D) None
Answer: A
34. What is async/await?
A) Asynchronous programming
B) Loop
C) Variable
D) None
Answer: A
35. What is thread?
A) Execution path
B) Variable
C) Loop
D) None
Answer: A
36. What is garbage collection?
A) Memory cleanup
B) Code writing
C) Execution
D) None
Answer: A
37. What is Entity Framework?
A) ORM tool
B) Database
C) Language
D) OS
Answer: A
38. What is migration?
A) Database update
B) Loop
C) Variable
D) None
Answer: A
39. What is primary key?
A) Unique identifier
B) Duplicate
C) Loop
D) None
Answer: A
40. What is foreign key?
A) Reference key
B) Main key
C) Loop
D) None
Answer: A
41. What is API?
A) Application Programming Interface
B) App Process Input
C) None
D) Code
Answer: A
42. What is REST?
A) Architectural style
B) Language
C) Database
D) None
Answer: A
43. What is JSON?
A) Data format
B) Language
C) OS
D) None
Answer: A
44. What is XML?
A) Markup language
B) Loop
C) Variable
D) None
Answer: A
45. What is authentication?
A) Identity verification
B) Access control
C) Loop
D) None
Answer: A
46. What is authorization?
A) Permission
B) Identity
C) Loop
D) None
Answer: A
47. What is JWT?
A) Token
B) Loop
C) Variable
D) None
Answer: A
48. What is cloud deployment?
A) Hosting app online
B) Local run
C) Loop
D) None
Answer: A
49. Which cloud platform supports .NET?
A) AWS
B) Microsoft Azure
C) GCP
D) All
Answer: D
50. What IDE is commonly used for .NET?
A) Eclipse
B) NetBeans
C) Visual Studio
D) PyCharm
Answer: C
Conclusion
If you made it through this basic .NET quiz, you’ve already taken a solid step in testing and strengthening your fundamentals. Whether you scored high or found a few tricky questions, the goal is progress understanding where you stand and what to improve next.
Core concepts in C#, web development with ASP.NET Core, and data handling using Entity Framework are essential building blocks for any .NET developer. Mastering these will not only help you in interviews but also in real-world application development.
Keep practicing, explore advanced topics, and challenge yourself with more complex quizzes. The more you apply what you learn, the more confident and skilled you’ll become in the .NET ecosystem.
So, how did you score?



