Tech Study

csharp

Top 100 C# interview questions and answers 2022

The c# programming language provides the rapid application development and It is the best language for writing Microsoft .NET applications. …

Read more

What is the difference between Public, Private, Protected and Internal?

What is the difference between Public, Private, Protected and Internal? What is the difference between Public, Private, Protected and Internal?: …

Read more

List of C# Language Loop Programs with Examples

List of C# Language Loop Programs with Examples: A loop statement allows us to execute a statement or group of …

Read more

List of Switch case programs in C# with an examples

List of Switch case programs in C# with an examples: Switch case statements are an alternate method for long if …

Read more

All Array programs in C# with examples

All Array programs in C# with examples: C# Array is a collection of variables belongings to the same data type. …

Read more

Write C# program to left rotate an array

Introduction Write C# program to left rotate an array: I have used Visual Studio 2012 for debugging purpose. But you …

Read more

All conditional programs in C# programming language

All conditional programs in C# programming language. I have used Visual studio 2012 framework for debugging purpose. But you can …

Read more

List of C# language basic programs

C# Program to Print “Hello, World!” C# Program to Add Two Integers. C# Program to Swap Values of Two Variables. …

Read more

C# Data Type

Introduction C# Data types are categorized into following three types. 1. Values Types Values types are actual data that directly …

Read more

Write C# program to right rotate an array

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

All C# Linq Program with Examples

Basically C# Linq makes the programs more readable so other developers can easily understand and maintain it. In this exercise …

Read more

All String programs in C# with examples

I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as per …

Read more

All function programs in C# with an examples

A function or method is basically a block of statements that perform a specific task. For example, you are building …

Read more

Print Alphabet Pattern In C# – C Sharp Program -Techstudy

Introduction In this article, I have explained the list of all alphabet pattern programs in C# programming language. Following exercise …

Read more

convert base64 string to byte array c#

Introduction In this article, I will explain you how to convert base64 string to byte array c#. 1) When the …

Read more

Export HTML String to PDF file in C#

How to Export HTML string to PDF file using iTextSharp DLL in C# Introduction In this article, I will explain …

Read more

C# Programming Examples and Solutions

C# which is comonly known as CSharp is a General Purpose, modern programming language which is object oriented. CSharp was …

Read more

Write a C# program to check whether a given substring is present in the given string

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to read a sentence and replace lowercase characters by uppercase and vice-versa

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to check the username and password

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to find the number of times a substring appears in the given string

Introduction I have use Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to compare (less than, greater than, equal to ) two substrings

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to sort a string array in ascending order

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to read a string through the keyboard and sort it using bubble sort

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to find maximum occurring character in a string

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to count a total number of vowel or consonant in a string

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to copy one string to another string

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to print individual characters of the string in reverse order

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to count a total number of alphabets, digits and special characters in a string

Introduction we have brief in this article about multiple methods to find the total number of alphabets,digits and strings in …

Read more

Write a C# program to find the length of a string without using library function

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to Separate the individual characters from a string

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to accept a string from keyboard and print it

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a program in C# to arrange the distinct elements in the list in ascending order in LINQ Query

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a program in C# to generate a Cartesian Product of two sets in LINQ Query

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a program in C# to remove a range of items from a list by passing the start index and number of elements to remove in LINQ Query

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a program in C# to Remove Items from List using remove function by passing object in LINQ Query

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a program in C# to find the uppercase words in a string in LINQ Query

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a program in C# to display the characters and frequency of character from given string in LINQ Query

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a program in C# to display the number and frequency of number from given array in LINQ Query

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a program in C# to display the top n-th records in LINQ Query

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a program in C# to find the number of an array and the square of each number in LINQ Query

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a program in C# to create a list of numbers and display the numbers greater than 20 in LINQ Query

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a program in C# to display the name of the days of a week in LINQ Query

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a program in C# to find the positive numbers from a list of numbers using two where conditions in LINQ Query

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to Print Binary Equivalent of an Integer using Recursion

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to create a recursive function to find the factorial of a given number

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to create a function to swap the values of two integer numbers

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to create a function to display the n number Fibonacci sequence

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to create a function to check whether a number is prime or not

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to create a function to calculate the sum of the individual digits of a given number

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to find even or odd number using function

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to create a function to input a string and count number of spaces are in the string

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to add two numbers using function

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a C# program to create a user define function with parameter

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write a program in C# Sharp to find the second largest element in an array.

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to find reverse of an array

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# Program to Find the Average Values of all the Array Elements

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to merge two sorted array

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to count total duplicate elements in an array

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to delete all duplicate elements from an array

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to count number of each element in an array

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to copy all elements of one array to another

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to sort an array in ascending order

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to print all unique element in an array

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to insert an element in array

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to count even and odd elements in an array

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to find sum of all elements of an array

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to count total number of negative elements in array

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# Program to Find Minimum and Maximum of Numbers

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# Program to Demonstrate Jagged Arrays

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# Program to Convert a 2D Array into 1D Array

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

C# Program to get Length of Array

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to find maximum number using switch case

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to print gender (Male/Female) program according to given M/F

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to check vowel or consonant using switch case

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to check even or odd number using switch case

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

C# Program To Create Simple Calculator Using Switch

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write Program To Print Day of Week Name In c# switch case

Introduction: C# switch case I have used Visual Studio 2012 for debugging purpose. But you can use any version of …

Read more

Write C# program to print number of days in a month using switch case

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to find LCM of any two numbers

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to find HCF of any two numbers

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to print number in words

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to check whether a number is palindrome or not

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to check whether a number is Prime number or not using while & for loop

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to calculate compound Interest

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program find Armstrong numbers between 1 to n

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program check whether a number is Armstrong number or not

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to find factorial of any number

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to calculate power using while & for loop

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to reverse a number

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to calculate product of digits of a number

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to find first and last digit of any number

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to find the sum of first and last digit of any number

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to swap first and last digit of a number

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to find sum of odd numbers between 1 to n

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to find sum of even numbers between 1 to n

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to print sum of digits enter by user

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to print all natural numbers in reverse order

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

