C Dot Net Programming Languages Technical Interview

Language integrated query interview question

13. Which interface implements the standard query operators in LINQ? The standard query operators implement the IEnumerable<T> or the IQueryable<T> interface in C# and the IEnumerable(Of T) or the IQueryable(Of T) interface in Visual Basic. 14. What are standard query operators in LINQ? The standard query operators in LINQ are the extension methods that form […]

C C++ Dot Net Programming Languages

generics c programming questions

6. For the code snippet given below, which of the following statements is valid? public class Generic<T> { public T Field; } class Program { static void Main(string[ ] args) { Generic<String> g = new Generic<String>(); g.Field = “Hello”; Console.WriteLine(g.Field); } } A.     It will print string “Hello” on the console. B.     Name […]

C C++ Dot Net Programming Languages

attributes c programming questions

11. Which of the following CANNOT be a target for a custom attribute? A.     Enum    B.     Event C.     Delegate    D.     Interface E.     Namespace Answer & Explanation Answer: Option E Explanation: No answer description available for this question. Let us discuss. View Answer Workspace Report Discuss in Forum 12. Once applied […]

C C++ Dot Net Programming Languages

attributes c programming questions

1. The [Serializable()] attribute gets inspected at A.     Compile-time B.     Run-time C.     Design-time D.     Linking-time E.     None of the above Answer & Explanation Answer: Option B Explanation: No answer description available for this question. Let us discuss. View Answer Workspace Report Discuss in Forum 2. Which of the following are […]

C C++ Dot Net Programming Languages

delegates c programming questions

11. Suppose on pushing a button an object is to be notified, but it is not known until runtime which object should be notified. Which of the following programming constructs should be used to implement this idea? A.     Attribute    B.     Delegate C.     Namespace    D.     Interface E.     Encapsulation Answer & Explanation […]

C C++ Dot Net Programming Languages

delegates c programming questions

1. Which of the following statements is incorrect about delegate? A.     Delegates are reference types. B.     Delegates are object oriented. C.     Delegates are type-safe. D.     Delegates serve the same purpose as function pointers in C and pointers to member function operators in C++. E.     Only one method can be called […]

C C++ Dot Net Programming Languages

collection classes programming question

16. Which of the following statements are correct about the Collection Classes available in Framework Class Library? A.     Elements of a collection cannot be transmitted over a network. B.     Elements stored in a collection can be retrieved but cannot be modified. C.     It is not easy to adopt the existing Collection classes […]

C C++ Dot Net Programming Languages

collection classes programming question

6. Which of the following statements are correct about the C#.NET code snippet given below? Stack st = new Stack(); st.Push(“hello”); st.Push(8.2); st.Push(5); st.Push(‘b’); st.Push(true); A.     Dissimilar elements like “hello”, 8.2, 5 cannot be stored in the same Stack collection. B.     Boolean values can never be stored in Stack collection. C.     In […]

C C++ Dot Net Programming Languages

collection classes programming questions

1. Which of the following statements are correct about an ArrayList collection that implements the IEnumerable interface? The ArrayList class contains an inner class that implements the IEnumerator interface. An ArrayList Collection cannot be accessed simultaneously by different threads. The inner class of ArrayList can access ArrayList class’s members. To access members of ArrayList from […]

C C++ Dot Net Programming Languages

interfaces c programming questions

11. Which of the following statements are correct about an interface used in C#.NET? An interface can contain properties, methods and events. The keyword must implement forces implementation of an interface. Interfaces can be overloaded. Interfaces can be implemented by a class or a struct. Enhanced implementations of an interface can be developed without breaking […]

C C++ Dot Net Programming Languages

polymorphism c programming questions

16. Which of the following are necessary for Run-time Polymorphism? The overridden base method must be virtual, abstract or override. Both the override method and the virtual method must have the same access level modifier. An override declaration can change the accessibility of the virtual method. An abstract inherited property cannot be overridden in a […]

C C++ Dot Net Programming Languages

exception handling c programming questions

16. Which of the following is NOT an Exception? A.     StackOverflow B.     Division By Zero C.     Insufficient Memory D.     Incorrect Arithmetic Expression E.     Arithmetic overflow or underflow Answer & Explanation Answer: Option D Explanation: No answer description available for this question. Let us discuss. View Answer Workspace Report Discuss in […]

C C++ Dot Net Programming Languages

exception handling c programming questions

6. Which of the following statements are correct about exception handling in C#.NET? If our program does not catch an exception then the .NET CLR catches it. It is possible to create user-defined exceptions. All types of exceptions can be caught using the Exception class. CLRExceptions is the base class for all exception classes. For […]

C C++ Dot Net Programming Languages

exception handling c programming questions

1. Which of the following is NOT a .NET Exception class? A.     Exception B.     StackMemoryException C.     DivideByZeroException D.     OutOfMemoryException E.     InvalidOperationException Answer & Explanation Answer: Option B Explanation: No answer description available for this question. Let us discuss. View Answer Workspace Report Discuss in Forum 2. Which of the following […]