SLR 08 - Introduction to Programming Flashcards

1
Q

What are the branch Mnemonics?

A

BRA - Branch Always
BRZ - Branch if Zero
BRP - Branch if Positive

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

What are the categories of Program Flow?

A

Sequence
Iterarion
Selection

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

What is sequence?

A

When a program is executing a program line by line

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

What is iteration?

A

A program executing a set of lines in a loop repeatedly

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

What is selection?

A

Branch statements that complete sections of code based on if conditions are met

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

What is nesting?

A

The process of placing one type of statement inside another

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

What is variables?

A

A pointer to a memory address given a user friendly name

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

What are constants?

A

A variable that holds a fixed value

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

What is the process of assignment?

A

A value being assigned to a variable or constant

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

What is an output?

A

Turning computer data into a user-friendly manner

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

What is a subroutine?

A

A block of code given a unique indentifiable name

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

Why are subroutines used?

A

To break down a larger problem into a series of smaller manageable ones

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

What are the types of subroutines and what is different about them?

A

Procedures - Carries out a set task
Functions - Carries out a set task and returns a value

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

What are the advantages of subroutines?

A

Programs become easier to write
Easier to debug
Gives reusable components
Functions can be grouped in a library for reuse across programs

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

What performs operations in a computer?

A

The ALU

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

What is the function of Modulus?

A

The remainder of a division

17
Q

What is the function of DIV?

A

Division with a natural answer

18
Q

What is the command for Modulus?

A

%

19
Q

What is command for DIV?

A

//

20
Q

What types of commands fall undet file handling?

A

Opening, Closing, Reading and writing to and from files