[go: up one dir, main page]

0% found this document useful (0 votes)
25 views2 pages

C# Bank Questions

The document contains a series of questions and tasks related to C# programming, covering topics such as namespaces, memory management, file handling, and the differences between various application types in .NET. It also includes practical programming exercises demonstrating concepts like delegates, interfaces, arrays, and garbage collection. Additionally, it discusses the architecture of the .NET Framework and the significance of managed data.
Copyright
© © All Rights Reserved
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
0% found this document useful (0 votes)
25 views2 pages

C# Bank Questions

The document contains a series of questions and tasks related to C# programming, covering topics such as namespaces, memory management, file handling, and the differences between various application types in .NET. It also includes practical programming exercises demonstrating concepts like delegates, interfaces, arrays, and garbage collection. Additionally, it discusses the architecture of the .NET Framework and the significance of managed data.
Copyright
© © All Rights Reserved
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/ 2

What is the significance of namespaces in C#?

Explain the difference between Array and ArrayList in C#

How do you create an object of a class in C#?

What is the purpose of a garbage collector in C#?

How do you read text from a file in C#?

What is the difference between a Windows Form application and a Web Form application in .NET?

What is a Console Application in the .NET Framework?

What are the types of memory management 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 are parameters in C# methods?

How do you implement a class in C# with member functions?

What does the base keyword do in C#?

How do you write text to a file in C#?

How does the .NET Framework support multiple languages?

What is the difference between a Windows Form application and a Web Form application in .NET?

What are the types of memory management 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.

Case Study: Garbage Collection in a Hotel Reservation System

Case Study: Inheritance in an Employee Management System

Case Study: Using Objects as Data Types in an E-commerce System

Case Study: Inheritance and Method Overriding in a Payment System

What is the significance of namespaces in C#?

Explain the difference between Array and ArrayList in C#

How do you create an object of a class in C#?

What is the purpose of a garbage collector in C#?

How do you read text from a file in C#?

What is the difference between a Windows Form application and a Web Form application in .NET?

What is a Console Application in the .NET Framework?

What are the types of memory management 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.

You might also like