MCQs > IT & Programming > VB.NET MCQs > Basic VB.NET MCQs

Basic VB.NET MCQ

1. A difference between a listbox and a drop-down combobox is _________.

Answer

Correct Answer: A ComboBox allows the user to enter text other than what is already in the List

Note: This Question is unanswered, help us to find answer for this one

2. .NET Framework programs are compiled into a CPU independent instruction set named:


Answer

Correct Answer: Microsoft Intermediate Language

Note: This Question is unanswered, help us to find answer for this one

3. Which of the following classes is not associated with System.IO?


Answer

Correct Answer: BinaryStream

Note: This Question is unanswered, help us to find answer for this one

4. Which of the following Visual Studio projects is not available in the "New Project" dialog box?

Answer

Correct Answer: Wireless application

Note: This Question is unanswered, help us to find answer for this one

5. How many bits does the int datatype use in .NET?


Answer

Correct Answer: 32 bits

Note: This Question is unanswered, help us to find answer for this one

6. Which of the following keywords does not work with methods?


Answer

Correct Answer: NonInheritable 

Note: This Question is unanswered, help us to find answer for this one

7. Which of the following statements is correct with regard to a CommandBuilder object?


Answer

Correct Answer: It creates update/delete commands based on original values of all the selected columns

Note: This Question is unanswered, help us to find answer for this one

8. What is the value range of the Boolean data type?


Answer

Correct Answer: True or False

Note: This Question is unanswered, help us to find answer for this one

9. In .NET framework, reflection is used to:


Answer

Correct Answer: Get metadata of the modules/assemblies

Note: This Question is unanswered, help us to find answer for this one

10. What is the nominal storage allocation  for the Byte data type?


Answer

Correct Answer: 1 byte

Note: This Question is unanswered, help us to find answer for this one

11. Which of the following is true for the 'instance' methods?


Answer

Correct Answer: They must be invoked by calling the new constructor

Note: This Question is unanswered, help us to find answer for this one

12. Delay signing allows a shared assembly to be signed with:


Answer

Correct Answer: A private key at a later stage

Note: This Question is unanswered, help us to find answer for this one

13. 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?


Answer

Correct Answer: The original value of the passed array will be modified permanently

Note: This Question is unanswered, help us to find answer for this one

14. You declared an object variable named 'obj'. How will you check if it is initialized or not?


Answer

Correct Answer: if(obj is nothing) then

Note: This Question is unanswered, help us to find answer for this one

15. Which of the following should you use to serialize instances of a class?


Answer

Correct Answer: It depends on the situation

Note: This Question is unanswered, help us to find answer for this one

16. What is the value range of the SByte data type?


Answer

Correct Answer: -128 through 127 (signed)

Note: This Question is unanswered, help us to find answer for this one

17. You have to update some values in the database. Which method will you execute on a command object named "cmdUpdate"?


Answer

Correct Answer: cmd.ExecuteReader()

Note: This Question is unanswered, help us to find answer for this one

18.

In which file can you define the "Process Model" attribute?

Answer

Correct Answer: Machine.config

Note: This Question is unanswered, help us to find answer for this one

19. Which of the following is true for overriding?


Answer

Correct Answer: The behavior of the derived class function is changed

Note: This Question is unanswered, help us to find answer for this one

20. 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".


Answer

Correct Answer: ofdImage.Filter = "Image Files|*.BMP;*.GIF;*.JPG"

Note: This Question is unanswered, help us to find answer for this one

21. Which of these files is used for debugging an application?


Answer

Correct Answer: demo.pdb

Note: This Question is unanswered, help us to find answer for this one

22. Which of the following is not correct about DataReader?



Answer

Correct Answer: None of the above 

Note: This Question is unanswered, help us to find answer for this one

23. Which of the following manages the code during execution?


Answer

Correct Answer: Coding Manager

Note: This Question is unanswered, help us to find answer for this one

24. With VB.Net, controls can be created at run time. The statement that can be used to add events to such runtime controls is:


Answer

Correct Answer: AddHandler

Note: This Question is unanswered, help us to find answer for this one

25. What does Managed Data refer to?


