
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































Positive Numbers in Binary - 128 64 32 16 8 4 2 1 0 1 1 0 0 0 1 1 This shows the number 99 in binary. A one is 'on' or 'used' and a 0 is 'off' or 'not used' The numbers that are on in this example are: 64 + 32 + 2 + 1 = 99 Real Numbers - Real numbers allow the computer to store decimal values. The Mantissa dictates the precision of numbers and the Exponent dictates the range Mantissa - The number of bits allocated to the Mantissa dictates the precision of a real number. More bits to the Mantissa leads to greater precision. Less bit leads to less precision. Exponent - The number of bits allocated to the Exponent dictates the range of a real number. More bits to the Exponent leads to greater range. Less bit leads to less range. (Extended) ASCII - Extended ASCII is one way to represent a character set. Extended ASCII code uses 8 bits to represent a character meaning that you can represent up to 256 different characters.
Printable Characters(ASCII) - Printable characters are those that you will be able to see on screen. They have an 8 bit ASCII code. Examples are: A, s, !, @ Control Characters (ASCII) - Control Characters are those that do not appear on screen but that carry out a task. They have an 8 bit ASCII code. Examples are: Shift, Delete, Backspace, F2, Ctrl Bit Mapped Graphics - Bit Mapped graphics are made up of a 2D array of pixels. Every single pixel is saved. JPEG, PNG and GIF are bit mapped graphic formats. Bit Depth(Colour Depth for Graphics) - Every pixel is stored as a binary code. Bit depth is the number of bits used to store each pixel. A bit depth of 8 bits allows the pixel to be one of 256 colours, a bit depth of 16 bits allows for 65,536 colours and a bit depth of 24bits allows for 16, 777, 216 colours. The higher the bit depth the larger the file size but the more colour available. Resolution - Resolution is the total number of pixels in an image. E.g. A resolution of 800 x 600 would create 480,000 pixels
Vector - Ellipse - Ellipse objects are like circles, but you can alter the radius of the X co-ordinate so that it is a different value to that of the Y co-ordinate. This allows for the creation of oval shapes rather than circles. Attributes: cx and cy define the centre, rx and ry the radius. Fill and line. Vector - Line - The line object allows for the creation of lines. More complex lines with different points can be created using an object called a polyline. Attributes: x1 and y1 define the start of the line, x2 and y2 define the end of the line. Line is used for the colour of the line. Fill IS NOT NEEDED for lines. Vector - Polygon - The polygon object can be any shape that has at least three sides and allows for a wide variety of common shapes to be stored in vector form. At every angle, x and y coordinates are needed, so a shape with five angles would have: Fill, line, x1, y1, x2, y2, x3, y3, x4, y4, x5, y ALU - Part of the processor/CPU that handles all arithmetic, logic and calculations. Stands for Arithmetic and Logic Unit. Floating point (mantissa and exponent) calculations and decisions involving AND, OR, NOT are made on the ALU.
Registers - Temporary Storage Location on the processor. Data, instructions and addresses can be held in registers. Have the fastest access time as they are on the processor unlike RAM or backing storage. Control Unit - Part of the processor/cpu. Different lines have different roles. The main line is the clock line, which dictates the speed of fetching data from RAM. Clock, Read, Write, Reset and Interrupt are the different lines. Data Bus - A bi-directional bus (two way) that can carry data to and from RAM and the processor/CPU. Goes to the address that is on the address bus and takes the data back to the processor OR takes the data from the processor to the address on the address bus. Address Bus - A uni-directional (one way) bus. Holds the address in RAM that the processor wants to access. Memory Locations (RAM Addresses) - Each location in RAM has its own binary address. The address bus holds the address of the location being read from or written to.
Activate efficiency mode Do not use a screen saver Use energy efficient labelled monitors/screens Power Down Settings - Operating systems include power down settings to let users: Power down the monitor, laptop or desktop after a period of inactivity Control individual components e.g. turn hard disk off until needed, set processor state (high or low), alter wifi power settings Standby/Sleep Mode - RAM is still powered, and data held in RAM will still be stored until the user wakes the system. Power to all other components is significantly reduced or turned off. Hibernate Mode - Contents of RAM are moved to space on the Hard Disk or other backing storage, where they are saved permanently. RAM and all components have power cut or lowered to the lowest possible level. When the user wakes the system, the contents move from the hard disk/ backing storage back to RAM Firewalls - Data is split up and sent in packets when moving between networks. The firewall checks incoming and outgoing packets to make sure that they are
sent/received from known IP addresses. Firewalls set rules about the IP addresses and ports that can be used to send and receive packets. Encryption - Encryption is designed to prevent intercepted data from being understood. A simple key encrypts data. Data is further encrypted using the public key of the receiving profile (computer). When it arrives, the receivers private key can unlock the public key and the simple key is used to decrypt data. Only the private key that matches the public key is able to give access to the simple key. Analysis Phase - A systems analyst creates a software specification. The specification includes the purpose and functional requirements (inputs, processes, outputs) Purpose of software - The purpose of software is usually defined in a few short paragraphs, providing a written statement of what the software should do. Functional Requirements (Programs) - The functional requirements of a program are defined as inputs, processes and outputs. A list of inputs that will come from the user, a sensor or a file are included. The processes focus on tasks the program will need to perform, such as validating input, or calculating an average. The outputs are a list of what the program will output, usually on screen but possibly to a file.
223
Real - A real number is a number that includes a decimal value. The real data type is often called 'Single' when using a programming language. Real numbers are used to store positive or negative numbers that include a decimal value e.g.
-54. Boolean - The Boolean data type is used to store either true or false. Selection Constructs - < Less than > Greater than ≤ Less than or equal to ≥ Greater than or equal to = Equals ≠ Does not equal Assignment - Assigning a value to a variable e.g. In reference language SET score TO 20
IF score < 150 THEN SEND "Mid level score" TO DISPLAY ELSE SEND "High score" TO DISPLAY END IF END IF Logical Operators (AND, OR, NOT) - Logical operators can be used in IF statements and conditional loops. AND - Both conditions must be true OR - One condition must be true NOT - The opposite outcome to what would logically apply (negation) Simple Condition - A simple condition has only one condition e.g. IF firstname = "Betty" The condition is = "Betty" Complex Condition - A complex condition has two or more conditions e.g. IF firstname = "Betty" OR firstname = "Trevor"
The two conditions are = "Betty" , = "Trevor" AND / OR are used as part of complex conditions Repetition and Iteration - Repetition and iteration are technical terms for loops. Repetition repeats a task set number of times. Iteration is the same but usually involves checking over the contents of an array until you achieve what you want to achieve e.g. find a number or get to the end of the array list. Fixed Loop - A fixed loop will repeat all code held within the loop a set number of times only. E.g. For i = 0 to 9
Next i The above loop would repeat 10 times. Conditional Loop - A conditional loop repeats until a condition is met e.g. WHILE score <
END WHILE
This would take the value in the first name variable, calculate its length and returns it to the numberOfCharacters variable. E.g. Jane would return 4 Input Validation Algorithm - This algorithm checks that input is valid: Line1 SEND "Enter a score between 1 and 99" TO DISPLAY Line 2 RECEIVE score FROM (INTEGER) KEYBOARD Line 3 WHILE score ˂ 1 OR score ˂ 99 DO Line 4 SEND "Error, enter valid number" TO DISPLAY Line 5 RECEIVE score FROM (INTEGER) KEYBOARD Line 6 END WHILE Running Total Algorithm - This algorithm keeps a running total: Line 1 DECLARE total INITIALLY 0 Line 2 FOR loop FROM 0 TO 4 DO Line 3 RECEIVE number FROM (INTEGER) KEYBOARD Line 4 SET total TO total + number Line 5 END FOR It asks for and keeps a running total of 5 values.
Traverse a 1D Array Alogrithm - To traverse an array means to use a loop to go through the array one item at a time. DECLARE allGrades INITIALLY [A, B, B, D, F] FOR EACH grade FROM allGrades DO IF grade = 'A'THEN SET a_total TO a_total + END IF END FOR EACH In the above example, each item in the allGrades array is checked one after another, with a running total also calculated. Test Table - When testing a program, you should create a test table. A test table will contain at least two sets of normal, exceptional and extreme data. For each test, you will state the expected result and the actual result. Normal Test Data - Normal test data is data that should be accepted. E.g. If asking for a number between 1 and 99, 77 is an example of normal data Extreme Test Data - Extreme test data is data at either limit of a range. E.g. If asking for a number between 1 and 99 inclusive, 1 and 99 are the extremes.
Using AND when you should have used OR Using > when you should have used < Program runs but the logic is wrong, therefore the results are unexpected/incorrect. Documentation - Various documents are created during software development:
Efficient Code (Using Fixed Loops) - Using fixed loops is more efficient than repeating similar code over and over again. Use of 'i' or 'counter' tracks the position in the loop. Always used fixed loops if you are repeating the same task such as asking for and storing a list of names. Efficient Code (Using Nested IFs) - It is better to use nested IF statements (see card 62) rather than a number of individual IF statements. Nested IFs will stop running when the correct selection is applied. This is more efficient than using separate IFs with no nesting. Efficient Code (Using Complex Conditions) - Use complex conditions that make use of AND, OR, NOT as part of an IF statement rather than creating two separate IF statements that use simple conditions. Robustness - A program is robust if it can handle unexpected input without crashing. This means that it will make use of input validation algorithms that return messages if incorrect input is entered. Readability - Code is readable if: