Computer Science Unit 2 Theory
Theory
Storage
Memory and Data?
MAR-The MAR hold the address of the current instruction being processed or the address where data is being transferred
Or, Holds the memory location that needs to be accessed
MDR-The MDR holds the data held in the addresses held in the MDR or data that is being transferred to primary storage
Or, the MDR holds data that is being transferred to or from memory
Cache- Cache memory is a faster but smaller way of storing data on your device, it is built into the CPU and is more expensive then slower means of memory such as RAM.
RAM-The RAM (random access memory) is a volatile (Does not hold data when computer is shut down) method of storage, your computer stores data it needs to access quickly in the RAM. Henceforth, the more RAM the faster your computer can run do to it being able to access more data faster.
The Program counter or the PC manages the memory address of the next of the instruction to be executed next.
RAM and ROM are different methods of storage, ROM holds the data that the computer needs to start up or the BIOS.
Performance
There are man factors that can slow down or speed up your computer such as- Cores, Cores are mini brains attached to the CPU each capable of processing information so if you have 2 cores then your computer can process 2 things at once. However, some software doesn't have multiple core support so it wont always speed up your computer.
Storage- There are three main types of storage.
Optical, Optical storage uses disks to store information, small grooves on the surface of the disk reflect light which is then processed as information. Optical storage is cheap but holds little information. It also can be easily broken.
Magnetic- Magnetic storage uses a mechanical arm to read information on spinning disks, optical storage is long lasting, cheap, and holds a lot of information but it is quite slow.
Embedded systems- Embedded systems are systems that are hardwired to perform one task, they are cheap to implement but they are hard to fix or upgrade. They are found in things like Microwaves, refrigerators, or alarms
COMPUTER SCIENCE UNIT 2 CODING
Programming constructs
Sequence- The order in which instructions occur and are processed
Selection- Determines which path a program takes while its running
Iteration- The repeated execution of a section of code when a program in running
Definitions
Variable- a container for storing data values.
Constant- A type of variable that holds data values that cannot be changed
Occurs when the interpreter encounters invalid syntax in code. (code is invalid)
Ethics! Woohoo! Best day ever I love ethics
Ethical and legal issues related with websites
Copyright infringement- Is the content fair use or permitted. Cybersecurity- Is the information and downloads on he website safe for the user and the owner? Is users information secure under the data act.
All the Acts yapper
Data Protection Act- The Data protection act is in place to protect personal data from being misused.
The Computer Misuse Act- The main legislation that criminalises unauthorised to computer systems and data.
Copyright Designs and Patents act- Copyright designs protect original works whether they are images, videos, films or any other created media.
Created Comms License
A Created Comms License or CC is one of several copyright licenses that enable the free distribution of an otherwise copyrighted "work"
💦💦💦
💻💻
Utility programs/software
A utility software is a program designed to manage and tune an application or software
Operating System Security
Operating systems provide security through only allowing authorised logins, fire walls, and built in antivirus.
Legistation
(2024/9/13 10:49)
Lawfulness, fairness and transparency-
-There must valid reasons for collecting and using personal data.
-Nothing must be done with the data in breach of any other laws
-Personal data can only used in a way that is fair. This means data must not be processed in a way that is damaging, unexpected, or misleading.
-The personal or organisation collecting the data must be open ands honest with people from the start about how they will use their personal data.
🐷
Purpose limitation
-The purpose for processing the data must be clear from the start
-The purpose must be documented and specified in privacy information that is communicated to individuals
-Data must not be used for a new purpose unless this is compatible with the original purpose if it is not then additional consent must be obtained unless there is a clear obligation or function set out in law. 🉐
Data Minimisation-
-Data being processed must be
-adequate
-relevant
-limited to what is necessary❤🦋❤
https://lichess.org/ieDTO10X
Accuracy-
-All reasonable steps must be taken to ensure the personal data held is not incorrect or misleading
-Data must be kept up to date
-if any data is incorrect or misleading it must be erased or corrected
-Challenges to the accuracy of personally data must be considered. )
🍠
Storage Limitations-
-Data must not be kept for longer then necessary
-how long data is kept for must be justified and specified in a policy statement
-There must be a periodic review of the data held, and data no longer required should be erased or anonymised. ❤❤❤
Data Misuse Act-Misusing a computer can have many criminal implications, these can include fines and prison time from 2 years to life in prison.
Some examples of the computer misuse act could include brute force hacking or the ownership or creation of malware for malicious purposes.
click to edit
Copyright act:The copyright act prevents the theft of patented creative ideas, similarily, the patent act 🌃
Software licenses- Software lto the icenses were devolped in 1970 when oped ration sytems were first commericalised. This had led to linux vs windows debate
Y10 Computer Science Revision
Data Representation
Images are broken down into a number of tiny pixels, which represent one colour each. Each colour is stored as its own binary number. The colour depth of an image represents how many colours it contains, while the resolution determines the resolution of each pixel. Metadata is information about the image - it includes height, width and resolution.
How is data stored in computers?
Data in computers is stored and transmitted as a series of ones and zeroes, also known as binary digits.
How is sound stored on a computer?
The amplitude of sound waves are sampled at regular intervals using an analogue-digital converter, then stored as binary. However, this reduces the sound quality. The higher the sample rate, the closer the intervals will be, and therefore the sound quality will be better.
How is text stored on computers?
Each character on a keyboard has a binary number that corresponds to it, in order to be processed when the character is typed. Two notable character sets are ASCII, which is 7-bit and only used for American characters, and Unicode, which is 16/32-bit, and features letters with accents, different scripts like Cyrillic and Mandarin, and emojis.
The CPU
click to edit
The FDE cycle is the basic operation of a computer, constantly repeated from boot-up to shutting down. First the CPU fetches an instruction from the main memory, and stores it in the registers. Afterwards, the CPU must understand the instruction to follow it - also known as decoding. Finally, the CPU can now perform the action, or execute it.
What is the Von Neumann architecture?
The Von Neumann architecture consists of a single shared memory, one bus for memory access, input/output interfaces, an arithmetic unit, and a program control unit. Due to only having one bus, fetching instructions and data operations cannot happen simultaneously.
What are the MDR and MAR?
When the CPU fetches an instruction from the RAM, that instruction is temporarily stored in the Memory Data Register (MDR).
Each instruction in the RAM has a specific location, with its own unique address. Said address is temporarily stored in the Memory Address Register (MAR).
What do the program counter and accumulator do?
The program counter contains the address of the next instruction, and the accumulator stores temporary data while the ALU is performing calculations.
What are the 3 components of a CPU?
A CPU is made up of 3 main components: the Control Unit, Immediate Access Store and Arithmetic Logic Unit. The CU controls and monitors communications between the hardware, and makes sure signals are delivered successfully. The IAS (a.k.a. registers) is the store of the data and programs that the CPU is using. The ALU is where the CPU performs calculations - each task that the CPU performs is completed here.
How does cache work?
Cache is an extremely small, extremely fast type of RAM, often located inside the CPU chip.
There are 3 different levels of cache, with Level 1 being the smallest and fastest, and Level 3 being the largest and slowest.
What are 4 factors that affect CPU performance?
Clock speed - faster clock means the CPU can process instructions faster
Number of cores - more cores means more instructions can be processed simultaneously
Cache size - less time spent accessing the memory
RAM size - less time using virtual memory, which is slower
Computer Safety and Responsibility
What are some of the dangers of the Internet?
There are three major risks with using the Internet.
Task 2 - What are some of the positive/negative implications of...
Allowing staff to work remotely?
Replacing existing school computers with new computers and giving students Chromebooks?
Replacing a telephone support system with monitored messages?
Replacing a fleet of haulage lorries with driverless technology?
Storage
What are the advantages and disadvantages of...
Optical storage?
✅ Very lightweight and portable
❌ Some data can be lost when scratched
❌ Easy to snap, losing all data and making the disc useless
❌ Expensive for higher amounts of storage
Solid-state storage?
✅ Compact and more portable than a HDD
✅ No moving parts, making it durable
✅ Fast data transfer
✅ Low power consumption
❌ Much more expensive than a HDD for the same capacity
❌ Vulnerable to power loss and EM fields
Magnetic storage?
✅ Relatively cheap for the amount of storage that you get
✅ Fast access and retrieval
❌ Easily damaged, due to moving parts
❌ Slows down and breaks over time
❌ Slower access than SSDs
What are the two main types of software?
Software is split into two types; system and application software. The first type helps to run and maintain the computer, with operating systems, drivers and utility software falling into the category. The second type is used to carry out tasks on a computer. Some examples include word processors, web browsers and graphics software.
Computer Science Revision
CPU- The CPU fetches, decodes, and executes instructions.
There ae several factors that can increase computer performance such as processor or cache size. Cache size works as a faster memory but it it is small and expensive. The processor can have higher Hertz or more cores, which will increase Processing power.
Embedded systems are systems that are designed to do one task, they are hard to update and change but are cheap to produce.
Cloud saving is accessible from anywhere with an internet connection, it is done by sending desired files to an external server connected to the internet.
Computers store data in binary, this is because it is asier for them to read and takes up less storage
Lossy Compression- Lossy is great at lowering file size but it can also permanently delete data.
Lossless Compression- Saves less space then lossy but looks much better.
click to edit
Compression lowers the file size of an image at the cost of quality.
Linear search- Slow method, works through each entry individually.
Binary Search- Divides the portion of the list in half until the answer is found
A bubble sort compares each individual item in a set of data and sorts them.
A merge sort splits the data set into two
Defensive deign is ensuring a program runs safely irregardless what input user tries.
Unicode is a universal set of characters
Askii is a 7-bit system for displaying English characters
click to edit
click to edit
gucci
click to edit
click to edit
Skip to content
Home
Learn About Pi
Math Help
Calculators
Celebrate Pi
Teacher Resources
Pi Day logo
1 Million Digits of Pi
The first 10 digits of pi (π) are 3.1415926535
The first million digits of pi (π) are below. Why not calculate the circumference of a circle using pi here. Or simply learn about pi here. Maximize the fun you can have this Pi Day by checking out our Pi Day Merch.
3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273724587006606315588174881520920962829254091715364367892590360011330530548820466521384146951941511609433057270365759591953092186117381932611793105118548074462379962749567351885752724891227938183011949129833673362440656643086021394946395224737190702179860943702770539217176293176752384674818467669405132000568127145263560827785771342757789609173637178721468440901224953430146549585371050792279689258923542019956112129021960864034418159813629774771309960518707211349999998372978049951059731732816096318595024459455346908302642522308253344685035261931188171010003137838752886587533208381420617177669147303598253490428755468731159562863882353787593751957781857780532171226806613001927876611195909216420198938095257201065485863278865936153381827968230301952035301852968995773622599413891249721775283479131515574857242454150695950829533116861727855889075098381754637464939319255060400927701671139009848824012858361603563707660104710181942955596198946767837449448255379774726847104047534646208046684259069491293313677028989152104752162056966024058038150193511253382430035587640247496473263914199272604269922796782354781636009341721641219924586315030286182974555706749838505494588586926995690927210797509302955321165344987202755960236480665499119881834797753566369807426542527862551818417574672890977772793800081647060016145249192173217214772350141441973568548161361157352552133475741849468438523323907394143334547762416862518983569485562099219222184272550254256887671790494601653466804988627232791786085784383827967976681454100953883786360950680064225125205117392984896084128488626945604241965285022210661186306744278622039194945047123713786960956364371917287467764657573962413890865832645995813390478027590099465764078951269468398352595709825822620522489407726719478268482601476990902640136394437455305068203496252451749399651431429809190659250937221696461515709858387410597885959772975498930161753928468138268683868942774155991855925245953959431049972524680845987273644695848653836736222626099124608051243884390451244136549762780797715691435997700129616089441694868555848406353422072225828488648158456028506016842739452267467678895252138522549954666727823986456596116354886230577456498035593634568174324112515076069479451096596094025228879710893145669136867228748940560101503308617928680920874760917824938589009714909675985261365549781893129784821682998948722658804857564014270477555132379641451523746234364542858444795265867821051141354735739523113427166102135969536231442952484937187110145765403590279934403742007310578539062198387447808478489683321445713868751943506430218453191048481005370614680674919278191197939952061419663428754440643745123718192179998391015919561814675142691239748940907186494231961567945208095146550225231603881930142093762137855956638937787083039069792077346722182562599661501421503068038447734549202605414665925201497442850732518666002132434088190710486331734649651453905796268561005508106658796998163574736384052571459102897064140110971206280439039759515677157700420337869936007230558763176359421873125147120532928191826186125867321579198414848829164470609575270695722091756711672291098169091528017350671274858322287183520935396572512108357915136988209144421006751033467110314126711136990865851639831501970165151168517143765761835155650884909989859982387345528331635507647918535893226185489632132933089857064204675259070915481416549859461637180270981994309924488957571282890592323326097299712084433573265489382391193259746366730583604142813883032038249037589852437441702913276561809377344403070746921120191302033038019762110110044929321516084244485963766983895228684783123552658213144957685726243344189303968642624341077322697802807318915441101044682325271620105265227211166039666557309254711055785376346682065310989652691862056476931257058635662018558100729360659876486117910453348850346113657686753249441668039626579787718556084552965412665408530614344431858676975145661406800700237877659134401712749470420562230538994561314071127000407854733269939081454664645880797270826683063432858785698305235808933065757406795457163775254202114955761581400250126228594130216471550979259230990796547376125517656751357517829666454779174501129961489030463994713296210734043751895735961458901938971311179042978285647503203198691514028708085990480109412147221317947647772622414254854540332157185306142288137585043063321751829798662237172159160771669254748738986654949450114654062843366393790039769265672146385306736096571209180763832716641627488880078692560290228472104031721186082041900042296617119637792133757511495950156604963186294726547364252308177036751590673502350728354056704038674351362222477158915049530984448933309634087807693259939780541934144737744184263129860809988868741326047215695162396586457302163159819319516735381297416772947867242292465436680098067692823828068996400482435403701416314965897940924323789690706977942236250822168895738379862300159377647165122893578601588161755782973523344604281512627203734314653197777416031990665541876397929334419521541341899485444734567383162499341913181480927777103863877343177207545654532207770921201905166096280490926360197598828161332316663652861932668633606273567630354477628035045077723554710585954870279081435624014517180624643626794561275318134078330336254232783944975382437205835311477119926063813346776879695970309833913077109870408591337464144282277263465947047458784778720192771528073176790770715721344473060570073349243693113835049316312840425121925651798069411352801314701304781643788518529092854520116583934196562134914341595625865865570552690496520985803385072242648293972858478316305777756068887644624824685792603953527734803048029005876075825104747091643961362676044925627420420832085661190625454337213153595845068772460290161876679524061634252257719542916299193064553779914037340432875262888963995879475729174642635745525407909145135711136941091193932519107602082520261879853188770584297259167781314969900901921169717372784768472686084900337702424291651300500516832336435038951702989392233451722013812806965011784408745196012122859937162313017114448464090389064495444006198690754851602632750529834918740786680881833851022833450850486082503930213321971551843063545500766828294930413776552793975175461395398468339363830474611996653858153842056853386218672523340283087112328278921250771262946322956398989893582116745627010218356462201349671518819097303811980049734072396103685406643193950979019069963955245300545058068550195673022921913933918568034490398205955100226353536192041994745538593810234395544959778377902374216172711172364343543947822181852862408514006660443325888569867054315470696574745855033232334210730154594051655379068662733379958511562578432298827372319898757141595781119635833005940873068121602876496286744604774649159950549737425626901049037781986835938146574126804925648798556145372347867330390468838343634655379498641927056387293174872332083760112302991136793862708943879936201629515413371424892830722012690147546684765357616477379467520049075715552781965362132392640616013635815590742202020318727760527721900556148425551879253034351398442532234157623361064250639049750086562710953591946589751413103482276930624743536325691607815478181152843667957061108615331504452127473924544945423682886061340841486377670096120715124914043027253860764823634143346235189757664521641376796903149501910857598442391986291642193994907236234646844117394032659184044378051333894525742399508296591228508555821572503107125701266830240292952522011872676756220415420516184163484756516999811614101002996078386909291603028840026910414079288621507842451670908700069928212066041837180653556725253256753286129104248776182582976515795984703562226293486003415872298053498965022629174878820273420922224533985626476691490556284250391
Privacy PolicyTerms of UseContact Us
©2025 Mometrix
click to edit
Skip to content
Home
Learn About Pi
Math Help
Calculators
Celebrate Pi
Teacher Resources
Pi Day logo
1 Million Digits of Pi
The first 10 digits of pi (π) are 3.1415926535
The first million digits of pi (π) are below. Why not calculate the circumference of a circle using pi here. Or simply learn about pi here. Maximize the fun you can have this Pi Day by checking out our Pi Day Merch.
3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273724587006606315588174881520920962829254091715364367892590360011330530548820466521384146951941511609433057270365759591953092186117381932611793105118548074462379962749567351885752724891227938183011949129833673362440656643086021394946395224737190702179860943702770539217176293176752384674818467669405132000568127145263560827785771342757789609173637178721468440901224953430146549585371050792279689258923542019956112129021960864034418159813629774771309960518707211349999998372978049951059731732816096318595024459455346908302642522308253344685035261931188171010003137838752886587533208381420617177669147303598253490428755468731159562863882353787593751957781857780532171226806613001927876611195909216420198938095257201065485863278865936153381827968230301952035301852968995773622599413891249721775283479131515574857242454150695950829533116861727855889075098381754637464939319255060400927701671139009848824012858361603563707660104710181942955596198946767837449448255379774726847104047534646208046684259069491293313677028989152104752162056966024058038150193511253382430035587640247496473263914199272604269922796782354781636009341721641219924586315030286182974555706749838505494588586926995690927210797509302955321165344987202755960236480665499119881834797753566369807426542527862551818417574672890977772793800081647060016145249192173217214772350141441973568548161361157352552133475741849468438523323907394143334547762416862518983569485562099219222184272550254256887671790494601653466804988627232791786085784383827967976681454100953883786360950680064225125205117392984896084128488626945604241965285022210661186306744278622039194945047123713786960956364371917287467764657573962413890865832645995813390478027590099465764078951269468398352595709825822620522489407726719478268482601476990902640136394437455305068203496252451749399651431429809190659250937221696461515709858387410597885959772975498930161753928468138268683868942774155991855925245953959431049972524680845987273644695848653836736222626099124608051243884390451244136549762780797715691435997700129616089441694868555848406353422072225828488648158456028506016842739452267467678895252138522549954666727823986456596116354886230577456498035593634568174324112515076069479451096596094025228879710893145669136867228748940560101503308617928680920874760917824938589009714909675985261365549781893129784821682998948722658804857564014270477555132379641451523746234364542858444795265867821051141354735739523113427166102135969536231442952484937187110145765403590279934403742007310578539062198387447808478489683321445713868751943506430218453191048481005370614680674919278191197939952061419663428754440643745123718192179998391015919561814675142691239748940907186494231961567945208095146550225231603881930142093762137855956638937787083039069792077346722182562599661501421503068038447734549202605414665925201497442850732518666002132434088190710486331734649651453905796268561005508106658796998163574736384052571459102897064140110971206280439039759515677157700420337869936007230558763176359421873125147120532928191826186125867321579198414848829164470609575270695722091756711672291098169091528017350671274858322287183520935396572512108357915136988209144421006751033467110314126711136990865851639831501970165151168517143765761835155650884909989859982387345528331635507647918535893226185489632132933089857064204675259070915481416549859461637180270981994309924488957571282890592323326097299712084433573265489382391193259746366730583604142813883032038249037589852437441702913276561809377344403070746921120191302033038019762110110044929321516084244485963766983895228684783123552658213144957685726243344189303968642624341077322697802807318915441101044682325271620105265227211166039666557309254711055785376346682065310989652691862056476931257058635662018558100729360659876486117910453348850346113657686753249441668039626579787718556084552965412665408530614344431858676975145661406800700237877659134401712749470420562230538994561314071127000407854733269939081454664645880797270826683063432858785698305235808933065757406795457163775254202114955761581400250126228594130216471550979259230990796547376125517656751357517829666454779174501129961489030463994713296210734043751895735961458901938971311179042978285647503203198691514028708085990480109412147221317947647772622414254854540332157185306142288137585043063321751829798662237172159160771669254748738986654949450114654062843366393790039769265672146385306736096571209180763832716641627488880078692560290228472104031721186082041900042296617119637792133757511495950156604963186294726547364252308177036751590673502350728354056704038674351362222477158915049530984448933309634087807693259939780541934144737744184263129860809988868741326047215695162396586457302163159819319516735381297416772947867242292465436680098067692823828068996400482435403701416314965897940924323789690706977942236250822168895738379862300159377647165122893578601588161755782973523344604281512627203734314653197777416031990665541876397929334419521541341899485444734567383162499341913181480927777103863877343177207545654532207770921201905166096280490926360197598828161332316663652861932668633606273567630354477628035045077723554710585954870279081435624014517180624643626794561275318134078330336254232783944975382437205835311477119926063813346776879695970309833913077109870408591337464144282277263465947047458784778720192771528073176790770715721344473060570073349243693113835049316312840425121925651798069411352801314701304781643788518529092854520116583934196562134914341595625865865570552690496520985803385072242648293972858478316305777756068887644624824685792603953527734803048029005876075825104747091643961362676044925627420420832085661190625454337213153595845068772460290161876679524061634252257719542916299193064553779914037340432875262888963995879475729174642635745525407909145135711136941091193932519107602082520261879853188770584297259167781314969900901921169717372784768472686084900337702424291651300500516832336435038951702989392233451722013812806965011784408745196012122859937162313017114448464090389064495444006198690754851602632750529834918740786680881833851022833450850486082503930213321971551843063545500766828294930413776552793975175461395398468339363830474611996653858153842056853386218672523340283087112328278921250771262946322956398989893582116745627010218356462201349671518819097303811980049734072396103685406643193950979019069963955245300545058068550195673022921913933918568034490398205955100226353536192041994745538593810234395544959778377902374216172711172364343543947822181852862408514006660443325888569867054315470696574745855033232334210730154594051655379068662733379958511562578432298827372319898757141595781119635833005940873068121602876496286744604774649159950549737425626901049037781986835938146574126804925648798556145372347867330390468838343634655379498641927056387293174872332083760112302991136793862708943879936201629515413371424892830722012690147546684765357616477379467520049075715552781965362132392640616013635815590742202020318727760527721900556148425551879253034351398442532234157623361064250639049750086562710953591946589751413103482276930624743536325691607815478181152843667957061108615331504452127473924544945423682886061340841486377670096120715124914043027253860764823634143346235189757664521641376796903149501910857598442391986291642193994907236234646844117394032659184044378051333894525742399508296591228508555821572503107125701266830240292952522011872676756220415420516184163484756516999811614101002996078386909291603028840026910414079288621507842451670908700069928212066041837180653556725253256753286129104248776182582976515795984703562226293486003415872298053498965022629174878820273420922224533985626476691490556284250391
Privacy PolicyTerms of UseContact Us
©2025 Mometrix