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.
What is called the the path that goes from the start point of the program to the end point?
The path of execution.
What is called the main series of instructions of a program?
The Main Program.
What Exit instruction of a program does?
To tell the computer that the program in no longer running.
What is Data Structure?
It’s how the data is organized in terms of implementation.
What is Linear Data Structure?
Data structure where the data is organized one after the other. A list.
What is nonlinear Data Structure?
Data structure where the data don’t necessarily follow one after the other.
Ex: family tree.
What is Abstract data?
Data where we are only concerned about what it is supposed to do, not about how it does it.
Ex: the brakes of a car.
What is an operation?
- Something computer is designed to do.
- In math, process which a number is changed or handled by addition, muiltiplication, division etc.
What is Machine instruction?
Bult-in actions that the CPU can perform.
What is Opcode?
- Short for Operation code.
- Is a part of machine isntruction.
- A set of binary numbers that specifies the exact operation to be performed.
Ex: In a machin instruction like: 0111011010, the first three digits “011” would be the opcode. This could mean “Add a number to an earlier number”. The other part could be the number to be add to the earlier number.