Professional Documents
Culture Documents
7 Write a program that reads in five different integers and determines and prints the largest and
smallest integers in the group.
8. Explain any 2 controls that can be used to print output in VB program, and state the
Procedure(s) to set the two controls.
Grade F E D C B A
Page 1 of 2
16. Write a VB program that ask a user to input a number. The program should then output the
number and a message saying whether the number is positive, negative, or zero. Note: Use textbox
control for input and label control for output
17. Using a list box, write code segments that demonstrate how to use the five basic arithmetic
operators
18. Briefly explain Event procedure in VB and give two examples of events.
19. What is the different between a Variable and a Constant.
20. Write an assignment statement that decrements the intNumcounter variable by 5.
Use an arithmetic assignment operator
21. Write an assignment statement that increments the decTotalvariable by the value in the
decRegionvariable. Use an arithmetic assignment operator.
22. Using the While keyword, write a Do clause that processes the loop body as long as the
value in the intAgevariable is greater than 21.
Page 2 of 2