Answer

Correct Answer: The data allocated and de-allocated by CLR GC 

Note: This Question is unanswered, help us to find answer for this one

26. What will be the result of the following code:

        Dim employeeDS As DataSet
        employeeDS.Tables.Add(new DataTable("FirstQTR"))




Answer

Correct Answer: It will produce an error because an object reference has not been set to an instance of the DataSet object

Note: This Question is unanswered, help us to find answer for this one

27. Which one of the following statements is true about MSIL code?  
  


Answer

Correct Answer: It is compiled to native code by JIT compilers

Note: This Question is unanswered, help us to find answer for this one

28. 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?



Answer

Correct Answer: Clone

Note: This Question is unanswered, help us to find answer for this one

29. Which namespace contains the DataSet class?


Answer

Correct Answer: System.data

Note: This Question is unanswered, help us to find answer for this one

30. 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?


Answer

Correct Answer: The compilation error produced will be fixed by appending "_" (underscore) to the end of line 1 

Note: This Question is unanswered, help us to find answer for this one

31. Which of the following tools can be used to modify and grant permissions to code groups?


Answer

Correct Answer: CASPol.exe

Note: This Question is unanswered, help us to find answer for this one

32. Which of the following options represents the possible values for the 'DataRowVersion' class?


Answer

Correct Answer: Current, Default, Original, Proposed

Note: This Question is unanswered, help us to find answer for this one

33. In .NET generics, the type parameter:


Answer

Correct Answer: Needs to be constrained in all the classes

Note: This Question is unanswered, help us to find answer for this one

34. Which of the following is not correct with regard to shared assembly?


Answer

Correct Answer: It must get registered with the machine registry

Note: This Question is unanswered, help us to find answer for this one

35. Which transport protocol is used to call a Web Service?


Answer

Correct Answer: SOAP

Note: This Question is unanswered, help us to find answer for this one

36. 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?

Answer

Correct Answer: An exception will be thrown

Note: This Question is unanswered, help us to find answer for this one

37. On a user form, to catch the user key strokes in the key press event of a text box, you would use:


Answer

Correct Answer: e.KeyChar

Note: This Question is unanswered, help us to find answer for this one

38. The global assembly cache:


Answer

Correct Answer: Can store two dll files with the same name, but different versions

Note: This Question is unanswered, help us to find answer for this one

39. 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 of the following methods will you use?


Answer

Correct Answer: alSpecial.InsertRange(0, alCustomer.GetRange(20, 30))

Note: This Question is unanswered, help us to find answer for this one

40. Which of the following helps assemblies become self describing?


Answer

Correct Answer: Manifest

Note: This Question is unanswered, help us to find answer for this one

41. Which of the following is not a feature of .NET 2.0?


Answer

Correct Answer: Multiple Inheritance

Note: This Question is unanswered, help us to find answer for this one

42. Which of the following types of inheritance is not supported by .Net?


Answer

Correct Answer: Multiple inheritance

Note: This Question is unanswered, help us to find answer for this one

43. Which of the following is not correct with regard to DataReader and DataSet?


Answer

Correct Answer: DataSet retrieves the complete set of data from the database

Note: This Question is unanswered, help us to find answer for this one

44. What kind of object is a string considered to be?
    


Answer

Correct Answer: Reference 

Note: This Question is unanswered, help us to find answer for this one

45. 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?


Answer

Correct Answer: cmd.ExecuteReader()

Note: This Question is unanswered, help us to find answer for this one

46. A DataSet:


Answer

Correct Answer: Can derive data from both an XML file and a database

Note: This Question is unanswered, help us to find answer for this one

47. Which of the following statements is correct with regard to Windows process memory allocation?


Answer

Correct Answer: Each process (instance of an application) gets its own RAM and saves the OS from crashing if the process crashes

Note: This Question is unanswered, help us to find answer for this one

48. A hashtable is serialized by using:


Answer

Correct Answer: SoapFormatter

Note: This Question is unanswered, help us to find answer for this one

49. Asynchronous execution is supported in ADO.NET 2.0 for ExecuteReader, ExecuteScalar, and ExecuteNonQuery.


Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

