Cp1401 weeks 3-4

Descripción

flip cards weeks 3-4
d_cull91
Fichas por d_cull91, actualizado hace más de 1 año
d_cull91
Creado por d_cull91 hace más de 8 años
15
0

Resumen del Recurso

Pregunta Respuesta
What is a function? A function is a construct you can use to combine local variables and statements to perform a single task Self-contained segment of code that accomplishes a specific task. Can be called multiple times. Reduces repetitive lines of code
What is the function scope? Each function only knows about its own data. (local variables)
3 Categories of functions Input, Output, processing
What is function recursion? indirect recursion? recursion - a function should not call itself indirect recursion - function calling back to a function that called it.
What is a decision? In algorithm design (and programming) all decision are done with comparisons All the standard mathematical comparisons are available to us: Equal (=) Less than (<) Greater than (>)
Boolean? “Boolean” value (variable type) Is either “True” or “False” (“Yes” or “No”, 0 or 1) ALL decisions MUST be “boolean” The result of a decision MUST be “True” or “False” “Yes” or “No”
3 types of decisions Single path decision Two possible paths Many paths
What is used to plan our decisions? Condition/Action tables
What are iterations the repetition of a process
3 parts of a loop Loop variable - what value are we checking loop body - what happens in the loop exit condition - when do we stop
What is a sentinel value? is a special value in the context of an algorithm which uses its presence as a condition of termination.
Boolean Algebra Allows us to combine boolean values to produce new boolean values
Boolean operators AND, OR, NOT
What is an array? An “array’ is a whole list (or collection) of data Accessed by a single variable name
Mostrar resumen completo Ocultar resumen completo

Similar

AQA GCSE Product Design Questions
Bella Statham
ART NOUVEAU
Britknee52
How Sewing Machines Work
faithkateridarli
Costume History Slidshow
Jemi Armstrong
Product Design
adamwood451
A LEVEL PRODUCT DESIGN - MODERN MANUFACTURING SYSTEMS
charlotte-clayto
GCSE Textiles - Design
Nicola Lees
GCSE Product Design Plastics (AQA Specification)
T Andrews
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Historical Development of Computer Languages
Shannon Anderson-Rush
Useful String Methods
Shannon Anderson-Rush