Write a program in visual basic that accepts a name and a score of six students in a test
through the use of inputbox(). The program should then display the names, scores and the average scores on a picturebox. Attach the code to a command button (Answered)
Explain each of the following types of controls in a Visual Basic program (4 marks)
(i) DriveListBox
(ii) DirListBox (Answered)
State the visual basic conversion type function used to convert a string of the following statement in a visual basic program: (4 marks)
(i) Boolean data;
(ii) Currency;
(iii) Date data;
(iv) Integer data. (Answered)
Explain the function of each of the following IDE interface of a visual basic program: (6 marks)
(i) Form window;
(ii) Property window;
(iii) Form layout window. (Answered)
Explain each of the following error handling methods used in Visual Basic programming language (6 marks)
i. Err.Number,
ii. Err.Clear,
iii. On Error-GoTo (Answered)
Distinguish between function procedure and event procedure as used in Visual Basic programming language. (Answered)
Write a Visual Basic program that accepts percentage score in an examination through the use of an input box function. The program then displays a remark based on the following criteria. Use case statement. (5 marks)
Score remarks
0-40 Failed
41-50 Pass
51-70 Credit
Above 70 Distinction (Answered)
State a circumstance under which each of the following statements are used in a visual basic program: (6 marks)
(i) ReDim;
(ii) Option base;
(iii) Preserve.
(Answered)