BT0082, Visual Basic

Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601


FALL 2015, ASSIGNMENT
PROGRAM
BSc IT
SEMESTER
FOURTH
SUBJECT CODE & NAME
BT0082, Visual Basic
CREDIT
4
BK ID
B1093
MAX.MARKS
60

Q1 Describe the select – case statement in vb.net with example.
Answer : A Select Case statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each select case.
Syntax:



Q2 How to handle error in VB? Explain.
Answer : Despite your best efforts to cover all possible contingencies, run-time errors will occur in your applications. You can and should do all you can to prevent them, but when they happen you have to handle them.
The various functions, statements, properties and methods available in Visual Basic and the components used in Visual Basic expect to deal with certain types of data and behavior in your applications. For example, the CDate() function can convert a value to a Date variable. The function is remarkably flexible in the type of information it can accept, but it expects to receive


Q3.  Define SQL. Explain the select statement of SQL with examples.
Answer: SQL (Structured Query Language) is a standard interactive and programming language for getting information from and updating a database. Although SQL is both an ANSI and an ISO standard, many database products support SQL with proprietary extensions to the standard language. Queries take the form of a command language that lets you select, insert, update, find out the location of data, and so forth. There is also a programming interface.

SQL SELECT statement is used to fetch the data from a database table which returns data in the form of result table. These result tables are called result-sets.


4. Describe the concept of record navigation in VB.NET.

Answer: NavigateRecords() : Our Subroutine is where the action takes place, and the values from the DataSet are placed in the textboxes. Here it is again:

Private Sub NavigateRecords()
txtFirstName.Text = ds.Tables("AddressBook").Rows(inc).Item(1)
txtSurname.Text = ds.Tables("AddressBook").Rows(inc).Item(2)
End Sub

The part that moves the record forward (and backwards soon) is this part:
Rows( inc )
Previously, we hard-coded this with:




Q.5 Describe the concept of jagged arrays in visual basic with an example.
Answer: - jagged arrays: - A jagged array is an array whose elements are arrays. The elements of a jagged array can be of different dimensions and sizes. A jagged array is sometimes called an "array of arrays." The following examples show how to declare, initialize, and access jagged arrays.
The following is a declaration of a single-dimensional array that has three elements, each of which is a single-dimensional array of integers:


Q6 Describe the methodology of adding node objects to aTreeView control. Also describe how to control the appearance of individual Node objects.
Answer : A treeview control displays a collection of Node objects, each of which consists of a label and an optional bitmap. After creating a treeview control, you can add, remove, arrange, and otherwise manipulate Node objects by setting properties and invoking methods.
This sample illustrates adding nodes to a treeview control, deleting nodes, selecting nodes programmatically, writing a treeview hierarchy to a table, and reading a treeview hierarchy from a table.

 

Adding Nodes

Each node in a treeview control needs to have a unique key that is a character string, generated by the NewKey method in this sample form.
Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601


No comments:

Post a Comment

Note: only a member of this blog may post a comment.