Programming techniques

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 11

encourage image

There's no tags or description

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

12 Terms

1

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
2

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
3

modular programming

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

New cards
4

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
5

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
6

Procedures

can return multiple values

New cards
7

function

only returns a value

New cards
8

stepping

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

New cards
9

variable watch

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

New cards
10

breakpoint

set a point in the program where it will stop executing

New cards
11

source code editor

autocompletion, indentation, syntax highlighting, automatic bracket completion

New cards
12

debugging tools

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

New cards
robot