50. Dot Net Framework consists of:


Answer

Correct Answer: Common language runtime and set of class libraries

Note: This Question is unanswered, help us to find answer for this one

51. Which of the following is used as a Serializer for the web services?


Answer

Correct Answer: XmlSerializer

Note: This Question is unanswered, help us to find answer for this one

52. Which of the following tools assists in Assembly Signing?


Answer

Correct Answer: SN.exe

Note: This Question is unanswered, help us to find answer for this one

53. Which of the following statements is correct with regard to .NET framework managed web pages?


Answer

Correct Answer: They interact directly with the runtime

Note: This Question is unanswered, help us to find answer for this one

54. 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?


Answer

Correct Answer: Overloading

Note: This Question is unanswered, help us to find answer for this one

55. The .NET framework comes with a  few CLR hosts. Which of the following is a CLR host?


Answer

Correct Answer: All of the above 

Note: This Question is unanswered, help us to find answer for this one

56. You assigned the version number - 5.3.1.0 to your assembly.
The four digits stand for:



Answer

Correct Answer: Major version, Minor Version, Built, and Revision 

Note: This Question is unanswered, help us to find answer for this one

57. Which method of the FormsAuthentication class is used to read user ids and passwords from the web.config file  automatically



Answer

Correct Answer: Authenticate()

Note: This Question is unanswered, help us to find answer for this one

58. Where is the shared assembly generally stored?


Answer

Correct Answer: Global assembly cache

Note: This Question is unanswered, help us to find answer for this one

59. ______________  is self-describing code.


Answer

Correct Answer: Managed Code

Note: This Question is unanswered, help us to find answer for this one

60. 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?


Answer

Correct Answer: MyClass.getBalance(utype)

Note: This Question is unanswered, help us to find answer for this one

61. The code written to target common language runtime services is called:


Answer

Correct Answer: Managed Code

Note: This Question is unanswered, help us to find answer for this one

62. For MSIL code to be executed in a PE file, it is necessary to have:


Answer

Correct Answer: Assembly manifest

Note: This Question is unanswered, help us to find answer for this one

63. 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"?


Answer

Correct Answer: BF.Serialize(fileStr, hash)

Note: This Question is unanswered, help us to find answer for this one

64. The ___________  namespace is not defined in the base class library.


Answer

Correct Answer: System.Thread

Note: This Question is unanswered, help us to find answer for this one

65. Which of the following methods is useful for searching within a list box?


Answer

Correct Answer: FindString

Note: This Question is unanswered, help us to find answer for this one

66. Consider the following definition of an overloaded function:

Public Overloads Function Join(ByVal st As String, ByVal no As Integer) As Double
    
Which of the following does not represent a valid overloaded method with respect to the above declaration?



Answer

Correct Answer: Public Overloads Function Join(ByVal str As String, ByVal num As Integer) As String

Note: This Question is unanswered, help us to find answer for this one

67. Which of the following is true for "shadowing" a function belonging to the parent class?


Answer

Correct Answer: The derived class must have the same name 

Note: This Question is unanswered, help us to find answer for this one

68. 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?


Answer

Correct Answer: Default allows single item selection

Note: This Question is unanswered, help us to find answer for this one

69. Which of the following datatypes are new in Visual Basic .Net?


Answer

Correct Answer: decimal, char

Note: This Question is unanswered, help us to find answer for this one

70. Which of the following methods is not provided with a "RichTextBox" class?


Answer

Correct Answer: Load

Note: This Question is unanswered, help us to find answer for this one

71. 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"?


Answer

Correct Answer: Private Sub bLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bLogin.Click

Note: This Question is unanswered, help us to find answer for this one

72. What is the syntax to create a SQL connection in VB.Net?



Answer

Correct Answer: Dim str As string <br> Str = "server = ads; uid = ads ; pwd = ghf; database = bvb" <br> Dim con as new sqlConnection(str)

Note: This Question is unanswered, help us to find answer for this one

73. Which of the following is not used for searching for an item within an array?


Answer

Correct Answer: FirstIndexOf 

Note: This Question is unanswered, help us to find answer for this one

