SLR 7/ Types of Programming Language Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Define Pre-defined functions

A

Functions pre-written within a programming language.

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

Define Local variables

A

A variable that can only be accessed within the specific procedure or function it was declared in.​

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

Define Global variables

A

A variable that can be accessed throughout the entire program and used by all modules.​

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

Define Parameter passing

A

Allows variable values to be passed into procedures and functions for use in those blocks of code.

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

Define Modularity

A

The concept of separating the functionality of a program into individual, interchangeable blocks, each designed to carry out a single task. These all combine to make a complete program and make the program more readable.​

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

Define Procedures

A

Programs follow procedure calls systematically. The program does exactly what it is told to do in the order set by the programmer. Modularity is achieved by splitting the program into procedures.​

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

Define Library

A

A collection of pre-built functions and procedures

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

Define ADD

A

Add: Add the value stored to the value currently in the accumulator

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

Define SUB

A

Subtract: Subtract the value stored to the value currently in the accumulator

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

Define STA

A

Store: Store the contents of the accumulator

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

Define LDA

A

Load: Load the value and enter it in the accumulator

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

Define BRA

A

Branch: Set the program counter to the given address (value xx). That is, value xx will be the next instruction executed.

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

Define BRZ

A

Branch If Zero: If the accumulator (calculator) contains the value 000, set the program counter to the value xx. Otherwise, do nothing

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

Define BRP

A

Branch If Positive: If the accumulator (calculator) is 0 or positive, set the program counter to the value xx. Otherwise, do nothing

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

Define INP

A

Input: fetch the value from the user, and put it in the accumulator

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

Define OUT

A

Output: Copy the value from the accumulator

17
Q

Define HLT

A

Halt: Stop working/End the program

18
Q

Define DAT

A

Data: This is an assembler instruction which simply loads the value. For example, DAT 984 will store the value 984 into a mailbox at the address of the DAT instruction.