Quiznetik

C#.NET Programming | Set 1

1. The compiled version of a VC#.NET program will be in_______________.

Correct : A. Machine code

2. The purpose of JIT compiler is to convert____________.

Correct : B. IL code to byte code

3. The Garbage Collection solves_____________.

Correct : A. Memory leakage problem

4. The code that requires the CLR at runtime for the execution is known as the ________.

Correct : B. Managed code

5. Which one of the following JIT compilers produce highly optimized code?

Correct : B. Standard JIT

6. The VC#.NET language________________.

Correct : B. Solves the DLL hell problems.

7. Home page in VS.NET is also known as__________.

Correct : B. Start page

8. The ______________ enables to move through the code very quickly.

Correct : C. Code window

9. In VC#.NET project files are grouped into a _____________.

Correct : C. Solution

10. Which one of the following statements about code debugging is correct?

Correct : A. Debugger helps us to step through our code, one line at a time.

11. The arrays involved in a jagged array_____________.

Correct : B. May be of different sizes.

12. The parameters of a method __________.

Correct : C. Help us to pass information to and from a method.

13. The ref type parameters are____________.

Correct : B. “Input / Output” parameters.

14. The out type parameters can be used_______________.

Correct : A. Only to pass back a result to the calling functions.

15. In case of the Params type parameter____________.

Correct : B. The number of arguments is variable.

16. An instance class member is referred by using the format____________.

Correct : A. Object name. Class member name.

17. Overloaded constructors will have________.

Correct : B. Different parameter lists

18. A static constructor_____________.

Correct : A. Is executed when the class is loaded.

19. A property________________.

Correct : A. Should have a get method.

20. An indexer________________.

Correct : A. Enables us to access a property through index.

21. A namespace can contain___________.

Correct : A. Classes

22. The alias should have

Correct : D. All the above.

23. In the case of a component,

Correct : D. All the above.

24. In case of components and namespaces,

Correct : C. Classes contained in a source file may be from different namespaces.

25. In the case of access modifiers___________.

Correct : D. None of these.

26. The size of integer is___________.

Correct : A. 8 bits

27. An instance of a value type variable is allocated memory on_______.

Correct : A. Stack

28. An instance of a reference type variable is allocated memory on_______.

Correct : B. Heap

29. The size of long is___________.

Correct : D. 64 bits

30. ________________ access modifier is applied to a method or a data member, it can be accessed by all classes in the same namespace and derived class in other namespace.

Correct : D. Protected internal

31. The first type of streams is specially used to represent _________

Correct : B. text

32. The second type of streams is used to represent __________

Correct : C. binary data

33. All IO classes that represent streams are derived from the ______ class.

Correct : B. Stream

34. The stream class has been designed to provide functional features for ________ and __________.

Correct : A. Creating, manipulating

35. The file steam class is designed specifically for reading and writing_______________ files.

Correct : B. binary data

36. A buffer is a block of bytes in memory used to ___________

Correct : C. cache data

37. The Buffered Stream class is a ________ of the Stream class.

Correct : C. Derived class

38. The text files are helpful in __________ and ____________ textual data.

Correct : B. storing, retrieving

39. A machine on a network is called ________

Correct : A. Node

40. The node is also called as ______________

Correct : C. host

41. The various possible values of dock property are_________

Correct : D. Both (a) and (B)

42. The ADO.NET provides greater case of ___________

Correct : D. both (a) and (b)

43. Only ___________ amount of processing time is needed for data conversion.

Correct : B. small

44. A Managed provider can be considered as a set of objects that mediate between a _____________ and _______________

Correct : D. both (a) and (b)

45. The main ASP.NET page class is derived from the ____________ class

Correct : A. Page

46. We can attach _________ validation control to an input control

Correct : C. more than one

47. The validation control has ____________ control.

Correct : C. both

48. The up level browser will perform validation on the client, using the _________ and _____________

Correct : B. DHTML, java script

49. For client-side custom validation, the name of the custom function must be identified in the ______________ function property

Correct : A. Client Validation

50. For server-side custom validation, the name of the custom function must be identified in the ______________ function property

Correct : C. On server validation