C# Program to Print Multiplication of Number

Introduction I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as …

Read more

Write C# program to print alphabets from a to z

Introduction: C# program to print alphabets from a to z I have used Visual Studio 2012 for debugging purpose. But …

Read more

Write C# Program to check whether a triangle can be formed by the given value for the angles

Introduction Write C# Program to check whether a triangle can be formed by the given value for the angles. I …

Read more

Write C# Program to count total number of notes in entered amount

Introduction Write C# Program to count total number of notes in entered amount. I have used Visual Studio 2012 for …

Read more

Write C# Program to enter month number and print number of days in month

Introduction Write C# Program to enter month number and print number of days in month. I have used Visual Studio …

Read more

Write C# Program to calculate the total marks, percentage and division of student based on three subjects

C#, also known as C Sharp, is a programming language that was developed by Microsoft in 2000. It is a …

Read more

Write C# Program to find the eligibility for an engineering course based on the criteria

Introduction Write C# Program to find the eligibility for an engineering course based on the criteria. I have used Visual …

Read more

Write C# Program to detrermine a candidate’s age is eligible for casting the vote or not

Introduction Write C# Program to detrermine a candidate’s age is eligible for casting the vote or not. I have used …

Read more

Write C# Program to accept two integers and check whether they are equal or not

Introduction Write C# Program to accept two integers and check whether they are equal or not. I have used Visual …

Read more

Write C# Program to print day name of week

Introduction Write C# Program to print day name of week. I have used Visual Studio 2012 for debugging purpose. But …

Read more

Write C# Program to check whether a character is alphabet, digit or special character

Introduction Write C# Program to check whether a character is alphabet, digit or special character. I have used Visual Studio …

Read more

C# Program To Check Entered Character Vowel Or Consonant

Introduction Write C# Program to check entered character vowel or consonant. I have used Visual Studio 2012 for debugging purpose. …

Read more

Write C# Program to check uppercase or lowercase alphabets

Introduction Write C# Program to check uppercase or lowercase alphabets. I have used Visual Studio 2012 for debugging purpose. But …

Read more

Write C# Program to check number is positive, negative or zero

Introduction Write C# Program to check number is positive, negative or zero. I have used Visual Studio 2012 for debugging …

Read more

C# Program to Check alphabet is vowel or not

Introduction Write C# Program to Check whether an alphabet is a vowel or not. I have used Visual Studio 2012 …

Read more

C# Program to Check Leap Year

Introduction Write C# Program to check leap year using conditional operator. I have used Visual Studio 2012 for debugging purpose. …

Read more

Write C# Program to find the Largest among Three Variables using Nested if

Introduction Write C# Program to find the Largest among Three Variables using Nested if. I have used Visual Studio 2012 …

Read more

Write C# Program to Find the Largest Number using Conditional Operator

Introduction Write C# Program to Find the Largest Number using Conditional Operator. I have used Visual Studio 2012 for debugging …

Read more

How To Find Largest Of Three Number In C# Program

Introduction Write C# Program to Find the Largest Number Among Three Number. I have used Visual Studio 2012 for debugging …

Read more

Write Odd Even Program in C#

Introduction : Odd Even Program in C# Write C# Program to check whether entered number is odd or even. I …

Read more

C# Program to Convert Days to Years Weeks & Days

Introduction C# Program to convert days to years, weeks and days. This program is compiled and tested on a Visual …

Read more

C# Program to Calculate Area of Rectangle

Introduction C# Program to Calculate Area of Rectangle. This program is compiled and tested on a Visual Studio 2012.. using …

Read more

C# Program to Calculate Area of Square

Introduction C# Program to Calculate Area of Square. This program is compiled and tested on a Visual Studio 2012. using …

Read more

How To Calculate Area Of Circle In C# Program

Introduction C# Program to Calculate Area of Circle. This program is compiled and tested on a Visual Studio 2012.. using …

Read more

How to print ascii value in c#

Introduction: print ascii value in c# C# Program to Print ASCII Value. This program is compiled and tested on a …

Read more

C# Program To Find Size Of Data Types

Introduction C# Program to find the Size of data types. This program is compiled and tested on a Visual Studio …

Read more

C# Program to convert farenheit to celcius

Introduction C# Program to convert farenheit to celcius. This program is compiled and tested on a Visual Studio 2012.. using …

Read more

How To Convert Celsius To Fahrenheit In C# Program

Introduction C# Program to convert celcius to farenheit. This program is compiled and tested on a Visual Studio 2012.. using …

Read more

C# program to Convert  Feet to Meter:

Introduction: Feet to Meter C# is one of the popular programing language used in developing for a wide range application, …

Read more

C# Program to perform all arithmetic operations

Introduction : arithmetic operations C# Program to perform all arithmetic operations. This program is compiled and tested on a Visual …

Read more

C# Program to Multiply two Floating Point Numbers

Introduction C# Program to Multiply two Floating Point Numbers. This program is compiled and tested on a Visual Studio 2012. …

Read more

C# Program to Swap Values of Two Variables

Introduction C# Program to Swap Values of Two Variables. This program is compiled and tested on a Visual Studio 2012. …

Read more

C# Program to Add / Sum Two Numbers

Introduction C# program to add two numbers. This program is compiled and tested on a Visual Studio 2012. using System; …

Read more

C# program to Print Hello World!

Introduction C# Program to Print “Hello, World!”. This program is compiled and tested on a Visual Studio 2012. using System; …

Read more