Flowchart: Alternate Process: DECEMBER 2008Code: DC16                                                           Subject: VISUAL BASIC & APPLICATIONS

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.       Order the occurrence of  form events

(1) activate      (2) initialize      (3) load      (4) unload

 

                   (A)  1,2,3,4                                         (B)  2,3,1,4

(C)    3,1,2,4                                        (D) 1,3,2,4

       

b.      The scope of a variable cannot be

 

                    (A)  public                                          (B)  private

 (C)  friend                                          (D)  virtual

            

             c.   ____________ is an object and embedding first implementation of COM spec                         available   from MicroSoft before COM was officially named COM.

                                                                                                                                                         

                   (A)  ActiveX                                       (B)  OLE

                   (C)  COM                                           (D)  DCOM

 

             d.   Which of the following is not a VB datatype?

                                       

                   (A)  fix                                                (B)  string

(C)  Variant                                         (D)  object

       

             e.   Dim MyString MyString = String(5, "&")

                  

                   (A)  Returns "&&&&&".                     (B)  Returns "55555".

(C)  Returns "*".                                  (D) None

 

f.    Which of the following is not an attribute for button element

     

(A)     value                                            (B)  method

(C)  name                                            (D)  type

 

             g.   ___________ function returns the date and time as stored in the system clock

 

(A)  time()                                           (B)  date()

(C)  sysdate()                                      (D)  now()

 

             h.   Which is not a filesystem object

                                          

(A)    drive                                            (B) directory

                   (C)  folder                                           (D) textstream

 

             i.    Which is not an attribute for form tag in HTML

 

(A)   type                                            (B)  action

(C)   method                                        (D)  name

                                                                  

j.        Is it possible to make the HTML source not viewable?

 

(A)        There is no real method or script for making standard HTML source code not available

(B)        There are various scripts that will disable the right click feature, preventing the user from saving images or viewing the source

(C)        There are several programs that will help scramble your code, making it difficult (not impossible) to read.

(D)       None.

 

 

 

Answer any FIVE Questions out of EIGHT Questions.

Each question carries 16 marks.

 

 

  Q.2     a.   Features of  event driven programming languages.                                               (4)

                                                                                                                                               

             b.   Explain any four standard controls present in VB IDE toolbox.                            (8)

 

c.       Write steps to create menus in VB with suitable example.                                    (4)

       

  Q.3           Differences between                                                                                        (16)

 

(i)         function &  a subroutine

(ii)       Declaration & Instantiation of an object

(iii)      object  & class

(iv)     early & late binding

 

  Q.4     a.   Write a VB program to add two matrix using two dimensional arrays.                 (8)

 

             b.   String functions in VB explain with examples.                                                      (8)

 

  Q.5     a.   What do you understand by scope of variables? What are the various scope of  variables available in VB?                                                             (8)

       

             b.   Write a program to construct a 5x5 magic square using control arrays.                (8)

 

  Q.6     a.   Differentiate between determinate and undeterminate loops using examples.                        (6)

 

             b.   Briefly explain the following file handling functions in VB:                                   (10)

                   (i)     FileCopy

                   (ii)    FileDateTime

                   (iii)   GetAttr

                   (iv)   SetAttr

 


 

  Q.7     a.   How many file system controls are there?  Explain.                                             (8)

            

             b.   Write the steps to add an OLE object at design time.                                          (8)

 

  Q.8           Explain the following                                                                                        (16)

 

(i)         Modal and Modeless Dialog boxes

(ii)       Slider Control

(iii)      Tool bar Control

(iv)     Creating menus at runtime

            

  Q.9     a.   What is ASP? How would you view HTML code in ASP?                               (10)

 

             b.   Write the solutions for the following:     (6)

                         

(i)         Is HTML case sensitive?

(ii)        Does every HTML tag require a closing tag?

(iii)      Do you have to enclose all parameters with quotes (“ ”) ?