Mapa mental
2.2 Programming V2
Conteúdo do mapa
2.2 Programming V2
Subroutines
- Procedures
- Are called by their names
- They do not return their values
- Functions
- Are called by assigning their return value to something
- They always return a single value
- Defines a large amount of coding into one value
- Useful to reuse code faster
- Good so work can be split between programmers
- Procedures
SQL (Standard Query Language)
- Programming language used to work with databases
- Can be run from a special window in a database package
- SQL Keywords
- SELECT
- The variable you want to find
- FROM
- From which database
- WHERE
- Different columns
- e.g. To find a SongTitle more than 3 mins long
- SELECT SongTitle FROM Songs WHERE Length > 3
- SELECT
Iteration
- The repetition of a process
- For Counter (Counter-controlled)
- Loops for a specific number of times, depending on the counter number
- While Loop (Condition-controlled)
- Better for user interfaces
- Loops until the condition is met/changes
Operators
- Arithmetic Operators
- / - Division
- * - Multiplication
- + - Addition
- - - Subtraction
- MOD - Modulus (Remainder) e.g.12 MOD 5 = 2
- DIV - Ouotient e.g. 17 DIV 5 = 3
- ^ - Exponentiation (To the power of)
- Represents the operations that are performed on the data
- Logical Operators (Only used in Booleans)
- AND - Two conditions must be met for the statement to be true
- OR - At least one condition must be met for the statement to be true
- Logical Operators (Only used in Booleans)
- String Operators
- .length - Number of characters in a string (including spaces)
- .lower - lowercase
- .upper - UPPERCASE
- .substring (x,y) - Part of a string
- Comparison Operators
- != - Not equal to
- == - Equal to
- < - Less than
- > - Greater than
- <= - Less than or equal to
- >= - Greater than or equal to
- Arithmetic Operators
data types
- integer
- whole number
- real
- decimal places
- boolean
- true or false
- string
- words
- integer
arrays
- a table
- 2D array
- rows
- columns
- holds data
Informações
- Descrição
- GCSE Computing Mapa Mental sobre 2.2 Programming V2, criado por joseph fellows em 04-02-2019.
- Criado por
- joseph fellows
- Visualizações
- 1
- Histórico
-
- Criado por 2402 2003 · 4 fev 2019
- Copiado por joseph fellows · 4 fev 2019
- Avaliação