Areas of improvement Flashcards

(28 cards)

1
Q

what is immediate addressing

A
  • when the value in the address part of the instruction is actually the value to be used
  • so the memory does not need to be searched to find the required value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

direct addressing

A
  • where the value in the address part of the instruction is a reference to the address in memory where the required value is located
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

indirect addressing

A
  • where the value in the address part of the instruction is a reference to a memory location that contains the address in memory where the required value is located
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is indexed addressing

A
  • it is a method of memory access where the effective address of data is determined by adding a fixed offset to a base address, often a register’s contents
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is an object

A

instantiated from the class

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

what is a register

A

temporary storage inside the CPU which is used for a single purpose

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

what does an AND mask do to an operation

A
  • in all instances where we set the value of the mask to 0, we are ignoring the mask and outputting the original sequence
  • in all instances where we set the value of the mask to 1, we are effectively copying the original binary sequence
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what does an OR mask do to the operation

A
  • we use 1s where we want to set the values
  • we use 0s where we want to leave them alone
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what does the XOR mask do to an operation

A
  • the bits are toggled where the mask is applied (set to 1)
  • where the mask has not been applied (set to 0), the bits have remained the same
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what are the 2 main advantages of memory management to the user

A
  • allows multitasking
  • it doesn’t allow programs to access memory reserved for other programs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is encapsulation

A

This protects attributes of an object by making them private so they cannot be accessed or altered accidentally other objects

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

what are some main features of IDEs?

A
  • stepping through code, which is running one line of code at a time to see where the error is
  • syntax/error highlighting, which distinguishes the syntax errors in the program code
  • setting breakpoints to debug individual sections of code at a time
  • variable watch window, which checks that the variables are being updated correctly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what is a circular queue

A
  • a static array that has a fixed capacity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what is a class

A

a function that creates objects

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

what is overriding

A

the ability to provide a new implementation for a method or function that is already defined in a parent class or base class

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

main advantages of linked list data structures

A
  • dynamic data structure : it is able to grow and shrink at runtime by allocating and de-allocating memory
  • no memory waste : the size of the linked list increases/decreases at run time, there is no need to pre-allocate memory
  • implementation : stacks and queues are more easily implemented with linked lists
17
Q

main disadvantages of linked lists

A
  • more memory is required in the linked list compared to the array
  • it is more time consuming to traverse a linked list
  • it is not suitable for smaller data sets
18
Q

what is the waterfall development methodology

A
  • each phase in the cycle has a start and end point with identifiable deliverables
  • a slight change allows you to move forwards or backwards in each of its stages
19
Q

what is rapid application development (RAD)

A
  • it is a methodology that involves producing successive prototypes of software until a final version is produced and approved
  • prototypes with reduced functionality which are tested to improve the original software
20
Q

what is extreme programming

A
  • it aims to produce high quality code and promote developers quality of life
  • it is considered an agile framework because it encourages smaller iterative software releases
21
Q

what is a service routine

A

a specific piece of code designed to interrupt a signal

22
Q

what is an abstract data type?

A

it serves as a description of a data object and its associated operations

23
Q

what happens during lexical analysis

A
  • comments and white space are removed
  • variable names are added to the symbol table
  • words are reserved and tokenised
24
Q

what is a tuple

A

an ordered set of values of any type

25
address bus
- the bus that transmits the memory address where data needs to be read from or written to - it tells the memory where to find the data
26
data bus
- a bi-directional bus that carries the actual data between the CPU and other components, allowing them to transfer in both directions
27
control bus
- the bus that carries control signals that coordinate the actions of the computer system
28
what are the 3 main features of modular programming
- uses top down analysis for problem solving, breaking down complex problems into sub-problems - tasks and subtasks are written as separate modules using local variables - structured code is used for each module, selection, iteration and sequence are the only three structures used