1. Which property of a control sets its background colour?
Answer: BackColor
2. In an N-Tier architecture, what is the role of the Application Layer?
Answer: Manage business processes and rules
3. What is a key challenge of implementing N-Tier architecture?
Answer: Performance overhead
4. Which type of method can a delegate reference in .NET?
Answer: Both static and instance methods
5. How can you implement quantum algorithms in .NET applications?
Answer: By using Azure Quantum
6. How can you read child nodes from an XML document in C#?
Answer: Using XmlDocument and XmlNode
7. How does the Business Logic Layer interact with the Data Access Layer in a three-layer
architecture?
Answer: Using interfaces
8. Which feature of Entity Framework loads related data on demand?
Answer: Lazy Loading
9. What is the benefit of using parameters in SQL commands?
Answer: Reduces SQL injection risks
10. What is the primary use case for xcopy deployment?
Answer: Small and simple applications
11. How do you load related data explicitly in Entity Framework?
Answer: By using Load
12. What is the key difference between stack memory and heap memory?
Answer: Stack memory is faster
13. Which step is necessary to use a managed DLL in a .NET application?
Answer: Add a reference to the DLL
14. What is the role of configuration files in an installation package?
Answer: To store parameters and settings
15. Why is it important to periodically review and audit security policies in .NET applications?
Answer: To ensure they remain effective
16. How does caching frequently accessed data improve performance?
Answer: By reducing server load and response time
17. What is required for a shared assembly in .NET?
Answer: Strong name
18. How can you identify performance bottlenecks in an application?
Answer: By using profiling tools
19. How can you ensure the secure transfer of data when forming database connections?
Answer: Encrypt connection strings
20. What is authentication?
Answer: Verifying user identity
21. How can you validate user input in a Windows Form?
Answer: Using the ErrorProvider component
22. What framework, introduced in 2016, is a cross-platform open-source framework designed for
modern app development?
Answer: .NET Core
23. What is the role of load balancing in application performance?
Answer: To distribute workloads evenly
24. Which control is used to display rich formatted text in Windows Forms?
Answer: RichTextBox
25. How can you manage transactions in Entity Framework?
Answer: Using DbContextTransaction
26. What is the advantage of using stored procedures in a database?
Answer: They reduce SQL injection risks
27. What does the Fill method of a DataAdapter do?
Answer: Populates a DataSet with data
28. How can you handle custom drawing in a control to avoid blurring?
Answer: Use the OnPaint method
29. What is the benefit of testing installation packages on different systems?
Answer: To identify potential issues
30. Which component of the .NET Framework controls the running of .NET programs?
Answer: CLR
31. What is the benefit of using the using statement in C# for database connections?
Answer: It closes and disposes of connections automatically
32. How can you optimise the performance of database connections in a multi-user environment?
Answer: By enabling connection pooling
33. What is the role of the DataAdapter's Update method?
Answer: Synchronises changes with the database
34. Why is it important to avoid excessive iterations in loops?
Answer: To reduce CPU usage
35. What is the purpose of a connection object in database connectivity?
Answer: To specify a session with a data source
36. What is the purpose of a junction table in a many-to-many relationship?
Answer: To relate two tables
37. What is the advantage of using LINQ over traditional SQL queries?
Answer: Unified syntax for different data sources
38. What is the benefit of using events in .NET?
Answer: To provide notifications
39. What is the role of the Service Layer in N-Tier architecture?
Answer: Provide APIs for third-party integration
40. What is the base class for all user interface elements in Windows Forms?
Answer: Control
41. How do you add a custom property to a derived control in Windows Forms?
Answer: By declaring a new property
42. How do you define a one-to-many relationship in Entity Framework?
Answer: Use a collection navigation property
43. How can you implement role-based security in .NET applications?
Answer: Using PrincipalPermissionAttribute
44. How can you enforce secure password policies in .NET applications?
Answer: By implementing password complexity requirements
45. How can you define installation conditions based on user privileges?
Answer: By verifying user permissions
46. How can you manage the layout of child forms within an MDI parent form?
Answer: Use LayoutMdi method
47. How do you define a new XML element in C# using XmlDocument?
Answer: CreateElement
48. How can data encryption improve the security of sensitive information in .NET applications?
Answer: By preventing data interception
49. Which method is used to access private members of a class using reflection in .NET?
Answer: GetMember
50. Why is load balancing important for application scalability?
Answer: To distribute network traffic evenly
51. What is the benefit of modularity in layered architecture?
Answer: Easier management and scalability
52. MAUI stands for
Answer: Multi-platform App UI
53. How do you add a new item to a ComboBox control programmatically?
Answer: Use ComboBox.Items.Add
54. Which method is used to handle asynchronous file operations in .NET?
Answer: ReadAsync
55. Why is it important for developers to stay updated on the latest security practices in .NET
development?
Answer: To maintain application security against evolving threats
56. Which of these JIT compiler types translates the whole code into machine code at the time of
installation?
Answer: Pre-JIT
57. What is the primary purpose of the Entity Framework?
Answer: To provide an Object-Relational Mapper
58. Why is the Common Type System (CTS) important in .NET?
Answer: It ensures type safety
59. What is the impact of using asynchronous I/O operations on application performance?
Answer: Improved responsiveness and resource utilisation
60. What is the primary advantage of N-Tier architecture?
Answer: Improved scalability and maintainability
61. What is the role of the DbContext class in Entity Framework?
Answer: To manage entity objects and database connections
62. Which tool can be used for profiling an application?
Answer: Apache JMeter
63. How do you manage transactions in a database to ensure data integrity?
Answer: Use transaction objects
64. How does the GAC help with version control in .NET?
Answer: By allowing multiple versions
65. What is the role of Azure Cognitive Services in .NET development?
Answer: To provide pre-built AI APIs
66. How does adopting DevOps practices improve .NET application development?
Answer: By reducing time to market through automation and efficient processes
67. What does MSIL stand for in the context of the .NET Framework?
Answer: Microsoft Intermediate Language
68. How can you ensure right-to-left language support in Windows Forms applications?
Answer: By setting the RightToLeft property
69. What method is used to add a new row to a DataTable?
Answer: NewRow
70. What is a .NET assembly?
Answer: A compiled code library