VB.NET 2003 Test
____ is a subset of the CTS.
_____________ helped overcome the DLL conflict (faced by the versions prior to .NET).
______________ is self-describing code.
.NET framework has data providers for:
.NET Framework programs are compiled into a CPU independent instruction set named:
A __________ assembly can be used to deploy language-specific resources for an application.
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...
A DataSet:
A hashtable is serialized by using:
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 happe...
A programmer wrote the following subroutine to calculate the area and circumference of a circle for a given radius: Public sub SetValues(ByVal r1 As Double, ByVal r2 As Double) If (r1 > 1 And r2 ...
An application reads stock listings from a text file and displays them in a combo box. Since the text file contains at least 8000 records at a given time, the default property of the combo box is s...
Asynchronous execution is supported in ADO.NET 2.0 for ExecuteReader, ExecuteScalar, and ExecuteNonQuery.
Code Manager is a part of:
Consider the following definition of a subroutine: Public Sub SetAmount(Rate As Double, ItemCount As Integer, ItemName As String) Which of following is the correct way to call the sub?
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 vali...
Consider the following small concatenation function: Public Function concat(ByVal st1 As String, ByVal st2 As String) As String concat = st1 + st2 st1 = "" st2 = "" End Fun...
Delay signing allows a shared assembly to be signed with:
Dot Net Framework consists of:
For MSIL code to be executed in a PE file, it is necessary to have:
How can you make a form scrollable?
How does CLR allow multiple applications to be run in a single process?
How is an assembly unloaded?
How many bits does the int datatype use in .NET?
How many classes can a single .NET DLL contain?
In .NET framework, reflection is used to:
In .NET generics, the type parameter:
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?
In a subroutine, a programmer defined the 'for' loop as follows: Dim count, endAt As Integer endAt=5 For count = 0 To endAt If (getValue() = True) Then endAt = 10 Next How many times will ...
In which file can you define the "Process Model" attribute?
One of your forms displays the list of all the Customers in a list box and all their details in the text boxes. On selecting a Customer from the list box, the text boxes should show details of that...
The ___________ namespace is not defined in the base class library.
The .NET framework comes with a few CLR hosts. Which of the following is a CLR host?
The code written to target common language runtime services is called:
The following function is defined in a class called "StringFormatter": Public Shared Function HasLettersOnly(ByVal str As String) As Boolean If (str.Length > 0) Then Dim i As Int64 ...
The global assembly cache:
What does Managed Data refer to?
What is a delegate?
What is the nominal storage allocation for the Byte data type?
What is the syntax to create a SQL connection in VB.Net?
What is the value range of the Boolean data type?
What kind of object is a string considered to be?
What will be the result of the following code: Dim employeeDS As DataSet employeeDS.Tables.Add(new DataTable("FirstQTR"))
Where is the shared assembly generally stored?
Which method of the FormsAuthentication class is used to read user ids and passwords from the web.config file automatically
Which namespace contains the DataSet class?
Which of following methods is not provided by the "Directory" class?
Which of the following are valid methods of the SqlTransaction class?
Which of the following benefits is not related to CLR?
Which of the following classes is not associated with System.IO?
Which of the following collections exposes the capacity method?
Which of the following datatypes are new in Visual Basic .Net?
Which of the following declarations is not valid?
Which of the following helps assemblies become self describing?
Which of the following is a must for a private assembly?
Which of the following is not a feature of .NET 2.0?
Which of the following is not associated with the command object in ADO.NET 2.0?
Which of the following is not correct about DataReader?
Which of the following is not correct for an Exception?
Which of the following is not correct for using binary search with an array?
Which of the following is not correct with regard to DataReader and DataSet?
Which of the following is not correct with regard to shared assembly?
Which of the following is not used for searching for an item within an array?
Which of the following is true for "shadowing" a function belonging to the parent class?
Which of the following is true for overriding?
Which of the following is true for the 'instance' methods?
Which of the following is used as a Serializer for the web services?
Which of the following is used to return only the time of the current day?
Which of the following keywords does not work with methods?
Which of the following manages the code during execution?
Which of the following methods is not correct for clipping an image?
Which of the following methods is not provided with a "RichTextBox" class?
Which of the following methods is useful for searching within a list box?
Which of the following options represents the possible values for the 'DataRowVersion' class?
Which of the following should be inserted in the constructor to refer to the super/parent class?
Which of the following should you use to serialize instances of a class?
Which of the following statements about ADO.NET is not correct?
Which of the following statements is correct with regard to .NET framework managed web pages?
Which of the following statements is correct with regard to a CommandBuilder object?
Which of the following statements is correct with regard to Windows process memory allocation?
Which of the following statements is not correct with regard to .NET assemblies?
Which of the following tools assists in Assembly Signing?
Which of the following types of inheritance is not supported by .Net?
Which of the following Visual Studio projects is not available in the "New Project" dialog box?
Which of these are runtime hosts in .NET Framework?
Which of these assemblies is used for doing localization?
Which of these files is used for debugging an application?
Which one of the following is a value type?
Which one of the following statements is true about garbage collection?
Which one of the following statements is true about MSIL code?
Which Portable Executable (PE) file does not contain the assembly manifest?
Which transport protocol is used to call a Web Service?
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 BinaryFormatte...
With VB.Net, controls can be created at run time. The statement that can be used to add events to such runtime controls is:
You are building a VB.NET application for an ISP company. The receptionist has to fill a customer registration form for dealing with walk-in customers. The form retrieves all the available products...
You are designing a testing application where every participant has to submit his/her answers. The test takers are ranked according to the correctness of the answers. All those who score the same m...
You assigned the version number - 5.3.1.0 to your assembly. The four digits stand for:
You declared an object variable named 'obj'. How will you check if it is initialized or not?
You defined a data adapter as follows: Dim adap As New SqlDataAdapter("select * from products;select * from customers", New SqlConnection(ConnectionString)) Dim DataSt As New DataSet adap.Fill(Dat...
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"?
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 meth...
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 ...
You have created a guest book which uses an XML document. Initially, the XML file is uploaded into a data table and as the records increase, the value of the 'GuestID' column should be incremented....
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 t...
You have defined a class to calculate the bonus paid to the employees of a company: Public Class Bonus Public Function GetBonus(ByVal sal As Double) As Double Dim bonus as Double ...
You have made a form named "frmEdit" with the following menu and submenu items: File Edit ------------------- New Copy Open Cut Exit Pas...
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".
You have to update some values in the database. Which method will you execute on a command object named "cmdUpdate"?
You have written a function to generate a unique bill number for every new bill: 1 Public Function getNewBillNo() As Integer 2 Dim cm As New SqlCommand("select max(billno) from bill", con) ...
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 ret...
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 mo...
You want to compile your Visual Basic .NET source code. Which command-line tool will you use?
You want to open a form named 'frm' from a MDI form. This is the first line of code that you have written: Dim frm as new ApplicationForm Which of the following will make the form visible?