

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A past exam paper from the higher certificate in engineering program at cork institute of technology, focusing on computer applications and programming. The exam covers topics such as binary search algorithm, sorting algorithms, visual basic controls, and various technologies. Students are required to answer questions related to these topics, including writing code and implementing algorithms. The exam consists of five questions, each worth equal marks.
Typology: Exams
1 / 3
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 %]