2.2 Programming V2

Descripción

GCSE (2.2 Programming) Computing Mapa Mental sobre 2.2 Programming V2, creado por 2402 2003 el 04/02/2019.
2402 2003
Mapa Mental por 2402 2003, actualizado hace más de 1 año
2402 2003
Creado por 2402 2003 hace casi 6 años
88
0

Resumen del Recurso

2.2 Programming V2
  1. Subroutines
    1. Procedures
      1. Are defined and called by their names
        1. They do not return their values
        2. Functions
          1. Are called by assigning their return value to something
            1. They always return a single value
            2. Defines a large amount of coding into one value
              1. Useful to reuse code faster
                1. Good so work can be split between programmers
                  1. Variables
                    1. Values change throughout the program
                    2. Constants
                      1. Stays fixed throughout the program
                      2. Used within subroutines
                        1. Both are used to store data whilst the program is running
                  2. SQL (Standard Query Language)
                    1. Programming language used to work with databases
                      1. Can be run from a special window in a database package
                        1. SQL Keywords
                          1. SELECT
                            1. The variable you want to find
                            2. FROM
                              1. From which database
                                1. e.g. To find a SongTitle more than 3 mins long
                                  1. SELECT SongTitle FROM Songs WHERE Length > 3
                              2. WHERE
                                1. Different columns
                            3. Iteration
                              1. The repetition of a process
                                1. For Counter (Counter-controlled)
                                  1. Loops for a specific number of times, depending on the counter number
                                  2. While Loop (Condition-controlled)
                                    1. Better for user interfaces
                                      1. Loops until the condition is met/changes
                                    2. Operators
                                      1. Arithmetic Operators
                                        1. / - Division
                                          1. * - Multiplication
                                            1. + - Addition
                                              1. - - Subtraction
                                                1. MOD - Modulus (Remainder) e.g.12 MOD 5 = 2
                                                  1. DIV - Ouotient e.g. 17 DIV 5 = 3
                                                    1. ^ - Exponentiation (To the power of)
                                                    2. Represents the operations that are performed on the data
                                                      1. String Operators (String Manipulation)
                                                        1. .length - Number of characters in a string (including spaces)
                                                          1. .lower - lowercase
                                                            1. .upper - UPPERCASE
                                                              1. .substring (x,y) - Part of a string
                                                              2. Comparison Operators
                                                                1. != - Not equal to
                                                                  1. == - Equal to
                                                                    1. < - Less than
                                                                      1. > - Greater than
                                                                        1. <= - Less than or equal to
                                                                          1. >= - Greater than or equal to
                                                                          2. Logical Operators (Only used in Booleans)
                                                                            1. AND - Two conditions must be met for the statement to be true
                                                                              1. OR - At least one condition must be met for the statement to be true
                                                                                1. NOT - Inverts the results e.g. NOT(A and B) will only be false when both A and B are true`
                                                                              2. Arrays
                                                                                1. Begins with 0
                                                                                  1. Usually have fixed sizes and occupy a fixed (static) amount of memory
                                                                                    1. A table of organised data
                                                                                      1. Advantages
                                                                                        1. Non-sequential nature - can jump between non-neighbouring elements instantly without having to browse through the whole array
                                                                                          1. Good for ease of iterating through an array - allows us to manipulate multiple times of data with very few lines of code,replacing may separate variables
                                                                                          2. 2D Arrays
                                                                                            1. Has rows and columns
                                                                                              1. Each individual rows/columns/index hold different series of data
                                                                                              2. 1D Array
                                                                                                1. Only holds one series of data (like a pie chart)
                                                                                              3. Selection
                                                                                                1. Allows a computer to "think" - make decisions
                                                                                                  1. Changes the flow of a program, depending on a set of conditions, it is used for validation, calculation and making sense of a user's choices
                                                                                                    1. e.g. IF, ELIF, ELSE, SELECT CASE statements
                                                                                                    2. Nested Selection
                                                                                                      1. Sometimes, we can only evaluate a condition if some pre-condition is met. We would need two selection statements, one inside the other
                                                                                                        1. The "outside" selection is the pre-condition, while the "inside" selection is the conditon
                                                                                                          1. e.g. IF....... IF
                                                                                                            1. IF Statement within an IF Statement
                                                                                                        2. Sequencing
                                                                                                          1. Allows a programmer to solve complex tasks through a number of simple instructions (sequence/algorithm)
                                                                                                            1. Advantages
                                                                                                              1. Each line follows the next
                                                                                                                1. Create simple programs very quickly
                                                                                                                  1. Easy to follow for a small program
                                                                                                                    1. Fundamental priniciple of a program
                                                                                                                      1. Starts at the top, finishes at the bottom
                                                                                                                      2. Disdavantages
                                                                                                                        1. Not at all efficient
                                                                                                                          1. Extremely hard to maintain
                                                                                                                            1. Becomes very difficult to follow with large problems
                                                                                                                          Mostrar resumen completo Ocultar resumen completo

                                                                                                                          Similar

                                                                                                                          Types and Components of Computer Systems
                                                                                                                          Jess Peason
                                                                                                                          Input Devices
                                                                                                                          Jess Peason
                                                                                                                          Output Devices
                                                                                                                          Jess Peason
                                                                                                                          Computing
                                                                                                                          Kwame Oteng-Adusei
                                                                                                                          Pack of playing cards answer
                                                                                                                          Karl Taylor
                                                                                                                          Code Challenge Flow Chart
                                                                                                                          Charlotte Hilton
                                                                                                                          Computing Hardware - CPU and Memory
                                                                                                                          ollietablet123
                                                                                                                          Computer Systems
                                                                                                                          lisawinkler10
                                                                                                                          Computer science quiz
                                                                                                                          Ryan Barton
                                                                                                                          Input, output and storage devices
                                                                                                                          Mr A Esch
                                                                                                                          GCSE Computing - 4 - Representation of data in computer systems
                                                                                                                          lilymate