Flowchart: Alternate Process: JUNE 2008

Code: 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.       Which _____________ event is fired when there is a change in the contents of the text box.

 

                   (A)  Unload                                         (B)  Change

(C)    Click                                           (D)  Refresh

       

b.      Which of the following is not a property of Command button?

 

                    (A)  Caption                                       (B)  Visible

 (C)  Multiline                                      (D)  Font

            

             c.   ActiveX controls exist as separate files with ___________ execution

                                                                            

                   (A)  .ctx                                              (B)  .ocx

                   (C)  .exe                                              (D)  .ctl

 

             d.   Which method is used to display a form object.

                                       

                   (A)  View                                            (B)  Show

(C)  Activate                                       (D)  Hide

       

             e.   How many kind of rows and columns are created in the MSFlexGrid control.

                  

                   (A)  Two                                             (B)  Four

(C)  Three                                           (D)  None of the above

 

f.    An application in VB can also be run by pressing ____________.

     

(A)     F2 key                                         (B)  F3 key

(C)  F4 key                                         (D)  F5 key

 

             g.    A form contained within an MDI form in an MDI application is called

                      

(A)    MDI child                                    (B) MDI form

                   (C)  SDI form                                      (D) Parent form

 

             h.   The _____________ bugs are those that occur when we attempt to execute a program.

 

(A)  Compile-Time                              (B)  Design-Time

(C)  Run-Time                                     (D)  None of the above                                                                

             i.    The initial value of the path property is always the current directory.

 

      (A)  True                                             (B)  False  

 

j.        Sel Length property is supported by textbox only

 

(A)  True                                             (B) False

 

 

 

 

 

 

 

Answer any FIVE Questions out of EIGHT Questions.

Each question carries 16 marks.

 

 

  Q.2     a.   What are MDI and SDI?  Explain.                                                                     (4)

                                                                                                                                               

             b.   Write a program to implement a Calculator for arithmetic operations.                  (8)

       

             c.   What is code window? How it is useful in VB programming?                              (4)

 

  Q.3     a.   What are the components of VB desktop?                                                         (5)

 

             b.   What do you mean by control flow?                                                                   (5)

 

             c.   Write a program in VB that adds integer element of two arrays of same size.                       (6)

 

  Q.4     a.   Explain the properties, events and methods for Command buttons.                      (8)

 

             b.   Write a program to read data from a file given in a path “C:\Exam\Marks\abc.txt”.              (8)

 

  Q.5     a.   Explain the functionality of VBScript     (4)

       

             b.   Explain how VB Script and Dynamic HTML be used.                                        (3)

 

             c.   Write an HTML code to create the following table.                                             (6)

 

DipIETE Exam

Subject

Marks (MM= 100)

VB

55

 

             d.   Explain any two protocols used in Web Browser.                                               (3)

 

  Q.6     a.   What is Menu Editor? What are its various components? Name them.                 (8)

 

             b.   Explain about Common dialog control. (8)

 

  Q.7     a.   Explain Sequential files and Random access files.                                                (8)

            

             b.   Explain any two VB Editing tools.                                                                       (4)

 

             c.   Explain the functionality of COM/OLE.                                                              (4)

 

  Q.8     a.   What is Control Array? How can you add or remove controls in it during run time?             (8)

                                                                                                                                                

             b.   Explain the concept Object Oriented Programming.                                            (4)

 

             c.   Explain various components of object Browser.                                                  (4)

 

  Q.9     a.   Write a program to find the factorial of a given number.                                       (8)

 

             b.   Mention any 4 string functions and their syntax.                                                   (4)

 

             c.   What is the difference between private and public procedure?                             (4)