Slr 23 Flashcards

1
Q

Sequence

A

Executing instructions one after another

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

Selection

A

A construct that allows a program to change direction depending on the outcome of a condition

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

Selection example

A

If statement

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

Iteration

A

Allows user to repeat sections of code

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

Iteration example

A

For loop (count controlled- number of iterations known before)
While loop (condition controlled- number of iterations not known because the variable used to determine when it ends is changing within the iteration itself)

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

Nest programming constructs

A

Iteration or selection (or both)

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

Local variable accessibility

A

Single subroutine only

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

Local variable created

A

Declared inside a subroutine

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

Local variable destroyed

A

When the subroutine exits

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

Global variable accessibility

A

Entire program

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

Global variable created

A

Declared outside a subroutine. Typically at the start of a program.

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

Global variable destroyed

A

When the program ends

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

Modularity

A

Concept of breaking down a large program or problem into smaller chunks

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

Modularity goal

A

To design a program in a way that each module carries out a single, specific task

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

Modules known as

A

Subroutines, procedures, functions, methods

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

Procedure

A

Block of code that takes in zero, one or more parameters and performs a set task

17
Q

Function

A

Block of code that takes in zero, one or more parameters; performs a set task; and returns a value

18
Q

Return value

A

Does not need to be assigned to a variable as long as it returns something valid

19
Q

First line means

A

The first line of a subroutine specifies the interface for that subroutine

20
Q

The interface outlines

A

The name of the subroutine
The list of parameters it requires when it is called
The data type for those parameters
The order of those parameters
- if the subroutine interface is for a function, it also typically includes the data type of its return value

21
Q

Two methods to pass data into subroutine

A

Passing by value
Passing by reference

22
Q

IDE definition

A

An IDE is a program that provides a set of tools and related functionality designed to maximise a programmers productivity (e.g. IDLE)

23
Q

IDE common features

A

Code editors
Error diagnostics
Run time environments
Translators
Auto documentation
Syntax highlighting
Autocompletion

24
Q

Define code editors

A

A text area for programmers to enter code directly into the IDE, often supports additional features like syntax highlighting, autocomplete and automatic indentation

25
Q

Define error diagnostics

A

Reports errors (mainly syntax) in the code and where they can be found; often suggests possible fixws

26
Q

Define run time environments

A

Software that supports the execution and running of programs
Allows programmers to easily run code during development

27
Q

Define translators

A

A program that converts high level code into executable machine code

28
Q

Define auto documentation

A

Tracks variable declared by the programmer, modules and other special programmer comments with a view to producing documentation that aids in program maintenance, debugging and support