Summer 2005 Electronic Engineering Higher Certificate Exam, Exams of Computer Science

Exam questions for the higher certificate in engineering in electronic engineering program at cork institute of technology, summer 2005. The exam covers topics such as pixels, operating systems, cpu processing power, serial and parallel ports, mathematical formulae, functions and sub-programs, basic programming, and data types. Students are required to answer questions related to these topics and demonstrate their understanding through examples.

Typology: Exams

2012/2013

Uploaded on 03/30/2013

lalchand
lalchand 🇮🇳

4.4

(67)

117 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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)
Summer 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) The term PIXEL is often used when referring to computer displays. Explain
what a pixel is and why it is relevant. [4 marks]
(b) Define the term OPERATING SYSTEM and explain what an operating
system does on a personal computer. [4 marks]
(c) Describe three methods of determining the ‘processing power’ of a CPU. [4 marks]
(d) Discuss the main features and applications of the serial and parallel ports on a
PC. [4 marks]
(e) Explain, with examples, any two common mathematical formulae available in
a spreadsheet. [4 marks]
(f) Illustrate the difference between functions and sub-programs using appropriate
examples. [4 marks]
(g) Describe the LEN function in BASIC, giving its syntax and 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 population of Ireland,
the average temperature,
a name,
the charge of an electron [4 marks]
(j) Give the syntax of a FOR … NEXT loop and show how it can be used to
display the numbers from 100 down to 0. [4 marks]
(40 Marks in total)
pf3
pf4

Partial preview of the text

Download Summer 2005 Electronic Engineering Higher Certificate Exam 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)

Summer 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) The term PIXEL is often used when referring to computer displays. Explain what a pixel is and why it is relevant. [4 marks] (b) Define the term OPERATING SYSTEM and explain what an operating system does on a personal computer. (^) [4 marks] (c) Describe three methods of determining the ‘processing power’ of a CPU. [4 marks] (d) Discuss the main features and applications of the serial and parallel ports on a PC. [4 marks] (e) Explain, with examples, any two common mathematical formulae available in a spreadsheet. [4 marks] (f) Illustrate the difference between functions and sub-programs using appropriate examples. [4 marks] (g) Describe the LEN function in BASIC, giving its syntax and 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 population of Ireland,
  • the average temperature,
  • a name,
  • the charge of an electron [4 marks] (j) Give the syntax of a FOR … NEXT loop and show how it can be used to display the numbers from 100 down to 0. [4 marks]

(40 Marks in total)

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

(i) Primary storage. (ii) CD ROM. (iii) ASCII. (iv) Non-impact printers. [8 marks]

(b) Explain each line of the following program and draw the program’s output if the numbers 15 and 5 are entered. [6 marks] DIM FirstNum, SecondNum Temp AS INTEGER CLS PRINT INPUT "Enter a number", FirstNum INPUT "Enter another number", SecondNum REM Test numbers IF FirstNum > SecondNum THEN Temp = FirstNum FirstNum = SecondNum SecondNum = temp END IF PRINT PRINT FirstNum; " "; PRINT SecondNum END

(c) Write a simple BASIC program that reads in the names and scores of two teams. The program should then report on which team won and by how many goals. [6 marks]

Q3. (a) Distinguish between count controlled and event controlled loops giving appropriate examples of each. [4 marks]

(b) Give the syntax of the following BASIC statements: (i) IF…THEN…ELSE (ii) DO … LOOP (^) [6 marks]

(c) The resistance of a length of cable is given by;

a

R =^ ρ l

where ρ is the resistivity of the cable material, l is its length and a is the cross-sectional area. Write a program that reads in values for ρ and a from the keyboard. The program should now read in values for the starting length, final length and the increment size. Finally the program should display a table of the cable resistances for values of length in the range entered going up in the increment size specified. [10 marks]

Option 4 should quit the program. [20 marks]

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

(b) Write a program that reads in two integers from the keyboard. The program should then pass these numbers to a sub-program that should display the larger number. [7 marks]

(c) Write a program that reads in a sentence from the keyboard. The program should then ask for a word to search for and report on how many times this word occurred in the sentence. [8 marks]

ooooOOOOoooo