Programming Flashcards

1
Q

IDE

A

Integrated development environment
Provide a large range of tools to help develop programs eg text editor, autocomplete, automatic line numbering, syntax checking, runtime environment, debugging

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

Text editor

A

The window in an IDE that allows you to write code. Program code is plain text which is then translated to machine code by an interpreter or compiler.

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

Syntax checking

A

A feature built into most IDEs to spot potential syntax errors as soon as you make them.
Without this you would have to debug after running the program.

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

Runtime environment

A

When code has been compiled, the IDE will allow for some form of interpretation so that there can be some development without having to compile the whole code again.

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

Debugging tools

A

Break point - adds a pause to the program to stop the flow of execution.

Memory inspector - shows the contents of memory so you can see how it’s being used by the program. Can help to identify a memory leak.

Threading - multiple sequences of code being executed concurrently. Can be difficult to spot errors so some IDEs have a thread inspector.

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

Function

A

Executes a set of instructions and returns a value

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

Procedure

A

Execute a set of instructions. No value is returned.

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

Problem recognition

A

Identify the nature and parameters
Analyse the current situation
Specify requirements
Identify if it can be classified as a certain type of problem

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

Passing by value

A

If changed in subroutine, original variable is unchanged.
Parameter has local scope.
Data is held in a separate memory location and is only available in the subroutine.

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

Passing by reference

A

Creates a pointer that contains the memory address of the original variable.
Any change to the parameter affects the original variable.

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

Features that make a problem solvable by computational methods

A

Clearly defined
Computable - what type of calculations
Examine data requirements
Determine if decomposition or abstraction can be used

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

Backtracking

A

Often uses recursion.
Can be used with graphs where the algorithm must check a number of different solutions.

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

Heuristics

A

Approaches to problems that don’t necessarily provide the optimal solution but will always provide a good solution in a reasonable time frame.

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

Performance modelling

A

Evaluating if a system or program works as expected before it is released, and using g this knowledge to make it more effective.

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