Autumn 2007 Exam for Higher Certificate in Computing IT Support, Exams of Software Development Methodologies

The exam questions for the higher certificate in science in computing information technology support exam held at cork institute of technology in autumn 2007. The exam covers various topics in software development, including writing programs to calculate averages, sort numbers, and manipulate strings. It also includes questions on java concepts such as constants, method signatures, static variables, and recursion.

Typology: Exams

2012/2013

Uploaded on 03/25/2013

digvijay
digvijay 🇮🇳

4.4

(17)

185 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Cork Institute of Technology
1
Higher Certificate in Science in Computing in Information
Technology Support – Stage 1
(NFQ Level 6)
Autumn 2007
Software Development
(Time: 3 Hours)
Section A: This question must be answered.
Section B: Choose 1 question
Section C: Choose 1 question
Examiners: Ms. D. Dunlea
Mr. J. Greenslade
Mr. J. Walsh
Section A
1a) Write a program that uses an array to work out the average age of 10 students. Your task is
to insert the age of each student and then output these details to the screen one line after the
other outputting the average age at the end. [10 marks]
1b) Write a program that given three numbers outputs them in ascending order. [10 marks]
1c) Write a program that stores the day in the week, Monday, Tuesday, etc., in one array and the
temperature for that week in another. Your program will ask the user to enter the
temperature for the given day in the week. Using a for loop output the temperature for the 1st
day – Sunday, 3rd day and the 5th day.
Day Temperature
Sunday 18
Tuesday 20
Thursday 19
[20 marks]
.
pf3
pf4

Partial preview of the text

Download Autumn 2007 Exam for Higher Certificate in Computing IT Support and more Exams Software Development Methodologies in PDF only on Docsity!

Cork Institute of Technology

Higher Certificate in Science in Computing in Information

Technology Support – Stage 1

(NFQ Level 6)

Autumn 2007

Software Development

(Time: 3 Hours)

Section A: This question must be answered.

Section B: Choose 1 question

Section C: Choose 1 question

Examiners: Ms. D. Dunlea Mr. J. Greenslade Mr. J. Walsh

Section A

1a) Write a program that uses an array to work out the average age of 10 students. Your task is to insert the age of each student and then output these details to the screen one line after the other outputting the average age at the end. [10 marks]

1b) Write a program that given three numbers outputs them in ascending order. [10 marks]

1c) Write a program that stores the day in the week, Monday, Tuesday, etc., in one array and the temperature for that week in another. Your program will ask the user to enter the temperature for the given day in the week. Using a for loop output the temperature for the 1 st day – Sunday, 3 rd^ day and the 5 th^ day.

Day Temperature Sunday 18 Tuesday 20 Thursday 19

[20 marks] .

Section B

2 a) In Kinder Care they are teaching their young students to add, subtract and multiply two numbers. Write a (^) menu program that can be used by the students. The menu screen (^) must display the following:-

Kinder Care

  1. Add Two Integers
  2. Subtract Two Integers
  3. Multiply Two Integers
  4. Exit

Use static methods to deal with the student’s choice dealing effectively with the exit option. [20 marks]

2b) Answer the following questions:

String s = “Absolute power corrupts absolutely”;

  1. What is the length of string s? [1 marks]
  2. String p = s.substring(15); What is the value of p? [2 marks]
  3. String x = s.substring(8, 15); What is the value of x? [2 marks]
  4. int y = s.indexOf(“p”); What is the value of y? [2 marks]
  5. String p = s+s.substring(24); [3 marks]

3a) What is a constant? Give examples of how they are declared in Java? [3 marks]

3b) What is meant by the term “signature” in relation to methods? How do we know a methods signature? What is it composed of? [3 marks]

3c) What is the difference between static variables and methods and instance variables and methods? [4 marks]

3d) What is meant by the term “reusability” in relation to Object Oriented Programming and why is it so important? [6 marks]

3e) Write a program that uses a recursive method to count down from a number given by the user. [14 marks]

5 a) Using a one-dimensional array solve the following problem. Twenty students were asked to rate the quality of the food in the student cafeteria on a scale of 1 to 10 ( 1 means awful and 10 means excellent). Place the twenty responses in an integer array and summarize the results of the poll. The following are the forty responses [1, 2, 6, 4, 8, 5, 9, 7, 8, 10, 1, 6, 3, 8, 6, 10, 3, 8, 2, 7]. We wish to summarise the number of responses of each type (i.e., 1 through 10). These can be stored in a separate array. We are interested in the rating and the frequency with which these rating occurs. [20 marks]

5 c) Using examples explain the following terms?

  1. Class [3 marks]

  2. Instance [3 marks]

  3. Explain the following two terms – sequential execution and concurrent execution. [2 marks]

  4. What is a constructor? Give examples [2 marks]