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