Skip to content
LockeNewellPublic

About

c# interview questions and their answers

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c_sharp

setup

this program requires MongoDB drivers to run 'Install-Package MongoDB.Driver'

c# interview questions and their answers

Write a C# program that accepts a string as input and counts the number of occurrences of each character in the string. The program should then display the character and its corresponding count in alphabetical order.

Example: Input: "hello" Output: e: 1 h: 1 l: 2 o: 1

Write a C# program to find the missing number in an array of consecutive integers.

Example: Input: [1, 2, 4, 5, 6] Output: The missing number is 3

Write a C# program that reverses the order of words in a given sentence.

Example: Input: "Hello, how are you?" Output: "you? are how Hello,"

Challenge: Write a C# program that finds the two numbers in an array whose sum is closest to zero.

Example: Input: 1, -3, 2, 5, -4, 7, -2 Output: The two numbers whose sum is closest to zero are -2 and 2

using LINQ write a C# program that finds the most frequently occurring element in an array.

Example: Input: 2, 3, 2, 5, 6, 3, 2, 3, 3, 5 Output: The most frequently occurring element is 3

write sample code where a c# program contacts a mongodb database uses threading and prints the result to the screen

About

c# interview questions and their answers

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages