Dcap211 12
Dcap211 12
:__________________
PNR No:: 117182DCA497891
COURSE CODE : DCAP211
COURSE NAME : EVENT DRIVEN PROGRAMMING
Time Allowed: 03:00 hrs Max.Marks: 80
1. This question paper is divided into two parts A and B.
2. Answer all the questions in serial order.
3. Part A contains 10 questions of 2 marks each. All questions are compulsory.
4. Part B contains 10 questions (Questions 2 to 11) of 10 marks each, attempt any 06 questions out of 10.
Attempt all parts of the selected question. Only first 06 attempted questions would be evaluated.
5. The student is required to attempt the question paper in English medium only.
6. Simple non programmable calculator is allowed.
PART A
Q1(a) How will you create visual basic project
(b) What is the maximum size of a textbox?
(c) What are the rules for declaring variables in VB?
(d) What do you mean by looping?
(e) Suppose a program contains the lines
Dim n As Double, x As String
lstOutput.Items.Add(Arc(n, x))
What types of inputs (numeric or string) and output does the function Arc have?
(f) What is a Splash Screen
(g) Name some advantages of stored procedures over inline SQL statements.
(h) Under the ADO Command Object, what collection is responsible for input to stored procedures?
(i) What is a dialog box?
(j) How to set the Cancel button for a form?
PART B
Q2 Write code to declare an array of size 20 and place the names Jerry, George, Elaine, and Kramer into
the first four elements. Use one or two lines of code.
Q3 Discuss any five controls along with their properties
Q4 How could you prevent one of ADO's event procedures from running multiple times during an
application session
Q5 The federal government developed the body mass index (BMI) to determine ideal weights. Body mass
index is calculated as 703 times the weight in pounds, divided by the square of the height in inches, and
then rounded to the nearest whole number. Write a program that accepts a person's weight and height as
input and gives the person's body mass index. Note: A BMI of 19 to 25 corresponds to a healthy weight.
Q6 What is the need of creating a report? Also explain the Data Environment Object Model.
Q7 Write code to move a picture to the left, right, top and bottom with respect to the corresponding arrow
keys.
Q9 What do you mean by popup menus? Write the steps and code to create a popup menu in visual basic?
Q10 Differentiate between implicit and explicit variable declaration. Add example of each to support your
answer.
Q11 Explain commonly used Data bound controls. Also add some examples to support your answer.
Page 1 of 1