c################

Màu nền
Font chữ
Font size
Chiều cao dòng

1. A non-generic class can inherit a generic class{TRUE}

2. A C# program can have only one using directive{false}

3.Abstract class cannot be …to create object references. {true}

4. An interface is a pure abstract class. {true}

5. An assembly cannot be used in more than one application at a time. {false}

6. An instance of a delegate type encapsulates one or more callable entities. {true}

7. Delegates help to call a method at runtime? {true}

8. Generic methods are declared …non-generic class declaration{false}

9. Generics are declared with at most one type parameter{false}

10. Generics helps to create templates …specified at compile time. {true}

11. In C#, an underscore is allowed as an initial character of a variable. {true}

12. In C# array elements are automatically assigned default values {true}

13. Private assemblies have no versioning policy. {true}

14. .NET is said to accelerate the next generation of the Internet {true}

15. .NET is a whole new platform centered around the Intranet {false}

16. The public keyword can be ignored for the Main function in C#.{true}

17. The object invokes the …parameters were passed to it. {true}

18. The “using” alias directives …one component from a namespace. {true}

19. The object that notifies …events is known as the publisher. {false}

20. The parameters of an anonymous method are always of generic type{true}

21. Using directives are provided to facilitate the use of namespaces. {true}

22. 2 cau menh de  :An override method{ Both the statements are true }

23. _____ keyword is used to import the classes of the namespace{ using }

24. _______ enables the possibility …one or more inherited classes.{ virtual }

25. A __ can be thought as a mould of a class.{ abstract class}

26. A constructor is a special type of a _______ in a class.{ method }

27. Any class that contain …must be declared as ____ { Abstract }

28. By default the compiler opens _____assembly.{ mscorlib.dll }

29. Console.ReadLine() returns the input as a ________ { String }

30. C# provides an Unified  …types are derived from ____class.{ Object }

31. Classes in the …into ______ based on their functionality.{ Namespaces }

32. Namespaces are defined using _____ statements.{ Using }

33. The unique feature of .NET is the ___support that it provides { Multi-language }

34. The WriteLine method is a part of the ______ class{ Console }

35. The _______class is the ultimate base class for all data types.{ Object }

36. The ________namespace …including the console output.{ System }

37. The information about a class can be found out using ____{ Reflection }

38. For decimal, the default value is{0.0m.}

39. How can you initialize an array of three Boolean values{ bool[] b={true,true,true};}

40. What is the correct syntax for comment entries in C# {/*… */}

41. What statement is used to completely abort the execution of a loop?{ break }

42. Which of the following is …declare the class “MyClass”.{ class MyClass }

43. Which of the…sentences are true about Constructors{ The constructor must }

44. Which of the following methods …used to create an object.{ Object(){}}

45. Which of the …method: public void add(int a) {…}{ the overriding method can }

46. Which of the …respect to overloading.{ Overloading of }

47. Which of the …members cannot be private{ public void methodA();}

48. Which of the …class B in the class A.{ class A:B }

49. Which of the following statements are correct?{ Like a va An explicit are }

50. Identify the …executable file.{ csc /out:< executable name >/target:exe<filename1 filename2..>}

 51. Identify the …an assembly.{ csc /out:< executable name > /target:exe /r:<assembly name1;assemblyname2…;> <filename1 filename2..>}

52. Statement I: The sealed modifiers are not permitted in an enum declaration.

      Statement II: Delegate types are implicitly sealed { Both the statements are true }

53. The syntax for declaring array is:{ DataType[] arrayname;}

54. Access Modifiers for variables in C# can be the following {tru public protected }

55. C# is considered as a modern replacement for the language/s like:{C va C++}

56. Methods can be overloaded in C# by{ca 2 co parameters  cuoi}

57. Select the two core …the .NET platform is based.{XML va Internet Protocols }

58. Which of the following properties does the Type class have?{tru IsMethod }

59. Which of the following statements are true?{ A class va When an }

60. Which of the ... an abstract class.{tru public abstract void class ClassA }

61. Which of the following methods …used to create an object.{ca 2 co E viet hoa}

62. Which of the …are true{ A static constructor cannot  va A static constructor is }

63. Which of the …to Static constructors.{2 cai Static constructors cannot }

64. Which of the following statements are true about delegates{tru It allows }

62. Which of the …are true?{ An indexer element  va The overridden }

66. What is the role of the CLR { Manages memory  va Compile once …}

67. Which of the …are true?{ Assemblies  va Private assemblies are }

68. Which of the …are true with respect to try-catch block?{tru The last }

69. Which of the …the Reflection API?{tru It cann’t va The Reflection }

70. Which of the …respect to destructors.{ A class  va When an }

71. Which of the …abstract functions?{ Abstract event va An overriding event declaration must }

72. Which of the …for the class Test.{tru constructor Test(){} va void Test(int a, string s, int f)}

73. Which of the following statements are true with respect to an Array type.{tru System.Array va An … System.Array }

74. Statement I: Indexers should be used only in situations where the abstraction makes sense.Statement II: Indexers should have both a getter and setter, as arrays are read/write objects.{ Both the statements are true.}

 75. Statement I: A property can be a static member, whereas an indexer is always an instance member. Statement II: A get accessor of an indexer corresponds to a method with no parameters{ Statement I is true.}

Bạn đang đọc truyện trên: Truyen2U.Pro