Paper 2 advanced information flashcards

1
Q

2.1.1

What is abstraction?

A

the representation of essential features without including unnecessary details

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

2.1.1

What is the need for abstraction?

A

Makes a problem easier so solve through the removal of unnecessary parts

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

2.1.2

What is caching?

A

Caching is the temporary storage of data and instructions

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

2.1.2

What are the advantages of caching?

A

allows for faster processing if cached, can cache consistently used

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

2.1.2

What are the disadvantages of caching?

A

slower performance if not cached

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

2.1.2

What are the advantages of reusable program components

A

they can be carried over into other programs
saves time
can be added to a library and imported

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

2.2.1

What is recursion?

A

Recursion is a method of solving a computational problem where the solution depends on solutions to smaller instances of the same problem

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

2.2.1

How can recursion be used

A

Recursion is used mainly for problems that can be broken down easily, such as searching through a file system

(something that has sections or branches)

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

2.2.1

How can recursion be compared to an iterative approach?

A

Recursion is when a function calls itself within its code, thus repeatedly executing the instructions present inside it

Iteration is when a loop repeatedly executes the set of instructions like “for” loops and “while” loops.

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

2.2.1

What is a global variable?

A

A global variable can be used across the entire program

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

2.2.1

What is a local variable

A

A local variable is one that can only be used within the function it is defined in

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

2.2.1

What does modularity imply?

A

Splitting a larger program into smaller, more manageable parts

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

2.2.1

What are functions?

A

a small section of code within a larger piece of code which has a specific task within it

Functions produce information

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

2.2.1

What are procedures?

A

a small section of code within a larger piece of code which has a specific task within it

Procedures perform a task

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

2.2.1

What is parameter passing by value?

A

When a parameter is pass-by-value, the caller and the callee method operate on two different variables which are copies of each other

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

2.2.1

What is parameter passing by reference?

A

to pass the reference of an argument in the calling function to the corresponding formal parameter of the called function so that a copy of the address of the actual parameter is made in memory, i.e. the caller and the callee use the same variable for the parameter.

17
Q

2.2.1

What are the uses of an IDE to develop?

A
Allows you to:
Edit 
enter
compile/interpret 
run your programs

Developers use IDEs as the utilities don’t need to be manually configured or applied

18
Q

2.2.1

What are the uses of an IDE to debug a program

A
An IDE allows you to:
view memory
see variables
run the program to breakpoints
execute next line of code 
change the value of variables
19
Q

2.2.1

What is the use of object oriented techniques?

A

in object oriented techniques, the focus is on capturing the structure and behavior of information systems into smaller modules

20
Q

2.2.2

What is performance modelling?

A

performance modelling is a process of evaluating if a system or program works as expected before it is released

Using this information, making it more effective

21
Q

2.2.2

What is visualization?

A

visualization is making an image/ portrayal of a problem that allows it to be approached easier and see where it can be broken up

22
Q

2.3.1

What is depth first traversal?

A

go as far as you can down a single path before backtracking

23
Q

2.3.1

What is breadth first traversal?

A

go to each neighbour in order

( if one is already a neighbour of one of the previous