Programming techniques

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

1 / 15

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

16 Terms

1
New cards
2
New cards
3
New cards
4
New cards
5

local variable

has limited scope and can only be accessed by the block of code in which they were defined. They are useful as they ensure the subroutines are self-contained, so that the variables are not affected by the code outside of the subroutine

New cards
6

global variable

can be accessed across the whole program. Useful for when needing to access a certain variable by multiple parts of the progmra, but may be unintentionally overwritten and requires more memory

New cards
7

modular programming

a programming technique used to split large, complex programs into smaller, self-contained modules

New cards
8

advantages of modular programming

can divide tasks between a team, simplifies the process of testing and maintenance, each component can be dealt with individually, each modules can be reused

New cards
9

top-down approach/stepwise refinement

problem is continually broken down into sub-problems until each task is represented as an individual, self-contained code

New cards
10

Procedures

can return multiple values

New cards
11

function

only returns a value

New cards
12

stepping

executing a line of code at a time to monitor the effect

New cards
13

variable watch

observe how the contents of a variable change through the execution of a program

New cards
14

breakpoint

set a point in the program where it will stop executing

New cards
15

source code editor

autocompletion, indentation, syntax highlighting, automatic bracket completion

New cards
16

debugging tools

run-time detection of errors detects where in the code likely caused the error

New cards

Explore top notes

note Note
studied byStudied by 17 people
... ago
5.0(1)
note Note
studied byStudied by 7 people
... ago
5.0(1)
note Note
studied byStudied by 182 people
... ago
5.0(2)
note Note
studied byStudied by 12 people
... ago
5.0(1)
note Note
studied byStudied by 24 people
... ago
4.0(2)
note Note
studied byStudied by 5 people
... ago
5.0(2)
note Note
studied byStudied by 1 person
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (138)
studied byStudied by 68 people
... ago
5.0(1)
flashcards Flashcard (88)
studied byStudied by 17 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (67)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (89)
studied byStudied by 79 people
... ago
5.0(1)
flashcards Flashcard (27)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (103)
studied byStudied by 24 people
... ago
5.0(1)
flashcards Flashcard (28)
studied byStudied by 51 people
... ago
4.0(1)
robot