0% found this document useful (0 votes)
11 views3 pages

.NET Core Fundamentals and C# Programming

The document outlines a comprehensive curriculum for learning .NET Core, covering its architecture, core principles, and modern application development. It includes practical programming exercises in C#, object-oriented concepts, exception handling, and the use of Entity Framework Core for database operations. Additionally, it addresses project creation, command-line arguments, and best practices for exception handling in .NET Core applications.

Uploaded by

bkritika035
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views3 pages

.NET Core Fundamentals and C# Programming

The document outlines a comprehensive curriculum for learning .NET Core, covering its architecture, core principles, and modern application development. It includes practical programming exercises in C#, object-oriented concepts, exception handling, and the use of Entity Framework Core for database operations. Additionally, it addresses project creation, command-line arguments, and best practices for exception handling in .NET Core applications.

Uploaded by

bkritika035
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Unit 1

1. Want is .NET Core? Explain the Architecture of .NET Core


2. Explain the core principles of the .NET Framework. Di@erentiate between .NET
Framework and .NET Core with suitable examples.

3. Explain the role of .NET in modern application development. Briefly describe the history
and evolution of the .NET platform.

4. Explain the cross-platform capabilities of .NET Core. Illustrate the structure of a .NET
Core application with a simple diagram.

5. Describe the role of the Common Language Runtime (CLR) in executing .NET
applications.

6. What is JIT? Explain the purpose of JIT compilation, CTS.

Unit 2:

1. Write a simple C# program demonstrating basic input/output operations,


comments, and documentation.
2. What is variable in C#? Demonstrate variable declaration, initialization, and type
casting in C# with a short program.
3. Explain di@erent types of operators in C# with examples.
4. Wap to take the price of an item from the user. Apply discount using
- Price ≥ 1000 → - 10% discount
- Price ≥ 500 → 5% discount
- Price < 500 → No discount

Display the final price after discount.

5. Describe the use of selection statements in C# . WAP to ask the user to enter a year
and check whether it is a leap year or not.
6. Input a month number and display the corresponding season using switch:
• 12,1,2 → Winter
• 3,4,5 → Spring
• 6,7,8 → Summer
• 9,10,11 → Autumn

7. Explain object-oriented programming concepts in C# with a program creating a


class and object.
8. Create a class Employee with private fields: name (string), salary (double).
• Create properties Name and Salary.
• Ensure Salary cannot be negative.
• In Main(), create an Employee object, set values using properties, and
display the employee details.
9. Create a class Rectangle with methods:

• Area() → calculates area


• Perimeter() → calculates perimeter
• Both methods take length and width as parameters.
• In Main(), ask the user for length and width, and display area and perimeter.

10. Create a class Product with properties:


• Name → cannot be empty
• Price → cannot be negative
• In Main(), create a product object, assign invalid values, and display validation
messages. (Use get and set)

11. Explain exception handling in C# and write a program using try-catch-finally


blocks to demonstrate a use of exception handelling.

Unit 3

1. Describe the steps to create a console application project in .NET Core. Write a
basic console application in .NET Core that takes user input and displays it.
2. Explain how command-line arguments are used in .NET Core console applications
with an example.
3. Demonstrate error handling and user input validation in a console application.
4. Explain the structure of a .NET Core project file (csproj). Explain the process of
publishing a .NET Core application with an example.
5. Write a program that accepts multiple command-line arguments and displays them
in a formatted way.

Unit 4

1. What is Packages? Explain the purpose of NuGet and demonstrate adding a


package to a .NET Core project using visual studio and CLI.
2. What is Class Library? Describe the process of creating class library projects in .NET
Core both in Visual Studio and CLI.
3. What is Namespace? Explain how namespaces help in organizing code in .NET Core
with an example.
4. Explain best practices for exception handling in .NET Core applications.
5. Write a program to demonstrate creating and throwing a custom exception.
6. Explain the di@erence between system exceptions and custom exceptions with
examples.

Unit 5

1. What is ORM? Explain the concept of Object-Relational Mapping (ORM) and its
benefits.
2. What is EF core? Describe the architecture of Entity Framework Core and its
relationship with .NET Core.
3. Create a simple EF Core data model with entities and properties using code-first
approach.
4. Explain primary keys, foreign keys, and relationships in EF Core with examples.
5. Write a program to connect a .NET Core application to a database using EF Core.
6. Explain the advantages of using EF Core over traditional [Link] for database
operations.
7. Write a program that stores students’ details, such as name, address, mobile
number, age, and level, in a database named college.

You might also like