Sunteți pe pagina 1din 5

Visual Basic 6.

0 Punjab University papers

INTRODUCTION TO INFORMATION TECHNOLOGY 2007

Question No 1(a). What is an algorithm and pseudo code? 5.0


1(b). What is OOP? Explain its importance 5.0
Question No 2(a) what are user define data types? which data type are support to VB 5.0
2(b) what are control element? Explain the sub procedure . 5.0
Question NO.3(a) what are optional arguments ? Write code example using optional arguments
3(b) what are event procedure .with example . 5.0 + 5.0
Question No 4.(a) what are arrays? Explain two array related functions 5.0
4.(b) what are difference between logical and syntax error with example 5.0
Question No 5.(a) what are sequential Access data file ? 5.0
5.(b) what is a data base ? explain the uses of data control 5.0

INTRODUCTION TO INFORMATION TECHNOLOGY 2008


Question No 1(a). Differentiate between structured programming and OOP 5.0+ 5.0
1(b). what is variable ? in visual basic what do you mean by scope of variable.
Question No 2(a) what do you means by a user defined sub procedure. Explain by giving
example 5.0
2(b) differentiate between input box function and msgbox function. 5.0
Question NO.3(a) what are the different looping construct available in visual basic with
example 5.0
3(b) what are the different selection structure available in visual basic with
Example 5.0
Question No 4.(a) what do you means control array . In visual basic how control arrays help 5.0
you in coding. 5.0
4.(b) write a descriptive note on sequential access of file . 5.0
Question No 5.(a) An array of size N contains N positive integer 0-9construct an algorithm to
determine if word is palindrome (mom , 4994) 5.0
5.(b) write the algorithm to read a positive integer N whether or not N is prime
Number. 5.0

http://informationtechnology.pk https://www.facebook.com/it4all.pk
Visual Basic 6.0 Punjab University papers

INTRODUCTION TO INFORMATION TECHNOLOGY 2009