74. .NET framework has data providers for:


Answer

Correct Answer: Oracle, OleDb, Sql Server, and ODBC

Note: This Question is unanswered, help us to find answer for this one

75. 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?



Answer

Correct Answer: sqlComm.Parameters.Add(pm2).Direction = ParameterDirection.Output

Note: This Question is unanswered, help us to find answer for this one

76. A __________ assembly can be used to deploy language-specific resources for an application.


Answer

Correct Answer: Satellite

Note: This Question is unanswered, help us to find answer for this one

77. 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?


Answer

Correct Answer: Me.Controls(i).GetType Is GetType(System.Windows.Forms.TextBox)

Note: This Question is unanswered, help us to find answer for this one

78. True or False? The following array declaration is valid: Dim X(-1) As Integer.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

79. True or False? A public method declared inside of a public module is accessible from another assembly.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

80. What is the value of DateTime.MinValue.Year?

Answer

Correct Answer: 1

Note: This Question is unanswered, help us to find answer for this one

81. In order to allow assembly (a) to see methods declared as friend in assembly (b), what attribute can you use?

Answer

Correct Answer: InternalsVisibleTo

Note: This Question is unanswered, help us to find answer for this one

82. True or False? Tuples are value types as opposed to reference types.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

83. 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?

Answer

Correct Answer: Derived Shared, Parent Shared, Parent Instance, Derived Instance

Note: This Question is unanswered, help us to find answer for this one

84. In order to allow multiple WCF services to listen on the same port, you must set which property of the binding class to true?

Answer

Correct Answer: PortSharingEnabled

Note: This Question is unanswered, help us to find answer for this one

85. Assuming s is a String and i is an Integer, what data type does the following method call return: Int32.TryParse(s, i)

Answer

Correct Answer: Boolean

Note: This Question is unanswered, help us to find answer for this one

86. Extension methods may only be declared inside of:

Answer

Correct Answer: Modules

Note: This Question is unanswered, help us to find answer for this one

87. What is the value of b after this code is executed? Dim b As Boolean = Nothing

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

88. How many times can a class inherit from different parent classes?

Answer

Correct Answer: 1

Note: This Question is unanswered, help us to find answer for this one

89. Which of the following is a valid declaration for a nullable integer type?

Answer

Correct Answer: Dim num As Nullable(of Integer)

Note: This Question is unanswered, help us to find answer for this one

90. If no access modifier is specified for a class, it is considered _______?

Answer

Correct Answer: Public

Note: This Question is unanswered, help us to find answer for this one

91. The following variable: Dim product = New With {Key .Name = "paperclips", .Price = 1.29}, is referred to as:

Answer

Correct Answer: An Anonymous Type

Note: This Question is unanswered, help us to find answer for this one

92. What is the difference between Or and OrElse?

Answer

Correct Answer: Or does not short-circuit, while OrElse does

Note: This Question is unanswered, help us to find answer for this one

93. What method of the Thread class would you call to force multiple threads to complete before moving on to the next section of code?

Answer

Correct Answer: Join

Note: This Question is unanswered, help us to find answer for this one

94. Which control would you employ to present a yes/no value to an end user?

Answer

Correct Answer: a check box

Note: This Question is unanswered, help us to find answer for this one

95. Do reference types or value types have their value stored on the stack?

Answer

Correct Answer: Value

Note: This Question is unanswered, help us to find answer for this one

96. The correct syntax for the event that is fired when the mouse pointer rests on a TextBox control is

Answer

Correct Answer: OnMouseHover

Note: This Question is unanswered, help us to find answer for this one

97. Which is not a binding associated with WCF services?

Answer

Correct Answer: DiskSynchronousTransferBinding

Note: This Question is unanswered, help us to find answer for this one

98. Which of the following is the most valid example of the My object in Visual Basic?

Answer

Correct Answer: Me.Text = My.Computer.FileSystem.SpecialDirectories.MyDocuments

Note: This Question is unanswered, help us to find answer for this one

99. COMException class can be found in

Answer

Correct Answer: System.Runtime.Interopservices

Note: This Question is unanswered, help us to find answer for this one

