March Assesment Flashcards Preview

Higher Computing Science > March Assesment > Flashcards

Flashcards in March Assesment Deck (5)
Loading flashcards...
1
Q

What is the purpose of file operations?

A

To allow programs to create, access, edit and delete data held in sequential files.

2
Q

Explain how the computer processes the program using the fetch execute cycle with reference to processor, memory and buses.

A
  • processor accesses memory locations to read and write data
  • registers are used to store data, instructions or addresses on the processor
  • address bus passed data from the CPU to RAM
  • data bus carry’s data from the processor to the main memory and vice versa
  • data is read from a memory address and taken to the processor
  • the control unit dictates the clock speed of the cycle and activated the read or write line
3
Q

Why are subprograms used?

A

Subprograms can be tested independently which makes it easier to find errors.

4
Q

What is the purpose of passing parameters in and out of subprograms?

A

Passing parameters in and out of subprograms allows variables to be used within the subprograms. Limits the use of global variables.

5
Q

What happens to the parameter activity when passed in and out the subprogram.

A

The original variable is passed into the procedure so that any changes are made to the original and carried over for use elsewhere in the program.