Question no 1(a). What is program solving ? explain its advantages . 5.0
1(b) What is variable ? explain different data types in VB. 5.0
Question No 2. (a) What are arithmetic operator in visual basic ? explain with example.`5.0
2(b) How can you use a scrollbar in visual basic with example . 5.0
Question No 3(a) What is user define data types explain with example . 5.0
3(b) In visual basic how select case help in coding . 5.0
Question no 4 (a) Discuss the different properties of form in detail . 5.0
4 (b) Difference between modules and procedure 5.0

INTRODUCTION TO INFORMATION TECHNOLOGY 2010


Question No .1 what is event driven programming ? differentiate between event driven
programming and visual programing . 12.5

Question no 2. Write a VB program that takes n numbers as input . it outputs the frequency of
positive and negative numbers . A sample input and out put as follows:-. 12.5

Input

N = 12

The 12 numbers are as under :-

40 , 0 , -1 , 59 , -37 , 283 , 61 , 387 , -91 , -103 , 341 , 523

Output :-

Frequency of positive numbers :- 8

Frequency of negative numbers :- 4

Question NO 3. Write a VB program that reads n values in a list and print the product of the value
and position at which it resides in the list . product = L[1]*1 , product = L[2] * 2 and so on

Note the list does not change :- 12.5

Example:- position :- 1 2 3 4 5
Value 5 3 7 1 4
Output :- 5 6 21 4 20

http://informationtechnology.pk https://www.facebook.com/it4all.pk
Visual Basic 6.0 Punjab University papers

INTRODUCTION TO INFORMATION TECHNOLOGY 2011


Question no 1. What is meant by structure programming? Describes event procedures , function
procedures and modules . also given one coding for each type of the procedure .
12.5

Question no . 2 write a VB program that takes N numbers as input . it print the maximum
number and its frequency (number of occurrence ) . 12.5

Sample no 1
N= 10
The 10 inputs are 7,20 , -1 , 65 , 36 , 90, 78 , 90 ,90 ,-2
Maximum is 90
Frequency is 3
Question no 3 . Write a program that read 10 numbers from user and store them in an array. Print
the numbers in ascending order . A sample program is given below . 12.5

7,8,90,34,2,9,12,1,10,32
Output :-
1,2,7,8,9,10,12,32,34,90

INTRODUCTION TO INFORMATION TECHNOLOGY 2012


Question no .1 Explain the following programming concept with example :- 12.5

a. data types in visual basic


b. variables and their scope in a program
c. branching & looping instructions
d. function procedure
e. relational operator .
Question no .2 write a VB program that should takes a number n as input . your program print first
10 multiples of n by using loop . 12.5

Question no . 3 write a VB program that should takes 10 numbers as input and store them in an
array. It should print the number of even numbers among those numbers . you need to use if –else
and loop in your program . 12.5

INTRODUCTION TO INFORMATION TECHNOLOGY 2013


http://informationtechnology.pk https://www.facebook.com/it4all.pk
Visual Basic 6.0 Punjab University papers

Question no 1. Explain the following terms and techniques :- 12.5

a. low level language


b. OOP
c. Structured programming
d. sub procedure
e. variable in VB
Question No 2. Write a VB program that should takes 10 numbers from user as input data . your
program should separate count the even and odd numbers presents in input . print both of the
counts on the screen . 12.5

Question No 3. Write a program in VB that should takes 3 numbers from user as input . your
program find and print the square and cube of these three numbers on the screen . 12.5

INTRODUCTION TO INFORMATION TECHNOLOGY 2014


Question NO .1. briefly explain the different between the following terms :- (6.0 + 6.5)
1. variable and constant

2. low level and high level programming language

3. conditional and repletion statement in VB

(B) write a VB program that inputs three distinct number and find and display middle one .

Question No 2(a) The Area of a rectangle is the rectangle’s multiplied by its width . write program
that asks for length and width of two rectangles . The program should tell the user which rectangle
has the greater area or if the area are the same . (6.0+6.5)

(b) . Write a VB program that should take a positive number n as input . your should display the
sum of all numbers between 1 to n numbers .

Question NO 3.(a) write a VB program that should take 10 number from user . your program
should find and display the maximum number . (6.0+6.5)

http://informationtechnology.pk https://www.facebook.com/it4all.pk
Visual Basic 6.0 Punjab University papers

(b) write a program that should takes two numbers (that is , first and last ) from the user and display
all the numbers and their square in the form of an order pair between first and last numbers

For example if user enter 2 to 5 then it should display pairs

(2,4) (3,9) (4,16) (5,25)

For example if user enter -3 to1 then it should display pairs

(-3 ,9) (-2,4) (-1 ,1) (0,0) )(1,1)

INTRODUCTION TO INFORMATION TECHNOLOGY 2015


Question NO 1(a) briefly Explain the difference between the following terms (6.0+6.5)
1. structured programming

2. object oriented programming

3. visual programming

Question No 1(b) running on a particular treadmill burn 3.9 calories per minutes . write a program
that uses a loop to display the number of calories burned after 10, 15 ,20 , 25 and 30 minutes

Question NO 2(a) A country club , which currently charge RS. 2500 per year for membership has
, announced it will increase its membership fee by 4% each year for next 6 years . write a program
uses loop to display the projected for next six years. (6.0+6.5)

Question No 2(b) write a VB program that should takes 10 positive numbers as input . your
program should display the sum of all the numbers from 1 to n numbers .

Question NO 3(a) write a VB program that should takes 10 minutes from user and save in an array
. your program should sort and display these numbers in ascending order. (6.0+6.5)

Question N0 .3(b) write a program that asks the user to enter the amount that he or she budgeted
for a month . A loop should then user to enter each of his or her expenses for the month and keep
a running total . when the loop finishes , the program should displays the amount that user is
over or under the budgets .

http://informationtechnology.pk https://www.facebook.com/it4all.pk

S-ar putea să vă placă și