Docsity

Computing Exam: Higher Certificate in Engineering in Electronic Engineering – Stage 1, Exams of Computer Science

Toggle sidebar
bg1
Cork Institute of Technology
Higher Certificate in Engineering in Electronic Engineering – Stage 1
(National Certificate in Engineering in Electronic Engineering – Stage 1)
(NFQ – Level 6)
Autumn 2005
COMPUTING
(Time: 3 Hours)
Answer question one and any three other
questions
Maximum available marks is 100.
Examiners: Mr. P Cogan
Mr. J. Berry
Dr. R. Dubhghaill
Q1. (a) Briefly describe the four main functions of a computer system. [4 marks]
(b) Define the term OPERATING SYSTEM and explain what an operating
system does on a personal computer. [4 marks]
(c) Describe what a CPU does in a computer and name a CPU that would be
found in a modern personal computer. [4 marks]
(d) Discuss the main features and applications of the USB ports on a PC. [4 marks]
(e) Cells B5,B6,B7 and B8 on a spreadsheet contain a list of numbers. Write
down the formulae that you would place in a cell to (i) add up the numbers,
(ii) get the average of the numbers. [4 marks]
(f) Give three advantages of modular programming. [4 marks]
(g) Describe the MOD keyword in BASIC, giving an example of its use. [4 marks]
(h) What are local variables? Give examples of how they are defined in BASIC. [4 marks]
(i) Explain which variable type would be appropriate for storing each of the
following:
• the amount of money in a persons bank account,
• the email address of a person
• a name,
• the gravitational force on a satellite [4 marks]
(j) Give the syntax of a do … loop and show how it can be used to repeat until a
number entered is positive. [4 marks]
(40 Marks in total)
pf3
pf4

Partial preview of the text

Download Computing Exam: Higher Certificate in Engineering in Electronic Engineering – Stage 1 and more Exams Computer Science in PDF only on Docsity!

Cork Institute of Technology

Higher Certificate in Engineering in Electronic Engineering – Stage 1

(National Certificate in Engineering in Electronic Engineering – Stage 1)

(NFQ – Level 6)

Autumn 2005

COMPUTING

(Time: 3 Hours)

Answer question one and any three other questions Maximum available marks is 100.

Examiners: Mr. P Cogan Mr. J. Berry Dr. R. Dubhghaill

Q1. (a) Briefly describe the four main functions of a computer system. [4 marks]

(b) Define the term OPERATING SYSTEM and explain what an operating system does on a personal computer. [4 marks] (c) Describe what a CPU does in a computer and name a CPU that would be found in a modern personal computer. (^) [4 marks] (d) Discuss the main features and applications of the USB ports on a PC. [4 marks] (e) Cells B5,B6,B7 and B8 on a spreadsheet contain a list of numbers. Write down the formulae that you would place in a cell to (i) add up the numbers, (ii) get the average of the numbers. [4 marks] (f) Give three advantages of modular programming. [4 marks] (g) Describe the MOD keyword in BASIC, giving an example of its use. [4 marks] (h) What are local variables? Give examples of how they are defined in BASIC. (^) [4 marks] (i) Explain which variable type would be appropriate for storing each of the following:

  • the amount of money in a persons bank account,
  • the email address of a person
  • a name,
  • the gravitational force on a satellite [4 marks] (j) Give the syntax of a do … loop and show how it can be used to repeat until a number entered is positive. [4 marks]

(40 Marks in total)

Q2. (a) Write a note discussing the following;

(i) Secondary storage. (ii) The parallel port. (iii) Computer displays. (iv) Why the operating system uses files and folders. [8 marks]

(b) Explain each line of the following program and draw the program’s output if the numbers 4 is entered. [6 marks] DIM N, T, L AS INTEGER CLS PRINT INPUT "Enter a positive integer", N T = 1 FOR L = 1 TO N T = T * L NEXT L PRINT “Original value = “;N; PRINT " and the result is "; T PRINT END (c) Write a simple BASIC program that reads in values for the temperature, pressure and RPM of an engine. The program should display the words TEMPERATURE ALARM if the temperature is less than 0 or bigger than 100 degrees. The program should display the words PRESSURE ALARM if the pressure is more than 10 and the engine is running. The program should display STALL ALARM if the RPM is between 1 and 1000. Hint: one of the values read in lets you determine if the engine is running. [6 marks]

Q3. (a) Give the syntax and an example of the count controlled loop structure. Draw a flowchart to illustrate your answer.. [4 marks]

(b) Give the syntax of the following BASIC statements: (i) SELECT … CASE (ii) IF … THEN… ELSEIF [6 marks]

(c) Write a program that will sum a list of positive integers entered by the user, terminating when the user enters a zero. Any negative numbers entered should be ignored. [10 marks]

Q6. (a) Discuss the advantages of modular programming. [5 marks]

(b) Write a program that reads in a string from the keyboard. The program should then pass the string to a sub-program that should display the number of characters in the string. (^) [7 marks]

(c) Write a program that reads in a sentence from the keyboard. The program should then print the sentence out backwards. [8 marks]

ooooOOOOoooo