Year 12 - Computer Studies Worksheet 4
Year 12 - Computer Studies Worksheet 4
Year 12 - Computer Studies Worksheet 4
A. For................Next C. Do................While
B. Do................Until D. For Each.......While
3. Which of the following are standard prefixes for the Button and Combo box controls
respectively?
A. btn and chb C. bto and cbo
B. btn and cbo D. cmd and cbo
4. A student is coding a program in VB.Net and wants to add a comment within the code to
show constant declaration. Which of the following is the best way for the student to
comment?
A. “Constants are declared”
B. {Constants are declared}
C. Rem Constants are declared
D. Comment: “Constants are declared”
8. Which of the following is correct vb.net code to display „Computer Studies‟ in a label
named lblSubject.
A. lblSubject.Computer Studies
B. lblSubject = “Computer Studies”
C. “Computer Studies” = lblSubject.Text
D. lblSubject.Text = “Computer Studies”
9. Visual Basic (VB) has become such a popular programming language for several
reasons. Which year was VB programming language first introduced?
A. 1973 C. 1991
B. 1995 D. 1989
10. Which of the following symbols is used to indicate an input/read or output operation?
A. C.
B. D.
A. fixing.
B. bugging.
C. defixing.
D. debugging.
A. Octal
B. Binary
C. Decimal
D. Hexadecimal
Study the program given below and answer questions 11 and 12.
Read 3 numbers
Add 3 numbers
Display average
A. iteration structure.
B. selection structure.
C. sequence structure.
D. repetition structure.
14. What would be the average displayed when these numbers 2, 4, 6 are entered?
A. 2 C. 4
B. 3 D. 6
17. The first step to writing a good visual application is to have a good design of the user
interface. List the other two steps.
19. Describe when radio buttons are to be used instead of check boxes in a group box.
20. When a programmer starts executing a program, the first step is called compiling.
Define clean compile.
21. A student is writing a program and asked you to help in declaring a variable MYNAME
to hold the student‟s name. Use Dim to write a one line code to declare the variable.
23. Study the VB.Net programming code for btnShow and answer the questions below.
End Sub
27. Describe when a programmer should use a masked textbox instead of a normal textbox in
a VB.Net program.
28. Jerrys Infotech Limited is a company that sells a wide range of office equipment to
schools and offices around the country. Due to the high demand from the customers, the
company has hired 20 employees to run the sales department. The company pays its sales
team a weekly wage of $250 plus commission made on all sales. The commission are as
follows:
Sales Commission
>=10 000 3%
>=15 000 6%
>=20 000 9%
Draw a flow chart for the program in the Answer Booklet that will enable the
following:
Request the user to enter the employee's name and the total sales for the week.
Calculate the salary.
Display the employee's name and the weekly salary.
Use the FOR…NEXT and IF…THEN…ELSE structure in the flow chart.
29. Start a new project. Add a textbox, a Label and a button to your new Form. Then write a
programme that does the following: