How To Exam?

a knowledge trading engine...


The Institution of Engineers,India 2006 Diploma Electronics and Communication VISUAL BASIC & APPLICATIONS - - Question Paper

Saturday, 15 June 2013 11:20Web

Code: DC-16 Subject: VISUAL BASIC & APPLICATIONS
Time: three Hours June 2006 Max. Marks: 100

NOTE: There are nine ques. in all.
• ques. one is compulsory and carries 20 marks. ans to Q. 1. must be written in the space given for it in the ans book supplied and nowhere else.
• Out of the remaining 8 ques. ans any 5 ques.. every ques. carries 16 marks.
• Any needed data not explicitly given, may be suitably presumed and said.

Q.1 select the accurate or best option in the following: (2x10)

a. Which of the subsequent is not a property of the form?

(A) drawmode (B) font
(C) appearance (D) border

b. Which of the subsequent is not a VB datatype?

(A) string (B) currency
(C) date (D) variable

c. Which of the subsequent control structure lead to spaghetti’code?

(A) Do…..While (B) Goto
(C) Select-case (D) For-next

d. What is the output of the subsequent code segment?

Dim I
Dim A as Integer
I = 25/4
A = I
Print I

(A) six (B) 6.25
(C) 6.5 (D) 6.3

e. Arrays in visual basic cannot be

(A) fixed arrays (B) dynamic arrays
(C) open-ended arrays (D) none of these.

f. Which of the subsequent is not actual about Form-Initialise event?

(A) Event is triggered 1st and only once.
(B) Event occurs before load event.
(C) Event where 1 can place code that sets the initial properties of the form.
(D) Event triggers Form-GotFocus event.
g. Which of the subsequent is not a file command?

(A) chdrive (B) chdir
(C) mrdir (D) delete

h. LOF command returns

(A) length of file (B) number of words in file
(C) number of characters in file (D) none of these

i. ADO refers to

(A) Abstract Data Object (B) ActiveX Data Object
(C) true Data Object (D) None of these

j. Which of the subsequent statements is actual about creating active X control?

(A) 1 must create the control completely from scratch.
(B) 1 can use a single standard control in the creation of an ActiveX
control.
(C) 1 cannot add properties to a standard control to enhance it’s
capabilities.
(D) 1 can use standard controls as well as drawing methods to create the
interface of custom control.


ans any 5 ques. out of 8 ques..
every ques. carries 16 marks.

Q.2 a. Briefly discuss the various controls given in the toolbox of IDE of VB. (6)

b. Why do you call visual basic as event driven programming? discuss with an example. (5)

c. Mention the various object oriented features of visual basic. (5)

Q.3 a. Differentiate ranging from passing parameter by value and passing parameter by reference in writing visual basic function. Illustrate with an example. (6)

b. Differentiate ranging from DO……UNTIL and DO…..WHILE loops. (6)

c. describe fixed arrays and dynamic arrays. Illustrate their declaration with examples. (4)

Q.4 a. provide the steps to create a class in visual basic. Illustrate with an example. (6)

b. How is common dialog box control useful in VB programming? discuss the common dialog box methods with examples. (6)

c. Write a function to add elements of 2 arrays and store it in a different array. Function should also print the array. (4)

Q.5 a. Write a note on encapsulation of ActiveX controls. (5)

b. Briefly discuss the various commands given in VB. (5)

c. elaborate the uses of subsequent functions:

(i) FileCopy
(ii) FileDateTime
(iii) GetAttr
(iv) SetAttr (6)

Q.6 a. Mention various file system objects and their uses. (5)

b. Illustrate the use of various clipboard methods with examples. (5)

c. elaborate the uses of DLL? discuss the syntax of using DLL in VB programming. (6)

Q.7 a. discuss the subsequent objects with respect to menu editor.

(i) Index Box.
(ii) Arrow Buttons
(iii) Checked check box
(iv) Window list checkbox. (4 three = 12)

b. What do you understand by MDI? describe parent form and child form with respect to MDI. (4)

Q.8 a. Create a Web document in HTML that displays on a browser window the subsequent table: (6)

SYLLABUS FOR SEMESTER 4
Subject Code Max Marks
System software D334 100
C-Data Structures D335 100
Computer graphis D336 150

b. Differentiate ranging from DHTML & HTML. (4)

c. Briefly discuss the attributes of subsequent HTML tags:

(i) IMG tag
(ii) Anchor tag (6)

Q.9 Write short notes on any 4 of the following:

(i) SDI environment.
(ii) COM/OLE.
(iii) DLL servers.
(iv) Flex Grid Control.
(v) VB Script. (4 4=16)



Code: D-22 Subject: INDUSTRIAL ELECTRONICS

