ZNote for Theory | PDF
Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
3 views
ZNote for Theory
AQA A-Level Computer Science Theory Note
Uploaded by
Adenekan Therhophic Orlanshilay
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save ZNote for Theory For Later
Download
Save
Save ZNote for Theory For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
3 views
ZNote for Theory
AQA A-Level Computer Science Theory Note
Uploaded by
Adenekan Therhophic Orlanshilay
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save ZNote for Theory For Later
Carousel Previous
Carousel Next
Save
Save ZNote for Theory For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 36
Search
Fullscreen
AQAA LEVEL Prepared for Adenekan fer persnal Use orces er 1, Data Representation 1.1. Number Systems + Natural Numbers: base 10 numbers used for everyday counting, Postve integers for Dto= * Uses: counter n processor, identi location of data ina structure, score variables, counting N= (0,1,2,34...) + Integer Numbers: whole numbers (no fractional part) that can be posite or negative Z=(...-3,-%—1)0)1,2,3,4...) + Rational Numbers: canbe expressed fractionally, as quotients). Quotient can equal 1 (5/5=1 soll integers are rational + Denominator cannot be 0 Q = (1/3,1/2,3/4...) + rational Numbers values after decimal place do not repeat. Cannot be represented as 2 ratio between two integers. "Programmer needs to decide how many decimal places to use + Egv2orm + Real Numbers: any postve or negative number, with or withouta factional part. Fractional part canbe any length, allowing any level of precsion/accuraty + Refines possible reaorld quantities + Usesi measurements, CNC, time, robotics, data control systems + Ordinal Numbers: number used to identily postion telatve to other numbers + Cardinal Numbers: a number that defines the sizeof something + Well Ordered Set: group of related numbers with 8 defined order 1.2. Number Bases “Number base! defines how many digits are used to represent a number. + Decimal: uses 10 digi (0 + ) and increases by powers of 10 ‘Uses: humans for counting + Base 10: + Binary: uses 2 digs (0 and 1) ‘+ Uses: computers, because electronic gates can only be open or closed + Base2:# + Hexadecimal: used 16 digits (0+ F) ‘+ Why: shorthand for binary, as 2 hex digits can represent a byte. Requires less digits than binary, takes up less screen space, easier for humans to Understand than binary strings ‘Uses: HTML hex colour codes, MAC addresses, ‘memory dumps, error messages Base 16: ft. + Binary -> Decimal using binary columns, add up all values that have a1 underneath. + Decimal —- Binary using binary columns, see if value will fit under most significant colurnn, then repeat with remainder and next colurnn. Or, start with the least significant column and divide by 2 each time. If remainder is 0, then 0 is placed inthe column. + Decimal -> Hex convert to binary, split into nibbles, then tur each nibble into hex, and push values together. ‘+ Hex — Decimal take each hex value, turnit into binary, then push the nibbles of binary together. Turn binary into decimal 1.3. Units of Information + Bit: the fundamental unit of information, that is either 0 ort + Oisoff, and 1 is on inary Digit + Byte: a group of 8 bits ‘+ 2n values represented with n bits: where nis the umber of bits used, 2n is the number of possible ‘combinations ‘+ Eg. 2°=B, so with 3 bts, there are 8 combinations ‘Units: binary increments in 102, Decimal units Increment in 1000 ‘+ Inthe past, kilobyte has been used to mean kiblbyte (1024 bits) W/\W/\W/ZNOTES.ORGces er 1.4. Binary Number System Unsigned Binary ‘+ Binary that only represents positive whole numbers ‘+ Minimum value (for n bits) = 0 ‘+ Maximum value (for n bits) = 2n-1 + eg. maximum number in 8 bits = (241) = 255 igned binary: binary that represents a positive or negative whole number ‘+ Adding unsigned binary: add the two numbers together inbinary + Carrying a t: where the answer of 1+1 = 10, or 14141 1 ‘+ Multiplying unsigned binary: multiply the binary by the first digit ofthe second number. Repeat forthe next ligt, shifting the answer along by 1. Then add che resultant numbers together for the answer. ‘Two's Complement (Signed Binary) ‘+ Amethod that can be used to represent negative Integers, where the most significant bits negative. Converting to denary ‘+ An B-bittwo's complement number has -128 as the most significant bit, + Write out denary equivalents (with sufficient columns (Goubles each time) for the length ofthe binary string) + Enter binary string in eg. 10071700) + Add up values (eg. = 100) Converting from denary W/\W/\W/ZNOTES.ORG + Flipthe bits and add 1 ‘+ Write out the positive binary equivalent + eg, +102 = 01100110 pall bits ‘+ Perform binary addktion with 1 to get the answer ‘+ Computers can only add binary, soto perform the calculation 20-13 = 20 + (-13) + 20=a0010100 213211110011 + The answer can be checked by converting the final answer into denary ‘+ Inthis case there is an overflow bit. tis handled separately to the calculation + Calculate range: using bts, 256 numbers can be represented (-128 to 127) + Arbitrary number of represented + Unsigned binary: 2n- (as 0is representable) + Two's complement range “+ Minimum representable value = (-2n-1), ‘+ Maximum representable value (2n-1-1) 2n numbers can be Fractional Parts Fixed point ‘+ Representing a fractional part using a fixed decimal point. After the point, aigits become fractions ‘= Smallest representable number using 8-it fixed point is 0900.0001 = 1/16 = 0.0625, 256 combinations ‘an be produced ‘+ Negative numbers can be made by making the MSB. negative + eg (8) +4424 H+ O15 Floating pointces er ‘+ Representation of number where the decimalbinary point moves, Uses two's complement ‘+ Mantissa: represents the significant digits (actual value) + Exponent: represents the power to which a number is raised to (how many places the points to move) ‘+ Floating point to decimal: 00001100 0011 + Work out the exponent. Ifitis negative, the point in the mantissa moves to the left. f positive, move to the right. + 0011 = 43 |0}*+J0-]0-101111]0/0] lolololojelti11ojoy © Add colurnn headings to the mantissa and work out the value. Any columns after the point are fractional. 005+0.25=0.75 + Decimal to floating point: -10.5 + Write out positive fixed point representation oFlip the its and add 1 to get number into two's complement ‘© Normalise the number by moving the point so that it starts in 10 (fora positive number: 01) Itfeloltsolti1 10104 O Fillin mantissa and exponent (number of places the point moved) It fort foiss4 ojo} [1poyoy 1.5. Binary Errors W/\W/\W/ZNOTES.ORG + Rounding errors: it's not possible to represent every decimal number, because fractions are being used -the representation of some numbers may be inaccurate. + eg, 0.95 = 19/20, The binary progression of fractions. allows us to get close, but never exact. ‘+ Some numbers (0.110) can never be accurately represented. ‘+ Absolute rounding errors: the difference between the value intended to be stored, and the actual value that can be stores + Eg, 6.95 (target value) - 6.9375 (actual) = 0.0125 + Relative rounding errors: percentage difference between actual result and the expected result ‘relative error= (absolute valuey/(number intended to be stored) + Ee, 0.0125/6.95 *1 Underftow and Overftow 18% + Will use erroneous results or a program crash. Can be dealt with using flags + Underflow: when a number is too small o be represented with the number of bits alocated ‘+ Example: representing 1/32 s impossible using &-bit fixed point numbers - smallest that can be represented is 1/16 + Overflow: when a number is too bi with the number of bits allocated to be represented ‘+ Example: adding 00000001 (1) and 01171111 (127), would praduce 10000000 (128), but in two's complement, the answer would be 128 1.6. Floating Point vs. Fixed Pointces er + Range + Floating point can represent a wider range of numbers with same number of bits as fixed point + Precision + Fixed point’s absolute error does not change between numbers, so retains precision + Precision can vary wit floating point, asthe binary point does not have a fixed position + Speed of calculation + Fixed point quicker to process, asthe binary point does not need to be moved for each number Normalisation of Floating Point ‘+ Normalisation adjusts numbers onto a common scale that represents them as accurately as possible relative to the number of bits available Ensures that there is only one way to represent a number + Positive normalised: must start with 0.1 ‘+ Negative normalised: must start wi 1,7. Coding Systems Character Form of Decimal ch character has a character code, which is its representation in binary ‘+ Decimal numbers can be represented either with a character code or in pure binary ‘+ Character Code: used just to represent a number, where the actual value is nat crucial lke ina phone umber ‘+ Pure Binary: used to represent a number when ns need to be performed, and the decimal ‘number will equal the binary value ASCII and Unicode + ASCII: American Standard Code far Information Incerchange. Introduced as a standard binary coding system for characters and numbers ‘Standard: 7-bit code gives 128 permutations + Extended: #-bit code gives 256 permutations ‘+ Umitations: 256 characters not enough, no multi- lingual support, web use requires universal coding system, new programs need wider character range + Unicode: standard binary coding system that has surpassed ASCII since it allows for more permutations land hence more characters/languages. ASCII was ‘absorbed into Unicode, so all original codes remain the same ‘+ UTF-16: 16-bit code allows characters for 20+ countries, special characters and emojs ‘Vitalin the age of international communication so that data does not arive corrupted 1.8. Error Checking and Correction + Parity Bits: an adaltional bie added onto a binary string ‘to make total number of 1s/9s even or odd. Ina byte, 7 bits are sent + the adcitional parity bit ‘+ Even Parity: parity bit added to make total number of 1s an even number. Checked on receiving end + Odd Parity: party bit added to make total number of ‘1s an odd number. Checked on receiving end ‘+ Majority Voting: each bit in a binary code Is sent a set number of times, and then checking i the binary digit is the same each time. ‘+ 10 sent as [4] = 11110000 + Aninvalid transmission of 10 as [4] could be: soro001 + Checksums: isthe result ofa cryptographic hash function ran on a piece of data to return a value. If the value returned is equal to the value provided by the ‘source data, then transmission was successful + Check Digits: digit is added on the end of binary data to check itis accurate, Modulo-11 is a common way to calculate a check digit ‘Eg, 23045 is sent as 230456, so check digit is added, and then ‘modded’ until the value reaches 0. If calculation performed on receiving end does not match, and error message is created W/\W/\W/ZNOTES.ORG
You might also like
Tenancy Agreement: ST TH
PDF
92% (37)
Tenancy Agreement: ST TH
4 pages
ZNote for Theory A level
PDF
No ratings yet
ZNote for Theory A level
36 pages
Aqa A Level Computer Science Theory v1
PDF
No ratings yet
Aqa A Level Computer Science Theory v1
29 pages
2 CS1FC16 Information Representation
PDF
No ratings yet
2 CS1FC16 Information Representation
4 pages
Lecture02-Data Representation 2
PDF
No ratings yet
Lecture02-Data Representation 2
38 pages
Digital Logic Design: Number System
PDF
No ratings yet
Digital Logic Design: Number System
48 pages
Data Storage in Computer System: BITS Pilani
PDF
No ratings yet
Data Storage in Computer System: BITS Pilani
30 pages
COA Chapter 3
PDF
No ratings yet
COA Chapter 3
23 pages
07 Datarepresentation 150216185458 Conversion Gate02
PDF
No ratings yet
07 Datarepresentation 150216185458 Conversion Gate02
43 pages
Lecture02-Data Representation 2
PDF
No ratings yet
Lecture02-Data Representation 2
39 pages
Computer Architecture
PDF
No ratings yet
Computer Architecture
5 pages
5.3 Representing Data - The Binary Number System
PDF
No ratings yet
5.3 Representing Data - The Binary Number System
22 pages
DCN 157 - Introduction To IT (Lecture 3)
PDF
No ratings yet
DCN 157 - Introduction To IT (Lecture 3)
31 pages
w4 One PDF
PDF
No ratings yet
w4 One PDF
40 pages
Digital Engineering 3
PDF
No ratings yet
Digital Engineering 3
28 pages
Chapeter1 Part 1
PDF
No ratings yet
Chapeter1 Part 1
36 pages
Addition in Binary and Hexadecimal: 0 + 0 0 0 + 1 1 1 + 0 1 1 + 1 0 Carry 1
PDF
No ratings yet
Addition in Binary and Hexadecimal: 0 + 0 0 0 + 1 1 1 + 0 1 1 + 1 0 Carry 1
15 pages
Ch4-Machine Level Representation of Data-2019
PDF
No ratings yet
Ch4-Machine Level Representation of Data-2019
44 pages
Chapter 2
PDF
No ratings yet
Chapter 2
37 pages
Data Representation: Prepared By: Dr. Anju Sharma Smca
PDF
No ratings yet
Data Representation: Prepared By: Dr. Anju Sharma Smca
27 pages
ARCh Presentation1
PDF
No ratings yet
ARCh Presentation1
12 pages
Unit 2 Computer Architecture
PDF
No ratings yet
Unit 2 Computer Architecture
19 pages
Workbook Number System
PDF
No ratings yet
Workbook Number System
12 pages
Digital Computers and Information
PDF
No ratings yet
Digital Computers and Information
53 pages
Ch. 1 Digital Systems - Tagged
PDF
No ratings yet
Ch. 1 Digital Systems - Tagged
28 pages
Describe How Data Are Stored and Manipulated Within The Computer
PDF
100% (1)
Describe How Data Are Stored and Manipulated Within The Computer
9 pages
Topic #2 - Data Representation
PDF
No ratings yet
Topic #2 - Data Representation
61 pages
FAC1002 - Binary Number System
PDF
No ratings yet
FAC1002 - Binary Number System
31 pages
UTF-8''Digital Fundamentals Tenth Edition Floyd-Chapter 2
PDF
No ratings yet
UTF-8''Digital Fundamentals Tenth Edition Floyd-Chapter 2
49 pages
Lecture 4 - The Digital Logic Level, Part 3
PDF
No ratings yet
Lecture 4 - The Digital Logic Level, Part 3
29 pages
Number Systems and Codes
PDF
No ratings yet
Number Systems and Codes
78 pages
1. Data Representation (1)
PDF
No ratings yet
1. Data Representation (1)
14 pages
Week-2 Data Representation
PDF
No ratings yet
Week-2 Data Representation
15 pages
Unit1 Data Representation_1
PDF
No ratings yet
Unit1 Data Representation_1
35 pages
CH 01
PDF
No ratings yet
CH 01
38 pages
COA - Unit 2 Data Representation 1
PDF
No ratings yet
COA - Unit 2 Data Representation 1
59 pages
233 Notes Section1
PDF
No ratings yet
233 Notes Section1
125 pages
Cambridge Igcse Computer Science Study and Revision Guide Sample Pages 9781398318489
PDF
No ratings yet
Cambridge Igcse Computer Science Study and Revision Guide Sample Pages 9781398318489
23 pages
EA1 Ch3 2
PDF
No ratings yet
EA1 Ch3 2
154 pages
COA UNIT-III PPTs Dr.G.Bhaskar ECE
PDF
No ratings yet
COA UNIT-III PPTs Dr.G.Bhaskar ECE
64 pages
Unit1 2
PDF
No ratings yet
Unit1 2
64 pages
Chapter 2: Data Representation
PDF
No ratings yet
Chapter 2: Data Representation
32 pages
4
PDF
No ratings yet
4
10 pages
Lecture11 Slides 1
PDF
No ratings yet
Lecture11 Slides 1
52 pages
DLD 3 4
PDF
No ratings yet
DLD 3 4
77 pages
Chapter 2 - Number System
PDF
No ratings yet
Chapter 2 - Number System
62 pages
COA Chapter 2
PDF
No ratings yet
COA Chapter 2
15 pages
Bits, Bytes, Integers, and Floats Notes
PDF
No ratings yet
Bits, Bytes, Integers, and Floats Notes
18 pages
03 - Binary Systems - 2
PDF
No ratings yet
03 - Binary Systems - 2
65 pages
2019 2020 CSE206 Week09 Ch9 Ch10 Number Systems and Computer Arithmetic
PDF
No ratings yet
2019 2020 CSE206 Week09 Ch9 Ch10 Number Systems and Computer Arithmetic
39 pages
Chapter 3
PDF
No ratings yet
Chapter 3
72 pages
Digital Electronics
PDF
No ratings yet
Digital Electronics
64 pages
GCSE Revison Guide - Chapter 1
PDF
No ratings yet
GCSE Revison Guide - Chapter 1
10 pages
02 Number Systems
PDF
No ratings yet
02 Number Systems
52 pages
Data Representation
PDF
No ratings yet
Data Representation
49 pages
Lec3-Intro To Number System
PDF
No ratings yet
Lec3-Intro To Number System
47 pages
02 Number Systems
PDF
No ratings yet
02 Number Systems
54 pages
Machine Level Representation of Data Part 3
PDF
100% (1)
Machine Level Representation of Data Part 3
32 pages
CSC2201 - Class Notes
PDF
No ratings yet
CSC2201 - Class Notes
97 pages
Number System
PDF
No ratings yet
Number System
38 pages
Agent Form
PDF
No ratings yet
Agent Form
1 page
Code Lagos - Learn Programming With Python
PDF
No ratings yet
Code Lagos - Learn Programming With Python
72 pages
Caie Igcse Chemistry 0620 Theory v3
PDF
100% (3)
Caie Igcse Chemistry 0620 Theory v3
21 pages
Caie Igcse: Updated To 2017 Syllabus
PDF
No ratings yet
Caie Igcse: Updated To 2017 Syllabus
47 pages
Cambridge IGCSE: Information and Communication Technology 0417/13
PDF
No ratings yet
Cambridge IGCSE: Information and Communication Technology 0417/13
20 pages
Information and Communication Technology: Edexcel International Gcse (9 - 1)
PDF
No ratings yet
Information and Communication Technology: Edexcel International Gcse (9 - 1)
17 pages
Affidavit Oath
PDF
No ratings yet
Affidavit Oath
1 page
Affidavit Oath
PDF
No ratings yet
Affidavit Oath
1 page
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
Tenancy Agreement: ST TH
PDF
Tenancy Agreement: ST TH
ZNote for Theory A level
PDF
ZNote for Theory A level
Aqa A Level Computer Science Theory v1
PDF
Aqa A Level Computer Science Theory v1
2 CS1FC16 Information Representation
PDF
2 CS1FC16 Information Representation
Lecture02-Data Representation 2
PDF
Lecture02-Data Representation 2
Digital Logic Design: Number System
PDF
Digital Logic Design: Number System
Data Storage in Computer System: BITS Pilani
PDF
Data Storage in Computer System: BITS Pilani
COA Chapter 3
PDF
COA Chapter 3
07 Datarepresentation 150216185458 Conversion Gate02
PDF
07 Datarepresentation 150216185458 Conversion Gate02
Lecture02-Data Representation 2
PDF
Lecture02-Data Representation 2
Computer Architecture
PDF
Computer Architecture
5.3 Representing Data - The Binary Number System
PDF
5.3 Representing Data - The Binary Number System
DCN 157 - Introduction To IT (Lecture 3)
PDF
DCN 157 - Introduction To IT (Lecture 3)
w4 One PDF
PDF
w4 One PDF
Digital Engineering 3
PDF
Digital Engineering 3
Chapeter1 Part 1
PDF
Chapeter1 Part 1
Addition in Binary and Hexadecimal: 0 + 0 0 0 + 1 1 1 + 0 1 1 + 1 0 Carry 1
PDF
Addition in Binary and Hexadecimal: 0 + 0 0 0 + 1 1 1 + 0 1 1 + 1 0 Carry 1
Ch4-Machine Level Representation of Data-2019
PDF
Ch4-Machine Level Representation of Data-2019
Chapter 2
PDF
Chapter 2
Data Representation: Prepared By: Dr. Anju Sharma Smca
PDF
Data Representation: Prepared By: Dr. Anju Sharma Smca
ARCh Presentation1
PDF
ARCh Presentation1
Unit 2 Computer Architecture
PDF
Unit 2 Computer Architecture
Workbook Number System
PDF
Workbook Number System
Digital Computers and Information
PDF
Digital Computers and Information
Ch. 1 Digital Systems - Tagged
PDF
Ch. 1 Digital Systems - Tagged
Describe How Data Are Stored and Manipulated Within The Computer
PDF
Describe How Data Are Stored and Manipulated Within The Computer
Topic #2 - Data Representation
PDF
Topic #2 - Data Representation
FAC1002 - Binary Number System
PDF
FAC1002 - Binary Number System
UTF-8''Digital Fundamentals Tenth Edition Floyd-Chapter 2
PDF
UTF-8''Digital Fundamentals Tenth Edition Floyd-Chapter 2
Lecture 4 - The Digital Logic Level, Part 3
PDF
Lecture 4 - The Digital Logic Level, Part 3
Number Systems and Codes
PDF
Number Systems and Codes
1. Data Representation (1)
PDF
1. Data Representation (1)
Week-2 Data Representation
PDF
Week-2 Data Representation
Unit1 Data Representation_1
PDF
Unit1 Data Representation_1
CH 01
PDF
CH 01
COA - Unit 2 Data Representation 1
PDF
COA - Unit 2 Data Representation 1
233 Notes Section1
PDF
233 Notes Section1
Cambridge Igcse Computer Science Study and Revision Guide Sample Pages 9781398318489
PDF
Cambridge Igcse Computer Science Study and Revision Guide Sample Pages 9781398318489
EA1 Ch3 2
PDF
EA1 Ch3 2
COA UNIT-III PPTs Dr.G.Bhaskar ECE
PDF
COA UNIT-III PPTs Dr.G.Bhaskar ECE
Unit1 2
PDF
Unit1 2
Chapter 2: Data Representation
PDF
Chapter 2: Data Representation
4
PDF
4
Lecture11 Slides 1
PDF
Lecture11 Slides 1
DLD 3 4
PDF
DLD 3 4
Chapter 2 - Number System
PDF
Chapter 2 - Number System
COA Chapter 2
PDF
COA Chapter 2
Bits, Bytes, Integers, and Floats Notes
PDF
Bits, Bytes, Integers, and Floats Notes
03 - Binary Systems - 2
PDF
03 - Binary Systems - 2
2019 2020 CSE206 Week09 Ch9 Ch10 Number Systems and Computer Arithmetic
PDF
2019 2020 CSE206 Week09 Ch9 Ch10 Number Systems and Computer Arithmetic
Chapter 3
PDF
Chapter 3
Digital Electronics
PDF
Digital Electronics
GCSE Revison Guide - Chapter 1
PDF
GCSE Revison Guide - Chapter 1
02 Number Systems
PDF
02 Number Systems
Data Representation
PDF
Data Representation
Lec3-Intro To Number System
PDF
Lec3-Intro To Number System
02 Number Systems
PDF
02 Number Systems
Machine Level Representation of Data Part 3
PDF
Machine Level Representation of Data Part 3
CSC2201 - Class Notes
PDF
CSC2201 - Class Notes
Number System
PDF
Number System
Agent Form
PDF
Agent Form
Code Lagos - Learn Programming With Python
PDF
Code Lagos - Learn Programming With Python
Caie Igcse Chemistry 0620 Theory v3
PDF
Caie Igcse Chemistry 0620 Theory v3
Caie Igcse: Updated To 2017 Syllabus
PDF
Caie Igcse: Updated To 2017 Syllabus
Cambridge IGCSE: Information and Communication Technology 0417/13
PDF
Cambridge IGCSE: Information and Communication Technology 0417/13
Information and Communication Technology: Edexcel International Gcse (9 - 1)
PDF
Information and Communication Technology: Edexcel International Gcse (9 - 1)
Affidavit Oath
PDF
Affidavit Oath
Affidavit Oath
PDF
Affidavit Oath