100. True or False? By default, parameters are passed ByRef.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

101. When you assign a value type to a reference type, data is copied from the stack to the heap. What is this called?

Answer

Correct Answer: Boxing

Note: This Question is unanswered, help us to find answer for this one

102. Which of the following is not a method of the Textbox class?

Answer

Correct Answer: Flush()

Note: This Question is unanswered, help us to find answer for this one

103. To hold a money value, you would use the Object data type.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

104. Can an Enum be declared and exposed from within an Interface?

Answer

Correct Answer: Yes

Note: This Question is unanswered, help us to find answer for this one

105. What is the purpose of Invoke Method?

Answer

Correct Answer: Used to call the procedure through Delegate variable

Note: This Question is unanswered, help us to find answer for this one

106. DataSet has and collection of what?

Answer

Correct Answer: DataTables

Note: This Question is unanswered, help us to find answer for this one

107. To determine which button is being pressed during a mouse-related event, use the _________ property in that particular event.

Answer

Correct Answer: e.button

Note: This Question is unanswered, help us to find answer for this one

108. Which statement helps prevent multiple threads from accessing the same codeblock at the same time?

Answer

Correct Answer: SyncLock

Note: This Question is unanswered, help us to find answer for this one

109. Which term is not related to multithreading issues?

Answer

Correct Answer: Enumerable

Note: This Question is unanswered, help us to find answer for this one

110. A class declared as friend is accessible from:

Answer

Correct Answer: Anywhere in the same assembly

Note: This Question is unanswered, help us to find answer for this one

111. In the declaration: Dim varA As Object, VarB, VarC As Integer, what type is VarB?

Answer

Correct Answer: Integer

Note: This Question is unanswered, help us to find answer for this one

112. In order to copy the schemas, relationships and constraints of a dataset but not any data you would utilize which method?

Answer

Correct Answer: Dataset.Clone

Note: This Question is unanswered, help us to find answer for this one

113. The import required for the registry editing is

Answer

Correct Answer: Microsoft.Win32

Note: This Question is unanswered, help us to find answer for this one

114. What character precedes a hotkey or accelerator that you are creating?

Answer

Correct Answer: & (ampersand)

Note: This Question is unanswered, help us to find answer for this one

115. How do you limit implicit type conversion in VB.NET?

Answer

Correct Answer: Option Strict On

Note: This Question is unanswered, help us to find answer for this one

116. In order to draw to a surface, use the ______________.

Answer

Correct Answer: Graphics object

Note: This Question is unanswered, help us to find answer for this one

117. True or False? A class have both a shared and non-shared constructor.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

118. Terminate a For/Next loop with the _______ statement.

Answer

Correct Answer: exit For

Note: This Question is unanswered, help us to find answer for this one

119. How many elements are there in the following array? Dim X(3) as Integer

Answer

Correct Answer: 4

Note: This Question is unanswered, help us to find answer for this one

120. To have your code executed when an if....then statement evaluates to False, you use a ____________ clause.

Answer

Correct Answer: Else

Note: This Question is unanswered, help us to find answer for this one

121. A class declared as: Public Class Sample(of T), is an example of what type of class?

Answer

Correct Answer: Generic

Note: This Question is unanswered, help us to find answer for this one

122. What keyword should be used when declaring a variable inside a method, whose value should remain the same between calls?

Answer

Correct Answer: Static

Note: This Question is unanswered, help us to find answer for this one

123. What is the correct way of ending a VB.NET Sub?

Answer

Correct Answer: End Sub

Note: This Question is unanswered, help us to find answer for this one

124. What does LINQ stand for?

Answer

Correct Answer: Language-Integrated Query

Note: This Question is unanswered, help us to find answer for this one

125. What type of Visual Basic project creates a standard Windows program?

Answer

Correct Answer: the Windows Forms Application

Note: This Question is unanswered, help us to find answer for this one

126. What specific time value is attributed to the Interval property in the TImer control?

Answer

Correct Answer: milliseconds

Note: This Question is unanswered, help us to find answer for this one

127. A collection of DataRows is called a ________.

Answer

Correct Answer: DataSet

