esasy
1. What is the difference between constants and read-only variables.
esasy
2. Why to use “finally” block in C#?
esasy
3. What are the fundamental OOP concepts?
esasy
4. Can we have try without catch block?
esasy
5. Which of the following is correct about System.Text.StringBuilder and System.String?
esasy
6. What is the static class?
esasy
7. What is the namespaces?
esasy
8. What is an Interface in C# ?
esasy
9. What is an Object?
esasy
10. What is the difference between i++ and ++i?
esasy
11. What is LINQ?
esasy
12. How do I convert a string to an int in C#?
esasy
13. What is the difference between 'while' loop and 'for' loop?
medium
14. How to reverse a string?
medium
15. How to find if the given string is a palindrome or not?
medium
16. How to reverse the order of words in a given string?
medium
17. How to reverse each word in a given string?
medium
18. How to count the occurrence of each character in a string?
medium
19. How to remove duplicate characters from a string?
medium
20. How to perform Left circular rotation of an array?
medium
21. How to find the sum of digits of a positive integer?
medium
22. What is Abstract Class in C#?
medium
23. What are the different access modifiers?
medium
24. What is constructor overloading in C#?
medium
25. Why to use Nullable Coalescing Operator (??)
medium
26. What are the different types of classes in C#?
medium
27. What are Boxing and Unboxing?
medium
28. What is Tuples?
medium
29. Why would a class be declared as abstract?
medium
30. Why we should use generics?
medium
31. What is a generic class?
medium
32. What is dynamic keyword?
medium
33. What are the difference between Structure and Class?
medium
34. What is the difference between method overriding and method overloading?
medium
35. What is difference between the “throw” and “throw ex” in .NET?
medium
36. The application that includes class names, field names, method names, and method parameters is called _________?
medium
37. What's the difference between Object, Dynamic and Var?
medium
38. How to create an extension method?
medium
39. What is the difference between “as” and “is” operators?
medium
40. Why switch works faster than if-else?
medium
41. How to reverse string?
medium
42. What are constant and read-only variables in C#?
medium
43. What are the different types of assemblies?
medium
44. What are the differences between Interface and Abstract class?
medium
45. What are the differences between a struct and a class in C#?
medium
46. Which of the following characteristics of an OOP language restricts behavior so that an object can only perform actions that are defined for its class?
medium
47. How to Force Garbage Collection?
medium
48. What is the difference between int.Parse,Convert.ToInt32 and int.TryParse?
medium
49. How to return multiple values from a function in C#?
medium
50. How to set Auto-Property a default value?
medium
51. What's the difference between the 'ref' and 'out' keywords?
medium
52. How can I convert comma separated string into a List<int>?
medium
53. How to cast string to enum?
hard
54. Explain Bubble Sort Algorithm In C#
hard
55. When will you use struct instead of class?
hard
56. Why we need reflection in c#?
hard
57. What is the difference between reflection and dynamic?
hard
58. What are the different access modifiers?
hard
59. Whats is the copy constructor?
hard
60. What is the reference type?
hard
61. How does CLR execute code?
hard
62. What is managed code?
hard
63. What is Operator Overloading and how does it work?
hard
64. Explain nullable types in C#.
hard
65. What is the custom attribute?
hard
66. What is the Difference between Singleton Class and Static Class?
hard
67. How and when are c# Static members disposed?
hard
68. Which of the following is true about RuntimeException and its subclasses?
hard
69. Which of the following types cannot be used as the parameter for a switch statement?
hard
70. What are the advantages using LINQ than stored procedure?
hard
71. When to use Tuples in C#?
hard
72. What is difference between the throw and throw ex?
hard
73. How to optimize C# code?
hard
74. What's the difference between IEnumerable<T> and List<T> ?