jagomart
digital resources
picture1_Visual Basic Programming Examples Pdf 191731 | Pgdcpdf


 142x       Filetype PDF       File size 0.45 MB       Source: www.unipune.ac.in


File: Visual Basic Programming Examples Pdf 191731 | Pgdcpdf
102 p g d c m semester i examination 2011 102 programming using visual basic 2008 pattern time 3 hours max marks 70 note 1 all questions are compulsory 2 ...

icon picture PDF Filetype PDF | Posted on 04 Feb 2023 | 2 years ago
Partial capture of text on file.
                                                                        [3989] – 102
                           P.G.D.C.M. (Semester – I) Examination, 2011
                         102 : PROGRAMMING USING VISUAL BASIC
                                             (2008 Pattern)
          Time : 3 Hours                                                         Max. Marks : 70
                           Note:1)All  questions are compulsory.
                             2) Figures to the right indicates full marks.
           1. Give the output for following section of code and explain (solve any 5)  (5×4=20)
              a) Dim d1, d2 as Date
                 d1 = Date
                 d2 = # 1/1/2008 #
                 Print DateDiff (“m”,d1, d2)
                 msgbox DateDiff (“d”, d1, d2)
              b) Dim str1 As string
                 str1 = “university of pune”
                 Print strConv(str1, vbBinary)
              c) Dim a, b as Integer
                 a = 10
                 b = 20
                 msgbox “Division =” & a/b
                 Print a\b
                                                                                             P.T.O.
            [3989] – 102                                          -2-                              
                 d) Dim x as Integer
                     For x = 20 to 10 step – 2
                            Select case (i)
                                    case IS-20
                                            print “∗”
                                    case 10-14
                                            print “#”
                            End select.
                     Next
                 e) Dim x, y, z
                       x = 10
                       y = 10
                       z = 11F (y < x, x, y)
                       print z.
                 f)  Dim j as Integer
                            j = 1.66
                            Print Round (j).
              2. Explain use of the following property (any 5) :                                              (5×2=10)
                 1) Columns property of listbox.
                 2) Style property of command Button.
                 3) Wordwrap property of label.
                 4) Strech property of Image.
                 5) Picture property of Picture.
                 6) Interval property of timer.
                                             -3-                             [3989] – 102
           3. Write the sectional code for the following (solve any 4) :                  (4×5=20)
              a) Write a code to check whether give number prime or not.
              b) Write a user defined function which accepts a number and returns its reverse.
              c) Write a code which accepts names of 5 cities and add it in comboBox. After
                  the user select a city from comboBox remove it from comboBox.
              d) Write a code which will create a menubar having options circle, rectangle and
                  will give area of selected menu option with appropriate.
           4. Write a short notes (any 4) :                                               (4×5=20)
              a) Data types in visual basic
              b) Array
              c) Message Box and Input Box
              d) Menus
              e) Any 5 string functions
              f) Common dialog box.
                                              —————––––––———
                                                                                           B/I/11/165
                                                                      [3989] – 103
                          P.G.D.C.M. (Semester – I) Examination, 2011
                                 103 : INTRODUCTION  TO  C++
                                            (2008 Pattern)
        Time : 3 Hours                                                         Max. Marks : 70
             Instructions :1)Q. 1 and Q. 7 are compulsory.
                            2) Write any 4 questions from Q. 2 to Q. 6.
          1. Explain object oriented programming concepts with advantages.                  15
          2. Design an item class with following specifications : (itemId, price, rate as private
            member variables and calculate Amt (price * rate) as private member function,
            show Data as public member function). Write overloaded constructors.            10
          3. Write  a C program to print first 300 prime numbers.                           10
          4. Write a C program to print pattern.                                            10
            1
            10
            101
            1010
            10101
          5. Write a C++ array program that will accept 20 numbers from user and print following :
            Odd number count, Even number count.                                            10
          6. Write a C program that will print all Armstrong numbers between 1 to 500.      10
          7. Write short note on following (any 3) :                                        15
            a) Explain operators in C and C++
            b) Explain constructors and destructors in C++
            c) Explain Data types in C
            d) Explain loops in C
            e) Explain difference between C and C++.
                                              ––––––––––––––––
                                                                                      B/I/11/175
The words contained in this file might help you see if this file matches what you are looking for:

...P g d c m semester i examination programming using visual basic pattern time hours max marks note all questions are compulsory figures to the right indicates full give output for following section of code and explain solve any a dim as date print datediff msgbox b str string university pune strconv vbbinary integer division t o x step select case is end next e y z f j round use property columns listbox style command button wordwrap label strech image picture interval timer write sectional check whether number prime or not user defined function which accepts returns its reverse names cities add it in combobox after city from remove will create menubar having options circle rectangle area selected menu option with appropriate short notes data types array message box input menus functions common dialog introduction instructions q object oriented concepts advantages design an item class specifications itemid price rate private member variables calculate amt show public overloaded construct...

no reviews yet
Please Login to review.