DipIETE – CS (OLD SCHEME)

 

Code: DC16                                               Subject: VISUAL BASIC & APPLICATIONS

Flowchart: Alternate Process: JUNE 2010Time: 3Hr.                                                                                                 Max Marks: 100

 

 

NOTE: There are 9 Questions in all.

·      Question 1 is compulsory and carries 20 marks. Answer to Q.1 must be written in the space provided for it in the answer book supplied and nowhere else.

·      Out of the remaining EIGHT Questions, answer any FIVE Questions. Each question carries 16 marks.

·      Any required data not explicitly given, may be suitably assumed and stated.

 

 

 

Q.1    Choose the correct or the best alternative in the following:                               (210)

 

            a.   Which of the following is not a VB data type?

 

                  (A)  String                                            (B) Currency

                  (C)  Date                                              (D) Variable

 

   b.   What is the output of the following code segment? 

                    Dim I

                    Dim A as Integer

                    I = 25/4

                   A = I

                   Print A

 

                  (A) 6                                                     (B) 6.25

                  (C) 6.5                                                 (D) 6.3

 

           c.   ADO refers to ____________.

           

                  (A) Abstract Data Object                       (B) ActiveX Data Object

                  (C) Actual Data Object                          (D) None of these

 

           d.   Which of the following is not a property of command button?

           

                  (A) Caption                                             (B) Visible

                  (C) Multiline                                            (D) Font

 

            e.   Choose the correct HTML tag for the largest heading

           

                  (A) <head>                                             (B) <heading>                

                  (C) <h1>                                                 (D) <h6>

 

 

 

 

 

            f.    What is the correct HTML for inserting an image?

 

                  (A) <image src= “image.gif”>             (B) <img src = “image.gif”>

                  (C) <img>image.gif<\img>                 (D) <img href = “image.gif”>

 

      g.   What is the extension of the visual basic project file?

 

                  (A) frx                                                   (B) vbp

                  (C) ocx                                                 (D) res

 

            h.   Which property of the form changes the forms title?

 

                  (A) Name                                             (B) Heading

                  (C) Title                                               (D) Caption.

 

i.         The default data type in Visual Basic is _________.

 

                  (A) variant                                            (B) integer

                  (C) string                                              (D) boolean

 

             j.   For a local variable in a procedure to retain its value between calls, it must be

                  declared with keyword __________.

 

      (A) public                                             (B) private

      (C) protected.                                      (D) static

 

Answer any FIVE questions out of EIGHT questions

Each question carries 16 marks

 

 

  Q.2     a.   Create the following table with background pink in HTML:                                       (8)

 

Item Code

Item Name

Price

1001

Digital Camera

Rs. 6,500/-

1002

Audio System

Rs. 12,000/-

1003

Television

Rs. 16,000/-

1004

Washing Machine

Rs. 9,000/-

                                                                                                                                                     

 

 

 

 

 

       b.   Briefly explain the various methods used in VB to manage forms.                              (4)

 

       c.   Write down the name of the common file types in a VB 6.0 project.                         (4)

                                                                                                                                                       

  Q.3     a.   What are frames? How are they used in an HTML page?                                         (8)

       

             b.   Differentiate between Do…..Until and Do…..While loops.                                     (6)

 

             c.   What is the function of ‘Option Explicit’?                                                                 (2)

 

  Q.4     a.   Briefly explain the following tags used in HTML language:                                         (6)

                   (i)    <pre>                                                                                                                  

                   (ii)    anchor tag

                                                                                                                                (iii)  <fieldset>

                   (iv)   <ul>

 

             b.   Briefly explain the various data types available in Visual Basic.                                  (6)

 

             c.   What do you understand by event driven programming?                                           (4)

                                                                                                                                                               

Q. 5     a.   What are the different types of Common Dialog boxes? Explain any one of

                                                                                                                                              them.      (8)

 

             b.   Write a program in VB to find the area of a circle using functions.                             (8)

 

Q. 6     a.   Explain data connectivity with ADO at design time.                                                  (8)

 

             b.   Explain the Properties, Events and Methods for Command Buttons.                         (8)

                                                                                                                                      

  Q.7     a.  Briefly explain the following functions in Visual Basic with an example each:

                   (i)    Mid()                                                                                                                  

                                                                                                                                     (ii)   InStr()

                   (iii)  Sgn()

                   (iv)  Round()                                                                                                           (8)

 

b.      Briefly explain passing arguments by value and by reference along with

      their syntax.                                                                                                             (6)

                       

             c.   Briefly explain the difference between List Box and Combo Box in VB.                    (2)

                                                                                                                                                              

  Q.8     a.   Write a program to find the factorial of a number entered through the text box when the user clicks on the Factorial button.                                                                                                      (8)

 

             b.   Briefly differentiate between MsgBox() and InputBox() function in Visual

                   Basic.                                                                                                                      (2)

 

             c.   Define Fixed Arrays and Dynamic Arrays. Illustrate their declaration with an example. (6)

                                                                                                                                               

  Q.9     a.   Briefly explain the life and scope of different types of variables in Visual Basic.          (6)

 

b.      Differentiate between the following:                                                                          (6)

(i)                  SDI and MDI  

(ii)                Text Box and Rich Text Box    

(iii)               Function and Procedure           

 

 c.   Write short notes on Com / OLE.                                                                            (4)