March Assesment Flashcards

You may prefer our related Brainscape-certified 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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why are subprograms used?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly