Code: DC-16                                                         Subject: VISUAL BASIC & APPLICATIONS Flowchart: Alternate Process: JUNE 2007

Time: 3 Hours                                                                                                     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 best alternative in the following:                                         (2x10)

                

a.       Which of the following are not properties of command button?

 

                   (A)  Caption                                        (B)  Visible

(C)    Multiline                                      (D)  Font

       

b.      A ______ control is default control to display the files in current directory

 

                    (A)  File list box                                  (B)  Picture box

 (C)  Combo box                                 (D) Drive List Box

            

             c.   Choose the correct HTML tag for the largest heading

                                                                            

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

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

 

             d.   Which three methods does the Collection object support?

                                       

                   (A)  Let, Get, Set                                (B)  Add, Remove, Item

(C)  Load, Unload, Count                    (D)  Add, Delete, Count

       

             e.   Labels do not respond to ______ and _________ event

                  

                   (A)  Got_focus, Lost_focus                 (B)  Click, DblClick

(C)  Drag drop, OLE complete drag    (D)  Change, link error

 

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 that stores the design of a user control

                                       

                   (A)  .ctx                                              (B)  .ctl

(C)  .ocx                                             (D) .utl

 

             h.   ___________ is a specification that describes how a series of components which are possibly written in different programming languages by different vendors can communicate

                      

(A)    COM                                           (B) ActiveX Controls

(C) Browser                                        (D) RMI

             i.    Keyword TO is required when writing a For/Next loop.

 

                   (A)  TRUE                                          (B) FALSE

                                                                 

j.        ___________ object allows the programmer to interact with file, folder and drive.   

 

(A)  Drive system                                (B) File system

(C)  Folder system                               (D) Directory system

 

 

 

 

 

Answer any FIVE Questions out of EIGHT Questions.

Each question carries 16 marks.

 

 

  Q.2     a.   Explain the features of visual programming languages used in Windows.               (8)

 

             b.   Differentiate between

(i)                  SDI & MDI applications.

(ii)                Text Box & Rich Text Box control.                                            (8)

 

 

  Q.3     a.   Explain the features of IDE in Visual Basic.                                                         (8)

 

             b.   Write a VB program to implement calculator.                                                     (8)          

 

 

  Q.4     a.   Explain the following keywords in VB which are used to manipulate objects

                                

(i)                  IS keyword

(ii)                NOTHING keyword                                                                             (6)

 

             b.   What are the uses of file-handling function with examples?                                 (10)

 

 

  Q.5     a.   Distinguish between fixed and dynamic arrays?                                                   (4)

       

             b.   Write a function to implement shell sort.                                                              (8)

 

             c.   How Records (user defined types) are used in VB?                                            (4)

 

 

  Q.6     a.   Illustrate the use of different Microsoft windows common controls.                    (10)

 

             b.   Explain the steps for creating OLE objects at compile time.                                 (6)

 

 

  Q.7     a.   Write a simple program to implement file system controls i.e. using file list box, drive list box and directory list box.                                                    (8)                                                             

 

             b.   Explain different applications of OLE with examples.                                           (8)

 

  Q.8     a.   How will you create a form using HTML tags? Explain with the help of an example.            (8)

                                                                                                                                                

             b.   Draw and explain the usage of anchor, image and character formatting tags in HTML.                     (8)

 

 

  Q.9           Write short notes on any TWO :-

 

(i)                  File system object.

(ii)                Dialog boxes.

(iii)               COM.                                                                                             (8 + 8)