C# Bank Questions
C# Bank Questions
What is the difference between a Windows Form application and a Web Form application in .NET?
Write a C# program to demonstrate the use of a delegate and explain its significance in event handling.
Explain the concept of an Interface in C#. How is it different from an abstract class? Provide an example
of both.
Create a C# class library that contains a class with methods for performing basic arithmetic operations
(addition, subtraction, multiplication, division). Show how to reference the class library in a main
program.
What is an Interface in C#? How do you define and implement an interface? Provide an example of an
interface with a method implementation.
Explain the concept of Arrays in C# with an example. Discuss different ways to initialize and access array
elements.
Explain the architecture of the .NET Framework. Discuss its key components such as the CLR, BCL, and
the role of assemblies.
What is managed data in .NET? Explain how the managed heap works and its relationship with the
garbage collector.
What is the difference between a local variable and a global variable in C#?
What is the difference between a Windows Form application and a Web Form application in .NET?
Explain the concept of "Boxing" and "Unboxing" in C#. Write a program that demonstrates both
concepts.
Write a C# program that demonstrates the use of arrays, both single-dimensional and multi-
dimensional, and print the array elements.
Describe how method overloading works in C#. Write a program that demonstrates method overloading
by using different parameter types or numbers of parameters.
What is an Interface in C#? How do you define and implement an interface? Provide an example of an
interface with a method implementation.
Write a program that demonstrates reading and writing text files in C#. Include examples of both
reading from and writing to a text file.
What are Web Services in .NET? Explain the types of Web Services supported by .NET, such as SOAP-
based Web Services and RESTful Web Services.
What is managed data in .NET? Explain how the managed heap works and its relationship with the
garbage collector.
What is the difference between a Windows Form application and a Web Form application in .NET?
Write a C# program to demonstrate the use of a delegate and explain its significance in event handling.
Explain the concept of an Interface in C#. How is it different from an abstract class? Provide an example
of both.
Create a C# class library that contains a class with methods for performing basic arithmetic operations
(addition, subtraction, multiplication, division). Show how to reference the class library in a main
program.
What is an Interface in C#? How do you define and implement an interface? Provide an example of an
interface with a method implementation.