Module 1 Flashcards

1
Q

What is a program?

A

A set of instructions that makes a computer accomplish specific tasks.

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

What is Assign?

A

To give value to a variable.

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

What is a Pointer?

A

A variable whose value is the address of another variable.

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

Why a pointer is called a pointer?

A

Because it “points to” another value in memory.

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

What is a constant?

A

A value in memory that will not change over time.

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

What is a call?

A

The transfer of control from a program to a subprogram.

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

What is a subprogram?

A

A small program that is often used repeatedly to perform speciif tasks.

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

What are the five key elements of a computer program?

A
  1. Entrance
  2. Control/Branching.
  3. Variables.
  4. Subprograms.
  5. Exit.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the entrance in a program?

A

The clearly specified first instruction in a computer program.

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

What is control in a computer language?

A

To assess a condition.

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

What is branching in a computer language?

A

A possible course of action arising from a decision.

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

What is Control/Branching.

A

To assess a condition to decide between two of more courses of action.

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

Which is the control and which is the branching in a IF THEN instruction?

A

IF is the control and THEN is the branching.

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

What is a loop?

A

A control statement that execute its nested instruction until certain condition is met.

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

What is a Counter in a loop?

A

A variable that keeps track of how many times the loop has been executed.

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

What is called the the path that goes from the start point of the program to the end point?

A

The path of execution.

17
Q

What is called the main series of instructions of a program?

A

The Main Program.

18
Q

What Exit instruction of a program does?

A

To tell the computer that the program in no longer running.

19
Q

What is Data Structure?

A

It’s how the data is organized in terms of implementation.

20
Q

What is Linear Data Structure?

A

Data structure where the data is organized one after the other. A list.

21
Q

What is nonlinear Data Structure?

A

Data structure where the data don’t necessarily follow one after the other.
Ex: family tree.

22
Q

What is Abstract data?

A

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.

23
Q

What is an operation?

A
  1. Something computer is designed to do.
  2. In math, process which a number is changed or handled by addition, muiltiplication, division etc.
24
Q

What is Machine instruction?

A

Bult-in actions that the CPU can perform.

25
Q

What is Opcode?

A
  1. Short for Operation code.
  2. Is a part of machine isntruction.
  3. 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.