


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



(NFQ - Level 6)
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:
(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
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