Module 1 Flashcards
What is a program?
A set of instructions that makes a computer accomplish specific tasks.
What is Assign?
To give value to a variable.
What is a Pointer?
A variable whose value is the address of another variable.
Why a pointer is called a pointer?
Because it “points to” another value in memory.
What is a constant?
A value in memory that will not change over time.
What is a call?
The transfer of control from a program to a subprogram.
What is a subprogram?
A small program that is often used repeatedly to perform speciif tasks.
What are the five key elements of a computer program?
- Entrance
- Control/Branching.
- Variables.
- Subprograms.
- Exit.
What is the entrance in a program?
The clearly specified first instruction in a computer program.
What is control in a computer language?
To assess a condition.
What is branching in a computer language?
A possible course of action arising from a decision.
What is Control/Branching.
To assess a condition to decide between two of more courses of action.
Which is the control and which is the branching in a IF THEN instruction?
IF is the control and THEN is the branching.
What is a loop?
A control statement that execute its nested instruction until certain condition is met.
What is a Counter in a loop?
A variable that keeps track of how many times the loop has been executed.