Code: DC-16         Subject: VISUAL BASIC & APPLICATIONS

Time: 3 Hours                                                 June 2006                                                     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 is not a property of the form?

 

                   (A)  drawmode                                    (B)  font

(C)    appearance                                  (D) border

       

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

 

                    (A)  string                                           (B)  currency

 (C)  date                                            (D) variable

            

             c.   Which of the following control structure lead to spaghetticode?

                                                                            

                   (A)  Do..While                                (B)  Goto

                   (C)  Select-case                                  (D) For-next

 

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

                    

                    Dim I

                    Dim A as Integer

                    I = 25/4

                    A = I

                    Print I

 

                   (A)  6                                                  (B)  6.25

(C)  6.5                                               (D)  6.3

       

             e.   Arrays in visual basic cannot be

                  

                   (A)  fixed arrays                                  (B)  dynamic arrays

(C)  open-ended arrays                       (D)  none of these.

 

f.     Which of the following is not true about Form-Initialise event?

     

(A)     Event is triggered first and only once. 

(B)     Event occurs before load event.

(C)     Event where one can place code that sets the initial properties of the form.     

(D)    Event triggers Form-GotFocus event.

             g.   Which of the following is not a file command?

                   

                   (A)  chdrive                                         (B)  chdir

(C)  mrdir                                            (D) delete

 

             h.   LOF command returns

 

(A)    length of file                                  (B) number of words in file

(C) number of characters in file            (D) none of these

 

             i.    ADO refers to

 

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

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

                                                                 

             j.    Which of the following statements is true about creating active X control?

 

(A)  One must create the control completely from scratch.

(B)  One can use a single standard control in the creation of an ActiveX

        control.

(C)  One cannot add properties to a standard control to enhance its

        capabilities.

(D)  one can use standard controls as well as drawing methods to create the  

        interface of custom control.

 

 

Answer any FIVE Questions out of EIGHT Questions.

Each question carries 16 marks.

 

  Q.2     a.   Briefly explain the different controls provided in the toolbox of IDE of VB.                         (6)

 

             b.   Why do you call visual basic as event driven programming? Explain with an example.                      (5)

 

             c.   Mention the different object oriented features of visual basic.                               (5)

 

  Q.3     a.   Differentiate between passing parameter by value and passing parameter by reference in writing visual basic function. Illustrate with an example.      (6)

 

             b.   Differentiate between DOUNTIL and DO..WHILE loops.                     (6)          

 

             c.   Define fixed arrays and dynamic arrays. Illustrate their declaration with examples.               (4)

 

  Q.4     a.   Give the steps to create a class in visual basic. Illustrate with an example.            (6)

 

             b.   How is common dialog box control useful in VB programming? Explain the common dialog box methods with examples.                                     (6)

 

             c.   Write a function to add elements of two arrays and store it in another array. Function should also print the array.                                                                                                               (4)

 

  Q.5     a.   Write a note on encapsulation of ActiveX controls.                                             (5)

       

             b.   Briefly explain the different commands provided in VB.                                       (5)

 

             c.   What are the uses of following functions:

 

(i)                  FileCopy

(ii)                FileDateTime

(iii)               GetAttr

(iv)              SetAttr                                                                                      (6)

 

  Q.6     a.   Mention different file system objects and their uses.                                             (5)

 

             b.   Illustrate the use of different clipboard methods with examples.                            (5)

 

             c.   What are the uses of DLL? Explain the syntax of using DLL in VB programming.                (6)

 

  Q.7     a.   Explain the following objects with respect to menu editor.                                       

 

(i)                  Index Box.

(ii)                Arrow Buttons

(iii)               Checked check box

(iv)              Window list checkbox.                                                            (4 3 = 12)

       

             b.   What do you understand by MDI? Define parent form and child form with respect to MDI.                                                                    (4)

 

  Q.8     a.   Create a Web document in HTML that displays on a browser window the following table:              (6)

 

SYLLABUS FOR SEMESTER 4

Subject

Code

Max Marks

System software

D334

100

C-Data Structures

D335

100

Computer graphis

D336

150

 

 b.   Differentiate between DHTML & HTML.                                                          (4)

 

c.       Briefly explain the attributes of following HTML tags:

 

(i)                  IMG tag

(ii)                Anchor tag                                                                       (6)

 

  Q.9           Write short notes on any four of the following:

 

(i)                  SDI environment.

(ii)                COM/OLE.

(iii)               DLL servers.

(iv)              Flex Grid Control.

(v)                VB Script.                                                                      (44=16)          

 


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER The Institution of Engineers,India 2006 Diploma Electronics and Communication VISUAL BASIC & APPLICATIONS - - Question Paper