1. What is a button's default event type?
2. A class cannot implement an interface while also inheriting from a base class.
3. You are using the SQL Transaction class for a series of SQL statements. Where do you attach the SQLTransaction by using BeginTransaction?
4. Which of the method is used to display the form as modal?
5. When declaring two methods with the same names but different parameter types, you should use which keyword?
6. In order to determine whether a dataset has pending modifications to it's data, you would call which method?
7. ..... is when objects contain their respective data and code.
8. Can a Try-Catch-Finally block be nested inside of the Finally section of another Try-Catch-Finally block?
9. What technology allows you to issue SQL-like commands against a collection of objects in VB.Net?
10. The Finally portion of a Try-Catch-Finally block only executes when an error occurs.
11. When you open a loop with a For statement, you can close the loop with a ___________ statement.
12. What is the base class of all other .Net classes?
13. What object would you use to manipulate a folder?
14. A property of an object can be another object.
15. In system.streamwriter, what method is used to clear all buffers and causes any buffered data to be written to the underlying stream?
16. To make a hidden form appear, you set what property?
17. Protected methods of a class are accessible from their own class and from:
18. What design window allows you to add controls to a form?
19. The serialization of an Object means that it is written out to a stream
20. The lowest bound value of arrays in VB.NET is ___ ?
21. Which method of the SQLCommand class would you use to call a stored procedure which does not return any data?
22. A 'for' loop will run faster in VB.NET or C# ?
23. A WPF control can be embedded inside of a Winforms application.
24. It is possible to define a string type as nullable?
25. You use _________ to declare a procedure that returns a value.
26. An interface can inherit from another interface.
27. What character donates a section of commented code?
28. Which operation is performed first in the following example? y = 17 + 7 / 2
29. A variable declared as: Dim Var as Integer = 5, after executing the next line of: Var -= 1, would have what value?
30. Which class has a .Fill method which is used to add or refresh rows in a dataset?
31. What toolbar allows you to control alignment and spacing?
32. A collection of DataRows is called a ________.
33. What specific time value is attributed to the Interval property in the TImer control?
34. What type of Visual Basic project creates a standard Windows program?
35. What does LINQ stand for?
36. What is the correct way of ending a VB.NET Sub?
37. What keyword should be used when declaring a variable inside a method, whose value should remain the same between calls?
38. A class declared as: Public Class Sample(of T), is an example of what type of class?
39. To have your code executed when an if....then statement evaluates to False, you use a ____________ clause.
40. How many elements are there in the following array? Dim X(3) as Integer
41. Terminate a For/Next loop with the _______ statement.
42. A class have both a shared and non-shared constructor.
43. In order to draw to a surface, use the ______________.
44. How do you limit implicit type conversion in VB.NET?
45. How do you create a Read only Property in VB.NET
46. What character precedes a hotkey or accelerator that you are creating?
47. The import required for the registry editing is
48. In order to copy the schemas, relationships and constraints of a dataset but not any data you would utilize which method?
49. In the declaration: Dim varA As Object, VarB, VarC As Integer, what type is VarB?
50. A class declared as friend is accessible from:
51. Which term is not related to multithreading issues?
52. Which statement helps prevent multiple threads from accessing the same codeblock at the same time?
53. To determine which button is being pressed during a mouse-related event, use the _________ property in that particular event.
54. DataSet has and collection of what?
55. What is the purpose of Invoke Method?
56. Can an Enum be declared and exposed from within an Interface?
57. To hold a money value, you would use the Object data type.
58. Which is not a method of the Textbox class?
59. When you assign a value type to a reference type, data is copied from the stack to the heap. What is this called?
60. By default, parameters are passed ByRef.
61. COMException class can be found in
62. Which is the most valid example of the My object in Visual Basic?
63. Which is not a binding associated with WCF services?
64. The correct syntax for the event that is fired when the mouse pointer rests on a TextBox control is
65. Do reference types or value types have their value stored on the stack?
66. Which control would you employ to present a yes/no value to an end user?
67. What method of the Thread class would you call to force multiple threads to complete before moving on to the next section of code?
68. What is the difference between Or and OrElse?
69. Which keyword refers the parent of the current object
70. The following variable: Dim product = New With {Key .Name = 'paperclips', .Price = 1.29}, is referred to as:
71. If no access modifier is specified for a class, it is considered _______?
72. Which is a valid declaration for a nullable integer type?
73. How many times can a class inherit from different parent classes?
74. Value of b after execution? Dim b As Boolean = Nothing
75. Extension methods may only be declared inside of:
76. Assuming s is a String and i is an Integer, what data type does the following method call return: Int32.TryParse(s, i)
77. In order to allow multiple WCF services to listen on the same port, you must set which property of the binding class to true?
78. When both a parent class and a derived class have both a shared and an instance CTOR, in what order do they fire when creating an instance of the derived class like this: Dim MyObject as New DerivedClass?
79. Tuples are value types as opposed to reference types.
80. In order to allow assembly (a) to see methods declared as friend in assembly (b), what attribute can you use?
81. What is the value of DateTime.MinValue.Year?
82. A public method declared inside of a public module is accessible from another assembly.
83. The following array declaration is valid: Dim X(-1) As Integer.
84. You want to scroll through all the controls in a form and validate the text boxes. How will you check if the control is a text box or not?
85. A __________ assembly can be used to deploy language-specific resources for an application.
86. You have defined a SQL command object named 'sqlComm' to run a stored procedure. The OUT parameter is as follows: Dim pm2 As New SqlParameter('@Amount', SqlDbType.Money) How will you add the OUT parameter named pm2 to the command object?
87. .NET framework has data providers for
88. Which is not used for searching for an item within an array?
89. What is the syntax to create a SQL connection in VB.Net?
90. You designed a user login screen for a new management system written in VB.Net. What should be the signatures of the Login button's click event, if the button name is 'bLogin'?
91. Which method is not provided with a 'RichTextBox' class?
92. Which datatypes are new in Visual Basic .Net?
93. In a list box control, the property named 'SelectionMode' controls the selection of the items. Which of the following is not correct for the 'SelectionMode' property?
94. Which is true for 'shadowing' a function belonging to the parent class?
95. Consider the following definition of an overloaded function: Public Overloads Function Join(ByVal st As String, ByVal no As Integer) As Double Which does not represent a valid overloaded method with respect to the above declaration?
96. Which is useful for searching within a list box?
97. The .... namespace is not defined in the base class library
98. While working with collections, sometimes it is necessary to persist objects. Which method will be suitable to store a HashTable named 'hash' to a file Stream named 'fileStr' using a BinaryFormatter named 'BF'?
99. For MSIL code to be executed in a PE file, it is necessary to have
100. The code written to target common language runtime services is called
101. A class contains an overridable method 'getBalance(utype as Integer)'. Its derived class also has the same method, but with a different implementation. How can the parent and child classes refer to their own methods explicitly?
102. .... is self-describing code.
103. Where is the shared assembly generally stored?
104. Which method of the FormsAuthentication class is used to read user ids and passwords from the web.config file automatically
105. You assigned the version number - 5.3.1.0 to your assembly.The four digits stand for
106. The .NET framework comes with a few CLR hosts. Which of the following is a CLR host?
107. Two functions are defined with the same name in a class: IsGreater(no1 as Integer, no2 as Integer) as Boolean IsGreater(st1 as String, st2 as String) as Boolean Which of the following concepts is demonstrated here?
108. Which is correct with regard to .NET framework managed web pages?
109. Which tool assists in Assembly Signing?
110. Which one is used as a Serializer for the web services?
111. Dot Net Framework consists of
112. Asynchronous execution is supported in ADO.NET 2.0 for ExecuteReader, ExecuteScalar, and ExecuteNonQuery.
113. A hashtable is serialized by using
114. Which is correct with regard to Windows process memory allocation?
115. A DataSet
116. You have created a SQlCommand object using 'con' as an open connection object: Dim cmd as New SqlCommand('Select CategoryID, CategoryName FROM Categories', con) Which method will you use to run the query?
117. What kind of object is a string considered to be?
118. Which is not correct with regard to DataReader and DataSet?
119. Which type of inheritance is not supported by .Net?
120. Which is not a feature of .NET 2.0?
121. Which helps assemblies become self describing?
122. You have an array list named 'alCustomer' containing 200 items. The array list is sorted, and you want to copy customers 21 to 50 from this list to a new array list named 'alSpecial'. Which methods will you use?
123. The global assembly cache
124. On a user form, to catch the user key strokes in the key press event of a text box, you would use
125. A programmer wrote a small function to return the sum of two bytes: Public Function add(ByVal b1 As Byte, ByVal b2 As Byte) As Byte Return b1 + b2 End Function What will happen when add(200, 80) is called by the program?
126. Which transport protocol is used to call a Web Service?
127. Which is not correct with regard to shared assembly?
128. In .NET generics, the type parameter
129. Which option represents the possible values for the 'DataRowVersion' class?
130. Which tools can be used to modify and grant permissions to code groups?
131. You have written a simple function to multiply two integers: Line 1 Public Function multiply(ByVal a As Int32, Line 2 ByVal b As Int32) As Int32 Line 3 return (a * b) Line 4 End Function What will happen on running the program?
132. Which namespace contains the DataSet class?
133. You have a table named 'FirstQTR' and want to create another table named 'SecondQTR' which is exactly the same as 'FirstQTR', including DataTable schema and constraints. Which of the following methods will fulfill this requirement?
134. Which is true about MSIL code?
135. What's the output? Dim employeeDS As DataSet employeeDS.Tables.Add(new DataTable('FirstQTR'))
136. What does Managed Data refer to?
137. With VB.Net, controls can be created at run time. The statement that can be used to add events to such runtime controls is
138. Which manages the code during execution?
139. Which is not correct about DataReader?
140. Which file is used for debugging an application?
141. You have placed an OpenFileDialog control to let users select image files. How will you set the filter to display image files only? The name of the control is 'ofdImage'.
142. Which of the following is true for overriding?
143. In which file can you define the 'Process Model' attribute?
144. You have to update some values in the database. Which method will you execute on a command object named 'cmdUpdate'?
145. What is the value range of the SByte data type?
146. Which one should you use to serialize instances of a class?
147. You declared an object variable named 'obj'. How will you check if it is initialized or not?
148. You passed an array as an argument to the following function: Public Function Modify(ByVal ar[] as Integer) as Boolean What will happen to the original value of the array (ar), if the function modified the values?
149. Delay signing allows a shared assembly to be signed with
150. Which is true for the 'instance' methods?
151. What is the nominal storage allocation for the Byte data type?
152. In .NET framework, reflection is used to
153. What is the value range of the Boolean data type?
154. Which is correct with regard to a CommandBuilder object?
155. Which keyword does not work with methods?
156. How many bits does the int datatype use in .NET?
157. Which Visual Studio project is not available in the 'New Project' dialog box?
158. Which class is not associated with System.IO?
159. .NET Framework programs are compiled into a CPU independent instruction set named
160. A difference between a listbox and a drop-down combobox is _________.