Saturday 17 December 2011

VB.Net Multiple Choice Questions and Answers for Freshers


1. Which of the following information is contained in the assembly manifest?
2. Any project that compiles to an EXE or DLL files produces an assembly in .NET?
3. Which of the following is the best to retrieve Read-Only, Forward-only stream of data from database?
4. ______ protects system resources from unauthorized calls?
5. Which of the following is not a method of Debug class?
6. ________is used to step through each line of code as it executes, including calls to other function.
7. COMException class is a part of ________?
8. The methods declared with the following modifiers are not accessible out side the current VB.NET project
9. Default properties are always a parameterized property?
10. How do you limit implicit type conversion in VB.NET?
11. Is the Class type in VB.NET a value type?
12. Choose the correct statement about a delegate in VB.NET?
13. Which of the following is not the member of System.Collections?
14. Which of the following control can contain other controls?
15. Which of the following object is used by the DataAdapter to retrieve the data from database?
16. Which of the following control doesn't receive the focus and doesn't have a TabIndex property?
17. Which of the following is not true for Shared members?
18. If no access modifier is specified for a class, it is considered ________
19. System.Collections represents container type for
20. Which of the following namespace provides support for obtaining information and dynamic creation of types at runtime?
21. The smallest unit to which one can associate a version number in .NET is
22. Lower bound value of array in VB.NET
23. Which of the following is not correct about the value types and reference types in VB.NET?
24. Which NameSpace is used to access the metadata in an Assembly?
25. What is the purpose of Invoke Method?
26. In VB.NET, the finalizer must use the Overrides keyword
27. Which one of the following collections receives output from Trace and Debug classes?
28. Using ___________ we can determine if a variable is initialized in VB.NET?
29. _______ can be accessed from all types within the assembly, but not from outside the assembly?
30. How to dereference an object in VB.NET?
30. How to dereference an object in VB.NET?
31. Smart Phone applications and other such devices can be written using:
32. Which class is used to run the EXE application file in VB.NET?
33. Which of the following namespaces is used to access "computer name" and its IP address in VB.NET?
34. How many levels of compilation happens in .NET Framework
35. Most of the underlying integration of .NET is done through XML
36. An Assemblyinfo file in a VB.NET project will have blank as file extesion.
37. Every type supported by CTS is derived from
38. Which of the following Types will have data of fixed size
39. What is the significance of Option Explicit statement when it is set to On
40. Which of the following class does not belong to Collection namespace
41. Methods declared with the following modifier are not accessible outside the class
42. The methods which return the values back to the calling code are called as
43. How do you terminate code execute with in a VB.NET method
44. How do you create a Read only Property in VB.NET
45. The constructors in VB.Net is similar to which event in previous versions of VB
46. Which interface allows to implement the Dispose method to do cleanup work
47. How do you call non shared methods of a class47.How do you call non shared methods of a class
49. Where do you find COMException class
50. Which method of the XMLdocument class takes xml as string while loading
51. Which is the base class for TypedDataset
52. Which is the best to retrieve Read-Only, Forward-only stream of data from database
53. The DataAdapter uses which of the following object to retrieve the data from database
54. Which of the method is used to display the form as modal
55. The tool provided with .Net framework to register assemblies for use by COM is
56. How do you add Web Methods in VB.Net
57. How do you refer the current class in VB.Net
58. How you refer the parent class in VB.Net
59. The serialization of an Object means that it is written out to a stream
60. Which of the following is not a method of Debug class
61. Vb.Net classes can be derived in C#
62. If you know want to migrate your Visual Basic 6 application to VB.NET, what is the first thing you should                    do ?
63. Some bits of a Visual Basic 6 application, like most APIs, can be easily migrated to VB.NET; other parts are not so straightforward. Which of the following will NOT have to be re-architected during a VB 6-to-VB.NET migration ?
64. The Visual Basic Upgrade Wizard will convert all the code in your VB 6 application to VB.NET code for you?
65. This programming language model is used sparingly in VB 6 but is one of the cornerstones of VB.NET. Knowing the ins and outs of it will make an application migration project easier and also prepare you for additional work in VB.NET. What is the model ?
66. What two controls are needed when creating a toolbar ?
67. Can a toolbar display text instead of pictures in the buttons ?
68. The vbc.exe compiler generates:
69. which program will you use to assemble a program written in IL:
70. A ‘for’ loop will run faster in VB.NET or C# ?
71. What’s the difference between a class field property ?
72. Classes from which namespace will have to be used to read or write to a file ?
73. The metadata stored in the assembly is called :
74. My.Application.Log.WriteEntry , by default , writes to the file:
75.To determine the folder in which your application is placed you can use:
76. Select the keyword used to refer the name space in our code in VB.Net
77. How does VB.NET instantiates the .NET object
78. How do you Dereference an Object in VB.NET ?
79. How do you Create Constructors in VB.NET ?
80. How do you enable Strict Type Checking in VB.NET
81. Can you create Windows Services using VB.Net
82. If you know you want to migrate your Visual Basic 6 application to VB.NET, what is the first thing you should do?
83. Some bits of a Visual Basic 6 application, like most APIs, can be easily migrated to VB.NET; other parts are not so straightforward. Which of the following will NOT have to be re-architected during a VB 6-to-VB.NET migration?
84. True or False: The Visual Basic Upgrade Wizard will convert all the code in your VB 6 application to VB.NET code for you.
85. Does the Visual Basic Upgrade Wizard support ASP to ASP.NET migrations?
86. Which of the following is the LEAST compelling reason to migrate an application from Visual Basic 6 to Visual Basic .NET?
87. This programming language model is used sparingly in VB 6 but is one of the cornerstones of VB.NET. Knowing the ins and outs of it will make an application migration project easier and also prepare you for additional work in VB.NET. What is the model?
88. As expected, Visual Basic 2005 comes with lots and lots of improvements over VB 6 and VB 2003. Which of the following is NOT out-of-the-box functionality in Visual Basic 2005?
89. Data query building can sometimes be a bone of contention for VB 6 developers, since it involves SQL or XQuery. Microsoft is introducing a series of changes to the .NET Framework, such as a unified programming model for querying objects, databases and XML, that should make data queries much easier. What is the name for this set of technologies?
90. When Visual Studio 2005 and SQL Server 2005 were introduced to the world, Microsoft decided to revamp its certification process. Once Windows Vista is released, the titles of Microsoft Certified Professional (MCP), Microsoft Certified Application Developer (MCAD), and Microsoft Certified Solution Developer (MCSD) will no longer apply. Which of the following titles is NOT a category in Microsoft's new three-tiered certification framework?
91. You and a friend from college, who works at a company across town, get together for dinner. You explain that you are in the middle of a VB 6-to-VB.NET migration and indicate that it is a bit of a challenge. Your friend says, "You should've just migrated to C#. It's cheaper and easier." Is your friend right?
92. Which of the following are true about Extension methods?
93. which of the following can one use to detect the user's current language?
94. with Which class is the task of mapping a specfic point in time into units such as weeks, months and year accomplished?
95. Which of the follwoing elements can be adjusted when using the processModel element of the Machine.Config File ?
96. Determining the availablity of sufficient memory for an operation can be accompished by
97. which of the following are true about anonymous types?
98. which of the following mechanisma are not suitable for returning a single row froma datatablecontaining a large number of records?
99. Which of the following are true of ADO.NET?
100. which of the following are true of the system.text.StringBuilder class?