0% found this document useful (0 votes)
7 views4 pages

CSharp 7day Technical Guide

The document is a 7-day preparation guide for a C# technical round, covering essential topics such as data types, control flow, object-oriented programming, collections, and exception handling. Each day includes concepts, examples, and practice exercises to reinforce learning. The final day focuses on data structures and algorithms, along with real-world coding practices.

Uploaded by

codingillm
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)
7 views4 pages

CSharp 7day Technical Guide

The document is a 7-day preparation guide for a C# technical round, covering essential topics such as data types, control flow, object-oriented programming, collections, and exception handling. Each day includes concepts, examples, and practice exercises to reinforce learning. The final day focuses on data structures and algorithms, along with real-world coding practices.

Uploaded by

codingillm
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
You are on page 1/ 4

7-Day C# Technical Round Preparation Guide

Day 1: Basics + Data Types + Control Flow


Concepts: int, float, bool, string, char; if, else, switch, for, while, foreach

Example:

int num = 10;

if (num > 5)

Console.WriteLine("Greater than 5");

for (int i = 0; i < 5; i++)

Console.WriteLine(i);

Practice:

1. Check if a number is even or odd

2. Print all prime numbers up to N

3. Find the factorial of a number

Day 2: Arrays + Strings


Concepts: Arrays, foreach, Length; String manipulation

Example:

int[] nums = {1, 2, 3};

foreach (int n in nums)

Console.WriteLine(n);

string s = "Hello";

Console.WriteLine(s.ToUpper());

Practice:

1. Reverse a string

2. Find the largest element in an array

3. Count vowels in a string


Day 3: OOP Classes, Objects, Inheritance
Concepts: Class, Object, this, Constructor, Inheritance

Example:

class Animal {

public string Name;

public Animal(string name) {

Name = name;

class Dog : Animal {

public Dog(string name) : base(name) {}

Practice:

1. Create a Person class with name, age, and method to display details

2. Inherit a class Student from Person and add Marks

Day 4: Polymorphism, Abstraction, Encapsulation


Concepts: Method Overloading/Overriding, abstract, interface, private fields, public properties

Example:

interface IVehicle {

void Drive();

class Car : IVehicle {

public void Drive() {

Console.WriteLine("Driving car");

}
Practice:

1. Create an interface IShape with Area() method

2. Implement it in Circle and Rectangle

Day 5: Collections + LINQ


Concepts: List<T>, Dictionary<K,V>, LINQ (Where, Select)

Example:

List<int> numbers = new List<int>{1,2,3,4,5};

var even = numbers.Where(n => n % 2 == 0).ToList();

Practice:

1. Count frequency of each word in a string using Dictionary

2. Filter students who scored above 80 using LINQ

Day 6: Delegates + Events + Exception Handling


Concepts: Delegates, try-catch-finally, throw new Exception()

Example:

delegate void Greet(string name);

Greet g = (name) => Console.WriteLine($"Hello {name}");

g("Mohamed");

try {

int x = 10 / 0;

} catch (DivideByZeroException e) {

Console.WriteLine(e.Message);

Practice:

1. Create a delegate to perform addition and multiplication

2. Write code that throws and catches custom exceptions


Day 7: DSA + Real-World
Focus: Solve 5 easy Leetcode-style problems, Review C# project patterns, Practice explaining your

code clearly

Practice Ideas:

1. Reverse LinkedList (C#)

2. Valid Parentheses

3. Two Sum problem

4. Merge Sorted Arrays

5. Basic CRUD using a list

You might also like