Note: This Question is unanswered, help us to find answer for this one

128. What toolbar allows you to control alignment and spacing?

Answer

Correct Answer: layout toolbar

Note: This Question is unanswered, help us to find answer for this one

129. Which operation is performed first in the following example? y = 17 + 7 / 2

Answer

Correct Answer: the division operation of 7 / 2

Note: This Question is unanswered, help us to find answer for this one

130. What character donates a section of commented code?

Answer

Correct Answer: ' apostrophe

Note: This Question is unanswered, help us to find answer for this one

131. True or False? An interface can inherit from another interface.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

132. You use _________ to declare a procedure that returns a value.

Answer

Correct Answer: Function

Note: This Question is unanswered, help us to find answer for this one

133. It is possible to define a string type as nullable?

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

134. True or False? A WPF control can be embedded inside of a Winforms application.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

135. A 'for' loop will run faster in VB.NET or C# ?

Answer

Correct Answer: Both of them will run equally fast.

Note: This Question is unanswered, help us to find answer for this one

136. Which method of the SQLCommand class would you use to call a stored procedure which does not return any data?

Answer

Correct Answer: ExecuteNonQuery

Note: This Question is unanswered, help us to find answer for this one

137. The lowest bound value of arrays in VB.NET is ___ ?

Answer

Correct Answer: 0

Note: This Question is unanswered, help us to find answer for this one

138. The serialization of an Object means that it is written out to a stream

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

139. What design window allows you to add controls to a form?

Answer

Correct Answer: toolbox window

Note: This Question is unanswered, help us to find answer for this one

140. Protected methods of a class are accessible from their own class and from:

Answer

Correct Answer: Derived classes

Note: This Question is unanswered, help us to find answer for this one

141. To make a hidden form appear, you set what property?

Answer

Correct Answer: Visible property to True

Note: This Question is unanswered, help us to find answer for this one

142. In system.streamwriter, what method is used to clear all buffers and causes any buffered data to be written to the underlying stream?

Answer

Correct Answer: Flush

Note: This Question is unanswered, help us to find answer for this one

143. A property of an object can be another object.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

144. What object would you use to manipulate a folder?

Answer

Correct Answer: System.IO.Directory

Note: This Question is unanswered, help us to find answer for this one

145. What is the base class of all other .Net classes?

Answer

Correct Answer: system.object

Note: This Question is unanswered, help us to find answer for this one

146. When you open a loop with a For statement, you can close the loop with a ___________ statement.

Answer

Correct Answer: Next

Note: This Question is unanswered, help us to find answer for this one

147. True or False? The Finally portion of a Try-Catch-Finally block only executes when an error occurs.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

148. What technology allows you to issue SQL-like commands against a collection of objects in VB.Net?

Answer

Correct Answer: LINQ

Note: This Question is unanswered, help us to find answer for this one

149. Can a Try-Catch-Finally block be nested inside of the Finally section of another Try-Catch-Finally block?

Answer

Correct Answer: Yes

Note: This Question is unanswered, help us to find answer for this one

150. ____________ is when objects contain their respective data and code.

Answer

Correct Answer: Encapsulation

Note: This Question is unanswered, help us to find answer for this one

151. In order to determine whether a dataset has pending modifications to it's data, you would call which method?

Answer

Correct Answer: Dataset.HasChanges

Note: This Question is unanswered, help us to find answer for this one

152. When declaring two methods with the same names but different parameter types, you should use which keyword?

Answer

Correct Answer: Overloads

Note: This Question is unanswered, help us to find answer for this one

153. Which of the method is used to display the form as modal?

Answer

Correct Answer: ShowDialog( )

Note: This Question is unanswered, help us to find answer for this one

154. You are using the SQL Transaction class for a series of SQL statements. Where do you attach the SQL Transaction by using BeginTransaction?

Answer

Correct Answer: Attach to the SQLClient.SQLConnection

Note: This Question is unanswered, help us to find answer for this one

155. True or False? A class cannot implement an interface while also inheriting from a base class.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

156. What is a button's default event type?

Answer

Correct Answer: Click

Note: This Question is unanswered, help us to find answer for this one