We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
Programming using C# & .
NET Question Bank
3 Marks Questions 1. Illustrate Boxing and unboxing in C#. 2. Explain the process of creating a class and the significance of encapsulation. 3. Write a note on importance of delegate in event handling. 4. List the Basic Controls of Windows Forms with examples. 5. What is session tracking? 6. Discuss the role of abstract classes and methods in achieving abstraction and code reusability in C# 7. Describe the purpose of Multiple Document Interface. 8. Describe the steps involved in creating and utilizing a custom exception in C#. 9. Define the concept of a static property in C# 10. Illustrate sealed class with an example. 11. Explain Extension Methods in C#. 12. Discuss 4 steps involved in Delegates. 13. Draw the architecture of WPF. 14. What are Web Time Applications? 15. Define Identifier and Variable in C# with an example. 16. What are class members? 17. What is the purpose of using the finally block? 18. Define tree view control of windows form 19. List the validation controls in asp.net. 20. What does a Namespace contain in C#? 21. Illustrate the usage of ‘this’ parameter in C#. 22. What are Console Applications? Mention two methods for writing to the console window. 14 Marks Questions 23. Differentiate between value types and reference types in C#. Give examples of each and explain their memory allocation behaviour. 24. Demonstrate and develop the C# code on the concepts of boxing and unboxing. 25. With an example illustrate the following terminologies: 26. i) Keywords ii) Constant iii) Identifiers iv) Variables 27. List out the namespaces used for drawing, form creation and 2D images. 28. Explain the Alias and Nested Namespace of C# with example. 29. Demonstrate and develop the C# code to represent the working of Arrays in C#. 30. Differentiate between boxing and unboxing in C#. Give examples of each and explain the working of both. 31. Develop a C# code to illustrate: i) Implicit Casting ii) Explicit Casting 32. Why do we require a type conversion operation? Explain implicit and explicit type conversions with an example, and then list any four type conversion methods in C#. 33. Develop a C# code to illustrate: i) Change an Array Element ii) Sort an Array. 34. Explain the memory allocation behaviour of Value Type and Reference Type with example. 35. Write a Program in C#: i) To find the square root of a given number. ii) To find the sum & average of three numbers. 36. Design a simple C# console application that takes user input to perform a basic arithmetic operation and explain the structure of the program, including the entry point and any necessary components. 37. Discuss the significance of the System namespace and its common use cases. 38. Develop a C# code to illustrate array concept with an example of finding minimum value in the given Integer array. UNIT -2 39. Mention the syntax of Abstract class and method. Write the characteristics of Abstract class. 40. List the access modifiers and write the purpose of all. 41. Define Inheritance. Discuss any two types with a code snippet. 42. Discuss the nested class with a program example. 43. Develop a C# code to illustrate the working of Compile time Polymorphism(Overloading) in C# 44. Explain the concept of Abstract methods in C# by defining it. 45. Design a C# code to illustrate the working of multiple inheritance in C# using interface. 46. Illustrate how encapsulation is achieved using accessors and mutators, as well as through properties. 47. Illustrate the concepts of sealed classes & methods, and extension methods with the help of code. 48. Explain, how the base class constructor can be accessed in a derived class 49. Implement a C# code to depict the encapsulation using accessors and mutators to manipulate the data in that class (String departname). 50. Describe the purpose of the ‘this’ keyword in C#. Provide an example illustrating its usage within a class. 51. Explain how properties contribute to encapsulation in C#. Provide a scenario illustrating the use of properties. 52. Outline the syntax of interfaces in C#. Explain how interfaces are implemented 53. Demonstrate nested classes and partial classes in C# with an examples demonstrating their usage. 54. Explain with an example the concept of runtime polymorphism in C#. 55. Provide insights of System. Object class. Explain its role and demonstrate practical applications of its usage. UNIT -3 56. Develop a code in C# to demonstrate ArrayOutOfBound Exception using Try, Catch and Finally blocks. 57. Describe the Architecture of ADO.NET. 58. Write a Program in C# to create and implement a Delegate for any two arithmetic operations 59. Determine the working of Data Adaptors in ADO.NET. 60. Develop a C# code to explain Event handlers using delegates. 61. Working with Data Adapters includes ‘DataSet creation from Data Adapter.’ Justify the statement by providing examples. 62. Develop a code in C# to demonstrate DividingByZero Exception using Try, Catch and Finally blocks. 63. Explain how Delegates are created and used in C# with syntax and example. 64. Give the implementation of Events and Delegates together in C# with an example program. 65. Describe the ADO.NET Entity framework in detail. 66. Demonstrate the process of creating and employing delegates in C# with a practical example. 67. Illustrate the creation of connection strings in ADO.NET. 68. Explain the concept of employing multiple event handlers for a single event in C#, outlining the advantages and challenges. 69. Discuss the role of ADO.NET Entity Framework in modern data access scenarios. Explain the benefits it brings compared to traditional ADO.NET. 70. Discuss the concept of multicasting with delegates for arithmetic operation. 71. Explain the components of .net Framework 72. Explain how to work with data adapters in ADO.NET, write the C# code for create a DataSet from a DataAdapter. UNIT -4 73. Describe various elements of GUI with Windows Forms in detail 74. Write an xml code for WPF Button Control. 75. Explain Event Handling in Windows Forms with an example. 76. Write a Steps to create a tabbed MDI Application. 77. Explain the steps involved in implementing Tree view control with example. 78. Write a C# code to demonstrate the concept of Event-driven programming. 79. Write a Steps to create a Multiple Document Interface in a C# Application. 80. Write WPF Text Box Control. 81. Explore the role of menus in Windows Forms applications with MDI application. 82. With examples of hierarchical data representation explain Tree View Control. 83. Write an XAML code for WPF Group Box and panel control. 84. Explain all necessary functionalities for handling Keyboard related events with example. 85. Examine the significance of Group Boxes and Panels in organizing and structuring controls within a Windows Forms application. 86. Evaluate the implementation and role of Check Boxes and Radio Buttons in providing user choices and options in Windows Forms applications. UNIT -5 87. Explain the Basics of Web and Web Application Development in detail. 88. Discuss the different mechanisms for session tracking in ASP.NET. 89. Explain best practices for implementing validation controls in an ASP.NET application. 90. Depict the Multitier Application Architecture of Web App Development. 91. Develop a C# code snippet to represent concept of calendar control in ASP.Net. 92. Explain the three Basics controls of ASP.Net with suitable examples. 93. Explain working of Master page in ASP.Net by providing suitable steps to create it. 94. Explain with code how to bind data to a Grid View control in an ASP.NET application. 95. Illustrate the implementation of Validations in Web. Write a note on the types of Validators. 96. Explain the steps involved in developing web time application. 97. Demonstrate Grid View controls, including data binding and customization. 98. Explain the session tracking in web applications and discuss various methods of implementing session management in ASP.NET. 99. How does ASP.NET implement session tracking? Explain. 100. Demonstrate the usage of the Grid View control in ASP.NET. 101.How validation controls in web forms enhance data integrity? Explain with example. 5 Marks Questions 102.Compare and contrast compile-time polymorphism (overloading) and runtime polymorphism (overriding) in C#. 103.How do the key features of Windows Forms and WPF technology contribute to the effectiveness of user interface design and application development? 104.Create a C# and .Net-based database connection for the purpose of inserting and displaying students’ records. 105.Compare and contrast structure and class in C#. 106.Create a C# and .Net-based database connection for the purpose of inserting, updating and deleting student/ Employee records. 107.Describe ADO.NET Entity Framework. 108.Evaluate and discuss the role of Data Adapters in ADO.NET, focusing on the creation of a DataSet from a DataAdapter. 109.Compare and contrast ADO.NET and ADO.NET Entity Framework, emphasizing the distinctive features and purposes of each. 110.Implement a C# code that contain a static class with value PI=3.14 and static method to calculate the cube of an integer and display both the value and methods using the object. 111.Illustrate the implementation of Updating with Data Adapters with an example. 112.Compare and contrast static polymorphism and dynamic polymorphism (overriding) in C#. 113.Compare the Custom Exception and System Exception of C# with valid examples. 114.Create a C# program to Set & Get the Name & Age of a person using Properties of C# to illustrate the use of different properties in C#.