Flashcards
computer IS october 1
Cards in this deck (10)
- 1What are the 2 main types of sub program?procedures and functions
- 2Describe the difference between a function and a procedure?function is a set of instructions which input and performs certain tasks. but Procedure does not return a value.
- 3What is the difference between a parameter and an argument?parameters are the variables that we can define in the function declaration. and arguments are the variables given to the function for execution
- 4Sub programs are good for decomposition. What does this mean?it means breaking code down into chunks
making it easer - 5Give 2 advantages of using sub programsone advantage is break a program down into manageable pieces
and another is once it is made you can reuse it some ware else easily - 6what is the function of the control unit?the control unit that manages the movement of data
- 7what is the function of MAR?it is to hold the location of the next data to be fetched
- 8what is the function of MDR?the MDR temporarily stores instructions
- 9what is MPR?MPR temporarily stores data that can be used as soon as the program needs it
- 10what does a program counter do?a program couter holds the address of the next instruction
Information
- Description
- Flashcards on computer IS october 1, created by Oscar Cullen on 30/09/2021.
- Created by
- Oscar Cullen
- Views
- 0
- Rating