

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Answer ANY five questions. All questions carry equal marks.
Examiners: Dr. D.O’Donovan Mr. D. Denieffe Dr. R O Dubhghaill
1 4 9 45 78 90 345 765 to illustrate how the value 4 is located using the Binary search algorithm. [8 %]
(b) Write code to implement the Binary Search algorithm in BASIC. [12 %]
(b) Write a program that sorts an array of 50 integers using the Select Sort Algorithm. [10 %]
(c) Describe how arrays may be dynamically resized in Visual Basic. How are contents of the array maintained? [4 %]
(b) Write a program in Visual Basic to accept 10 numbers from the keyboard using a text box called “InputText”. A command button called “AddButton” should be used to add the value currently in the text box “InputText” to a list box called “UnsortedList”. Another command button “DisplayList” should be used to activate/deactivate a timer called “TimerDisplay” to display each value in the list box “UnsortedList” at 0.5 seconds intervals in a label called “DisplayLabel”. See Figure 3.1 [14 %]
Figure 3.
o Hardware address [2 %] o IP address [2 %] o Internet address [2 %] o Client/Server architecture [2 %]
(b) Compare RISC and CISC architectures. [12 %]