Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
10 views
4 pages
2017 Nov
Past Paper
Uploaded by
John Njiru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save 2017 Nov For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
10 views
4 pages
2017 Nov
Past Paper
Uploaded by
John Njiru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save 2017 Nov For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 4
Search
Fullscreen
easytvet.com 2920/205 VISUAL PROGRAMMING November 2017 Time hours THE KENYA NATIONAL EXAMINATIONS COUNCIL DIPLOMA IN INFORMATION COMMUNICATION TECHNOLOGY MODULE II VISUAL PROGRAMMING Shours INSTRUCTIONS TO CANDIDATES Answer any FIVE of the following EIGHT questions in the answer booklet provided. All questions carry equal marks Candidates should answer the questions in English. This paper consists of 4 printed pages. Candidates should check the question paper to ascertain that all the Pages are printed as indicated and that no questions are missing. ©2017 The Kenya National Examinations Council. Turn over(b) © () © () (b) (oe 2920/2085 easytvet.com (Outline three factors that could be considered when setting control properties ina Visual Basic program. (G marks) (ii) Distinguish between an object and a control as used in Visual Basic program Environment (2 marks) (Describe the term menu editor as used in Visual Basic programming. (2 marks) (ii) Describe two properties applied in a menu editor. (4 marks) () _ Distinguish between sentinel and flag controlled loops as used in programming. (4 marks) (ii) Write a program in Visual Basic that would display even numbers between 10 and 20.on a form. Use a do while statement. Attach the cade to a command button. (5 marks) State the prefix for each of the following Visual Basic tools: (2 marks) (Timer, (i) Option Button; (ii) Shape; (i) Horizontal ScrollBar. Describe three Project Explorer buttons used in a Visual Basic program. (6 marks) Figure | shows a list of numbers in an array. Use it to answer the question that follows. (i az Tar a9 Tar [25 J26 [28 Figure | Perform a binary search on the array showing the steps, given that the search key is 28 (5 marks) Write a program in Visual Basic that accepts a name of a person through the use of an input box .The program should then add the name to a list box through the use of a procedure. Attach the code to a command button, (7 marks) Outline four characteristics of a Visual Programming language. (Amarks) (Describe a sub procedure as used in a Visual programming, (2 marks) (ii) Outline three characteristics of an event as used in Visual Basic programming. Q marks) Distinguish between unload and hide methods as used in a Visual Basic program. (4 marks)easytvet.com (@) A book supplier offers a discount of 10% when the total cost of books purchased is more than 10,000, Write a program in Visual Basic that accepts the price of three books ‘one at a time through an input box. The program computes total cost, discount if any and then displays the amount payable on a picture box. Attach the code to a command button. (7 marks) 4. (a) The following are programming languages. Visual Basic, PHP JavaScript, Visual C++, Python, lisp Categorise each language as either event driven or procedural programming languages. (3 marks) (b) Outline three properties of a user defined function. GB marks) (©) Explain three similarities between ADO data control and data environment as used in Visual Basic programming. (6 marks) (@)@)_—sExplain the use of ubound{) as used in an array. (2 marks) (ii) Write a program in Visual Basic that accepts five values in an array. The program then displays the smallest and the largest value on the form. Attach the code to. a command button, (6 marks) 5 (a) _State the output generated when each of the following Visual Basic statement is executed, (4 marks) (Mid (“Visual Environment”, 3, 6) Gi) InStr(1, "Visual Environment", "Environment") Gi) Print Len ( “Visual Environment”) (iv) Print RTrim("Visual Environment") (b) Describe two values for an EOF action in a Visual Basic program. (4 marks) “ (©) John, a programmer would like to include error handling messages in a Visual Basic program. Explain three approaches that he could consider. (6 marks) (@) Table 1 shows details of Module | subjects. Use it to answer the question that follows: Subject code | Subject name Label colour 4 Ic. Red 6 Programming Green 8 Mathematics Orange ‘Any other | Does not exist White number Write a program in Visual Basic that accepts the subject code through the use of textbox. The program then displays the subject name on a label and changes the label background colour as indicated when a command button is clicked. Use a select case statement. (6 marks) 2920/205 3 November 2017 Turn overb) () 3) (©) (d) 2920/205 November 2077 easytvet.com Outline three Recordset methods that enables navigation in a Visual Basic program, (3 marks) Describe three ADO data locking options used in a Visual Basic program, (6 marks) Alice tried connecting a database table to a form, When she clicked the test connection bution, @ message “unsuccessful” was displayed. Exptain three possible reasons that could lead to this, (6 marks) Write a program in Visual Basic that would accept the name of a person through the use of a text box. The program then displays “ Hallo Nelly” on a message box() when the name entered is Nelly, otherwise it displays “ unknown name” .Attach the code to a command button. (S marks) Outline two keypress events and two mouse events ina Visual Basic program. (4 marks) Differentiate between Print x. y and Picturel.Print x, y statements as used in a Visual Basic program. (4 marks) Marion, a programmer would Like to include err object method in a Visual Basic program. Explain ¢wo methods that she could consider . (4 marks) Write a program in Visual Basic that uses a procedure to capture the radius of a circle through the use of a textbox. The program then computes the area of a circle and volume of a sphere through a procedure and displays the results on a form. Attach the code to a cornmand button. (8 marks) Outline four sorting techniques that could be used in a Visual Basic program. (4 marks) Mary prefers using a binary tree to search for a record, Explain three challenges she could face, (6 marks) Figure 2 shows a user interface in a Visual Basic program. Use it to answer the question that follows. Figure 2 Write a program in Visual Basic that could implement the interface. The program should clear the results in the picturebox when the button clear is clicked. (10 marks) THIS IS THE LAST PRINTED PAGE. 4
You might also like
VB Question Paper
PDF
No ratings yet
VB Question Paper
3 pages
VB QP 2024 Model
PDF
No ratings yet
VB QP 2024 Model
2 pages
Visual Basic
PDF
100% (1)
Visual Basic
7 pages
2015 Nov
PDF
No ratings yet
2015 Nov
19 pages
Visual Basic 2
PDF
No ratings yet
Visual Basic 2
6 pages
Ilovepdf Merged 2
PDF
No ratings yet
Ilovepdf Merged 2
17 pages
ComputerScience II VB Optional
PDF
No ratings yet
ComputerScience II VB Optional
5 pages
Visual-Basic MCQ3
PDF
No ratings yet
Visual-Basic MCQ3
22 pages
8TH 3RD Chapter Notes
PDF
No ratings yet
8TH 3RD Chapter Notes
5 pages
Programming Ii
PDF
No ratings yet
Programming Ii
2 pages
Mec VB
PDF
No ratings yet
Mec VB
20 pages
Programming Iii
PDF
No ratings yet
Programming Iii
3 pages
Quiz Application in Visual Basic
PDF
No ratings yet
Quiz Application in Visual Basic
20 pages
Visual Basic 1
PDF
No ratings yet
Visual Basic 1
4 pages
Visual Basic Net PDF
PDF
No ratings yet
Visual Basic Net PDF
7 pages
Computer ApplicationsV Isual Basic Programming
PDF
0% (1)
Computer ApplicationsV Isual Basic Programming
3 pages
PROGRAMING USING VISUAL BASICS 2020-Merged
PDF
No ratings yet
PROGRAMING USING VISUAL BASICS 2020-Merged
12 pages
PUVB-2020 Merged
PDF
No ratings yet
PUVB-2020 Merged
7 pages
CIT 2251 Event Driven Programming - Doc 1
PDF
No ratings yet
CIT 2251 Event Driven Programming - Doc 1
4 pages
Answer Sheet of Visual Basic Senior Five
PDF
No ratings yet
Answer Sheet of Visual Basic Senior Five
13 pages
Visual Basic
PDF
No ratings yet
Visual Basic
6 pages
VB July 2019 Marking Scheme
PDF
No ratings yet
VB July 2019 Marking Scheme
8 pages
Appliction Develoment With Visual Basic 1.0
PDF
No ratings yet
Appliction Develoment With Visual Basic 1.0
3 pages
Pgdca 2 Sem Gui Programming in Visual Basic 951 May 2017
PDF
No ratings yet
Pgdca 2 Sem Gui Programming in Visual Basic 951 May 2017
2 pages
VB Quiz
PDF
No ratings yet
VB Quiz
2 pages
Bca - 401 (Old)
PDF
No ratings yet
Bca - 401 (Old)
2 pages
VB 2
PDF
No ratings yet
VB 2
2 pages
SIT 103 Visual Programming 105524
PDF
No ratings yet
SIT 103 Visual Programming 105524
4 pages
Sit 103 Visual Programming - 105517
PDF
No ratings yet
Sit 103 Visual Programming - 105517
5 pages
Tutorial
PDF
No ratings yet
Tutorial
6 pages
IS122 Exam
PDF
No ratings yet
IS122 Exam
16 pages
Tutorial Questions For Visual Basic Programming
PDF
No ratings yet
Tutorial Questions For Visual Basic Programming
3 pages
VB
PDF
No ratings yet
VB
9 pages
Sco202 Exam May-August 2016
PDF
No ratings yet
Sco202 Exam May-August 2016
3 pages
VB Question Bank
PDF
60% (5)
VB Question Bank
13 pages
Model Gui Final3
PDF
No ratings yet
Model Gui Final3
1 page
Bit 2105 Application Programming
PDF
No ratings yet
Bit 2105 Application Programming
2 pages
10 Year Papers Visual Basic 6.0 SOLVED For B.A Part 1
PDF
100% (8)
10 Year Papers Visual Basic 6.0 SOLVED For B.A Part 1
13 pages
Dcap211 3
PDF
No ratings yet
Dcap211 3
2 pages
Notes
PDF
No ratings yet
Notes
3 pages
SECTION A: Attempt All Questions 55marks: 1. Define The Following Terms
PDF
No ratings yet
SECTION A: Attempt All Questions 55marks: 1. Define The Following Terms
9 pages
Year 12 - Computer Studies Worksheet 4
PDF
No ratings yet
Year 12 - Computer Studies Worksheet 4
5 pages
Comp Exam
PDF
No ratings yet
Comp Exam
7 pages
2-4 Steps in Developing Application:: Visual Basic
PDF
No ratings yet
2-4 Steps in Developing Application:: Visual Basic
12 pages
Visual Basic Net
PDF
0% (1)
Visual Basic Net
7 pages
Visual Programming Techniques BCA IV Sem Multiple Choice Questions
PDF
No ratings yet
Visual Programming Techniques BCA IV Sem Multiple Choice Questions
47 pages
Visual Programming Techniques
PDF
No ratings yet
Visual Programming Techniques
27 pages
SCS 211 Visual Basic Programming
PDF
No ratings yet
SCS 211 Visual Basic Programming
3 pages
INTERSCHOOL EXAM OF - VISUAL BASIC - Level: Senior 6 TERM: 1st Academic Year: 2014 Time: 3hours
PDF
No ratings yet
INTERSCHOOL EXAM OF - VISUAL BASIC - Level: Senior 6 TERM: 1st Academic Year: 2014 Time: 3hours
20 pages
Visual Basic 6
PDF
No ratings yet
Visual Basic 6
45 pages
IV Sem - Visual Programming Techniques
PDF
No ratings yet
IV Sem - Visual Programming Techniques
27 pages
Visual Basic 6
PDF
No ratings yet
Visual Basic 6
45 pages
Dec5062 Visual Basic Programming
PDF
No ratings yet
Dec5062 Visual Basic Programming
10 pages
Colegio de Sta. Teresa de Avila
PDF
No ratings yet
Colegio de Sta. Teresa de Avila
4 pages
Assignment Bca Visual Basic
PDF
No ratings yet
Assignment Bca Visual Basic
12 pages
VBTerm Work
PDF
No ratings yet
VBTerm Work
5 pages
Bachelor in Computer Applcations
PDF
No ratings yet
Bachelor in Computer Applcations
2 pages
Bscit 401
PDF
No ratings yet
Bscit 401
2 pages