Вы находитесь на странице: 1из 2

Important note:

1. Question No.1 is Compulsory.


2. From the remaining (Q Nos. 2 to 7) attempt any four.
3. Draw neat labeled diagram whenever necessary
4. Answer to the same question must be written together

Q.1)Answer the following:


a)Create a project to find all prime numbers between 1 to the value entered in t
he text box txtno. Use a command button Find named emdfind which will display al
l the prime numbers on the current form. [08]
b)Explain event-driven, object-oriented and procedure oriented languages. [06]
c)Explain naming rules and naming conventions while declaring constants and vari
ables. [06]

Q.2)
a.)Create an application, which will ask the user to input his name and a messag
e. Display the two items concatenated in a label, and change the format of the l
abel using option buttons and check boxes for selection, the user can make the l
abel bold, underlined or italic and change its color. Include command buttons to
display the message in the label, clear the text boxes and label, print the for
m, and exit. [08]
b.)What do you mean by formatting a data? List the different formatting function
s. Explain any two of them.[06]
c.)What is constant? Explain different types of constants with example. [06]

Q.3)
a.)Create a project for R 'n R that contains a dropdown combo box for the coffee
flavors and a list box of the syrup flavors. The controls should have labels ab
ove them containing the words Coffee and Syrup. Enter the initial values for the
syrup flavors and coffee flavors when the form is loaded. The user will be able
to add more coffee flavors to the list at run time. Include one menu item to pr
int all the flavors and another to print only selected item from the list. These
print commands belong to File menu. Include Edit menu with commands to Add coff
ee flavor, remove coffee flavor, clear coffee list and display coffee count. [08
]
b.)Explain the With .., End With block. [06]
c.)Explain Msgbox and Inputbox functions with examples.[06]

Q.4)
a.)Write a project to maintain the Customers table (CustomerID Text Primary Key,
CompanyName Text; ContactName Text, ContactTitle Text, Address Text, City Text,
Region Text, Postal Code Text, Country Text, Phone Text, Fax Text) Allow Adds a
nd Deletes to the database. Include all navigation buttons. On an Add, disable t
he navigation and Delete buttons so that the only options are Save or Cancel. [0
8]
b.)Explain Form_Load and Form_Activate events. [06]
c.)Explain the following properties of CheckBox control. [06]
i. Value
ii. TabIndex
iii. Enabled
iv. Style
v. ToolTipText
vi. Picture

Q.5)
a.)Explain color and font dialog boxes in detail. [08]
b.)Explain option Explicit statement. [06]
c.)What is class in VB? Explain how it is used in VB projects.[06]

Q.6)
a.)Create an application, which will enter the employee details such as eno, ena
me, eaddr, eph. ebasic-salary in a corresponding text boxes. Include a command b
utton Save which will save all these details in sequential file 'Emp.Dat'.
Include a command button Retrieve, which will retrieve all records from file and
display on the form, include Clear button to clear the text boxes. [08]
b.)Explain On Error statement with all its options. [06]
c.)List different control statements used in VB. Explain any two with example. [
06]

Q.7)
a.)Create a project, which accepts a main string in a text box and a substring i
n another textbox. Find out how many times substring occurs in the main string.
Also show its position. [08]
b.)Explain function procedures and sub procedures. [06]
c.)How sequential file organization is different from random file organization?
. How will you achieve the end-of-file in both the organizations? [06]

Вам также может понравиться