

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
Main points of this exam paper are: Bizz Bang, Basic Interface, Visual Basic, Youngest Female, Males, Average Age, Sex, Age, Name, Students
Typology: Exams
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Page 1 of 2
Autumn Examinations 2010/
Module Code: SOFT
School: School of Computing & Mathematics
Programme Title: Bachelor of Science in Computing Bachelor of Science (Honours) in Software Development Bachelor of Science (Honours) in Software Development & Computer Networking Higher Certificate in Science in Computing in Information Technology Support Bachelor of Science (Honours) in IT Management
Programme Code: KCOMP_7_Y KSDEV_8_Y KDNET_8_Y KITSU_6_Y KITMN_8_Y
External Examiner(s): Mr. P. Given Internal Examiner(s): Ms. C. McGuane, Mr. C. Manning, Ms. L. O Sullivan,
Instructions: Answer BOTH questions.
Duration: 2 Hours Sitting: Autumn 2011
Requirements for this examination:
Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have received the correct examination. If in doubt please contact an Invigilator.
Page 2 of 2
Question 1. (70 marks)
Write an algorithm that
first inputs
the number of students in a class
and then for each student inputs
the name the age the sex
The program outputs
the average age of the males in the class the name of the youngest female
You may simply use INPUT and OUTPUT commands for the input and output. You need not
concern yourself with the Visual Basic interface.
Question 2. (30 marks)
Write a program that outputs all of the numbers from 1 to 101
but replaces any number evenly divisible by 3 with bizz
and replaces any number evenly divisible by 5 with bang
Numbers evenly divisible by both 3 and 5 are replaced by bizzbang
Eg.1 2 bizz 4 bang bizz 7 8 bizz bang 11 ... bizz bang 101