Professional Documents
Culture Documents
NUMBERS **************************
23. Method to which accepts double and find the sum of digits to lef and right
of the decimal points and seperated by 1(123.234-6/9)??
24. Avg of n natural numbers??
25. method to find the given triangle is perfect or not ??
26. simple interest??
27. compound interest??
28. Amstrong or not??
************************
STRINGS
***************************
1. Reverse of string
2. No. of vowels and Consonants
3. Convert the first letter of each string to capital letters
4. Convert a string to small letter and vice versa
5. First letter of each word in string and convert into caps
6. Alternate characters of string into upper case
7. Replace given character with special character
8. Replace given index of string with special character
9. Count no. of characters in string
10.Max & Min words in a string according to its length
11. Sort given array (Asc & Desc)
12.Create Mirror image of a string. The method should return the 2 string
separated by a symbol
Eg: (Earth | htraE)
13.Create a method which accepts a string and replaces consonants with
next alphabet
Eg: (Java
------ Kawa)
14.Create a character array and count the number of times each character
is present in array
15. Check if both the strings contain same characters in different order.
16.Replace alternate positions with *
***********************
COLLECTIONS
************************
1. Write a C# method to choose all the elements of same type from an array
list have different types of elements.
***************************
LINQ *******************************
10. Write a C# method which can find the sum of the first n prime numbers.
11. Write a C# method which can find the factors of a number. Return the
factors as an array
12. C# Method to find the second largest element in an array
1. Two lists are given, Find the common elements in both the List and store it
to the 3rd list
2. Input is a date, Subtract it with the current date and find whether he is
eligible to vote
3. Input1 and Input2 are two integers. input3 wil be an array. find the count of
al integers between the range of
input1 and input2
4. Input wil be a character. If the character is a upper then store output1 =
"THIS IS CAPITAL"
likewise for numbers,symbols etc
5. Parking lot question
IN time of a vehicle and out time wil be given as string
For 1st 3 hrs 2$. after that hrs it wil be 0.5$ etc. With lot of business cases.
6. Add days to date.