Professional Documents
Culture Documents
Binary Shift: (P) Practical (T) Theory (3) Denotes Number of Lessons
Binary Shift: (P) Practical (T) Theory (3) Denotes Number of Lessons
Binary Shift: (P) Practical (T) Theory (3) Denotes Number of Lessons
Binary Shift
When you shift a number left you are multiplying, when you shift it right you are dividing.
(P) Practical Shifting left once multiplies the original number by 2, shifting left twice * 4, shifting left by three * 8
(T) Theory
(3) Denotes number of lessons 8 4 2 1 The binary grid
1 1 1 0 Our original number 8 + 4 + 2 + 0 = 14
Lesson Sequence 1 1 1 When you shift right, any numbers that have nowhere to go are deleted. 4 + 2 + 1 = 7
(T) Binary Addition and Binary
Shift (3) In this example the digit in the far right hand column originally is deleted as we shift the number to the right. If you start with
an even number and shift right once you will be diving by 2, shift right twice and you are dividing by 4, shift right 3 times and
Key Assessment: You are dividing by 8. Note: if you start with an odd number the division will not be exact.
Key Assessment 4
Binary Addition
Remember the magic grid
Core Texts
AQA Computer Science, Alison
Page, 2013 0+0=0 Only add two digits at any one time and work from the right-hand column top to bottom.
0+1=1
AQA Computer Science, 1+0=1
Robson & Heathcote, 2016 1 = 1 = 10
http://www.Visualstudio.com
(free software download)
Advantages:
Year: 9 Access data from anywhere in the world (as long as you have an internet connection).
Topic: Cloud Storage & You can share the data with people in different locations.
Embedded Systems Backing up of data is no longer an issue for the user as it is the responsibility of the cloud service provider to keep the data safe.
Avoids working with many different copies across multiple users.
Do not have to rely on carrying around files on a removable disk (e.g. USB stick / External hard drive).
Examples are:
Car Engine management systems, Washing machines, dishwashers, microwaves, MP3 players, Video cameras, traffic lights, hospital
scanning equipment, Smart energy meters, Smart phones, DVD / Blu-Ray players, Games consoles.
Key Words:
Colour The number of bits per pixel required to store Sample Rate The amount of samples taken from a sound file
Depth the data per second, measured in hertz (Hz)
Pixel The smallest area of a bitmap image, a single Sample Resolution The amount of bits used to store each sample
point (dot)
Year: 9 Bits per pixel Highest amount Bits per pixel Highest amount
Topic: Images & Sound Formula for calculating file size of an image:
(Colour depth) of possible (Colour depth) of possible
colours colours
Answer in bits =
1 2 7 128
Core Texts 2 4 8 256 image width x image height x
AQA Computer Science, Alison 3 8 … colour depth
Page, 2013
4 16 16 65,536
AQA Computer Science, 5 32 … Answer in bytes =
Robson & Heathcote, 2016 6 64 24 16.7million (image width x image height x
colour depth) / 8
Image example
Conversions
Bits to Bytes /8 An image with 256 colours with a size of 2,100 pixels by 1500 pixels is Formula for calculating file size of a sound file:
saved. What is the size in bytes of the file?
Bytes to Kilobytes (KB)
/1000 256 Colours means a colour depth of 8 pixels
Sample rate (Hz) x sample
resolution x number of seconds
Kilobytes to Megabytes (2,100 x 1,500 x 8) /8 = 3,150,000 bytes
(MB) /1000 This will give you an answer in bits
Remember we have divided by 8 at the end to convert the file from bits into
bytes. Remember:
If the sample rate is in Khz then you must
Sound example multiply it by 1000 to get it into Hz
Calculate the file size in bytes of a 10 second radio jingle using a sample rate If the time is in minutes you must multiply by
of 8,000Hz and a 16 bit sample resolution. 60 to have it in seconds
Remember we have divided by 8 at the end to convert the file from bits into
bytes.
Key Words:
Lossy A data encoding method where files are Run Length A simple form of lossless data compression in
compressed by removing some of the detail Encoding which runs of data are stored using frequency pairs
Lossless A data encoding method where files are Huffman Coding A compression technique used to reduce the
compressed but no data is lost number of bots used to represent each letter.
Year: 9 Compression is the reduction in file size to reduce download times and storage requirements.
Topic: Compression Compression examples
Type File suffix Compression Type Explanation
Core Texts Bitmap .bmp - Uncompressed still image file
AQA Computer Science, Alison JPEG .jpg Lossy Good for photographs
Page, 2013 Colour depth = 24 bits, RGB,
16.7 million different colours
AQA Computer Science, Graphic .gif Lossless Colour depth = 8 bits (only 256 colours)
Robson & Heathcote, 2016 Interchange Good for images with large areas of solid colour
Format Ideal for web graphics
MP3 .mp3 Lossy Audio files: Designed for downloading music form the
Run Length Encoding (RLE)
internet, In MP3 format you could fit 120 songs on a CD
Huffman Coding: Complete a frequency table of the letters in the sentence, include ‘space’
Key Words:
PAN Personal Area Network, used to connect WAN Wide area network (e.g. Internet, NHS, FTP File Transfer Protocol
one device to another, usually via Lots of LANs connected together) Used when transferring files between a client
Bluetooth and a server on a computer network.
Packet Around 512 bytes, contains: IP address SMTP Simple Mail Transfer Protocol Bluetooth A Wireless protocol that uses short range radio
(source & Destination), Sequence Used for the transfer of emails from one waves over distances up to 10meters.
number of the packet, number of total email server to another
packets, error checking data
LAN Local Area Network (e.g. School) IMAP Internet Message Access Protocol Protocol A set of rules which determine how two devices
2 or more computers connected Stores email messages on a server but communicate with each other
together over a small geographical area allows users to view and manipulate the
messages as if they were stored on their
own computers
TCP Transmission Control Protocol IP An identifying number for a piece of HTTP Hyper Text Transfer Protocol
Defines how messages are broken up Address network hardware. Every device that is Defines how messages are formatted and
into packets and reassembled at the connected to a network must have one transmitted and what actions web servers and
destination, also detects errors and e.g. 192.168.0.1 browsers should take when they receive one.
resends lost packets
Wi-Fi Wireless Fidelity UDP User Datagram Protocol HTTPS Hyper Text Transfer Protocol Secure
A protocol that determines how two Maintains an open connection between Same as above but the communications
devices communicate with each other users on the network, often used in between the web server and browser are
wirelessly online gaming sessions encrypted
Ethernet A protocol that determines how two Router A networking device that forwards data Network Two or more computers connected together for
wired devices communicate with each packets between computer networks. the purpose of sharing resources
other.
Draw the grid; label each section of four numbers 1,2,4,8 from right to left. Place your binary number in the grid (from right to left) add up the values
where there is a 1 present and convert that section into its corresponding hexadecimal number
Hexadecimal to Binary
Draw the grid; place your hex value above a block of four empty cells, work out what your value is in denary and then using each block of four make
that number out of 1,2,4,8. Once you have placed 1’s in the blocks that make up your number you will have converted it to a binary number
Denary to Hexadecimal
Core Texts Take your number, if it is under 16 then just replace the number with its hex equivalent. If it is under 256 then divide the number by 16. Round down
AQA Computer Science, Alison the answer, this will be your first hex digit. Take that answer and multiply by 16 and subtract from the original number to get your remainder. This can
Page, 2013 then be converted to its hex equivalent. Example: 183, under 256 so divide by 16 = 11.423 round down to 11 this is your first digit = B. 11*16 = 176
subtract from 183 gives your remainder = 7. 183 is therefore B7.
AQA Computer Science,
Robson & Heathcote, 2016 Hexadecimal to Denary
Take your hex number. If you have 2 digits then take the left hand digit and multiply by 16. Take the 2 nd digit and add that on to your first answer.
http://www.Visualstudio.com Example CA: C = 12, 12 * 16 = 192. A = 10, 192+10 = 202
(free software download)
Key Words:
Form A software window that holds Object An item in the window e.g. Property A characteristic of an object e.g
objects button / text box / label size / font
Debug Check the program for errors and Event driven Programs that react to external Validation Checking data that has inputted
correct them programming events such as user inputs based upon a series of rules
IDE Integrated Development Constant A name area of storage where Variable A named area of storage that can
Year: 9 Environment e.g. Visual Studio the value does not change hold different values
Syntax A mistake in the program that breaks Runtime A mistake in the program that Logic Error A mistake that does not prevent
Term: 1a
Error the rules of the computer language Error prevents the computer from the program from running but
Topic: VB.Net running the machine code produces unexpected results e.g.
1+1=3
(P) Practical
Topic: Scope Where the program can recognise Arithmetic +(add) / (divide) Verification Double checking data inputted to
(T) Theory where the constant or variable is operator * (Multiply) ensure errors are not included
(3) Denotes number of lessons located in the code – (Subtract)
Lesson Sequence
(P) Introduction to VB.Net (2)
End Ends the App
(P) My First Program (2)
lblMessage.Visible = True Shows the Label lblMessage
(P) VB Evidence / Code List lblMessage.Visible = False Hides the Label lblMessage
(P) Constants / Variables (2) Const UserName As String = "Mr Hicks" Defines a constant called UserName
(P) Data Types (2) lblMessage.Text = "Greetings " & UserName What text should the label lblMessage contain
(P) Arithmetic Operators (2) MsgBox("Goodbye " & UserName) Message box with the text Goodbye and the text contained in the constant
(P) If…Then….Else (3) UserName
(P) Key Assessment 2 (2) Const MyAddress As String = "Ebbsfleet Academy" & Sends the text onto a new line within the label lblMyAddress. MyAddress is
(T) Data Representation (4) vbNewLine & "Southfleet road" the constant
Dim UserName As String Declare a variable called UserName
UserName = InputBox("Enter Your Name") Input box to appear with message
lblMessage.Text = "Your Name is " & UserName
Key Assessments Dim bill, tip, total As Decimal Declare variables of a different data type
1, VB.Net Dim tipamount As Integer
(Work assessed to date) FirstName = txtFirstName.Text Assign value to a variable
2. VB.Net practical task Surname = txtSurname.Text
tip = bill * tipamount / 100 Assigns value to a variable and carries out calculation and assigns total to a
total = tip + bill label
Core Texts lblTip.Text = "The amount of the tip is £" & Str(tip)
AQA Computer Science, Alison If NumberSold < 0 Then Using an if…Then statement with relational operator and msg box alert
Page, 2013 MsgBox("Error: Number sold cannot be a
negative value.")
End If
AQA Computer Science, If IsNumeric(txtNumberSold.Text) Then If….then…. else statement using msg box alert
Robson & Heathcote, 2016 NumberSold = txtNumberSold.Text
Else
http://www.Visualstudio.com MsgBox("Error: Number sold must be a numeric
value")
(free software download)
End If
Key Words:
Primary Storage RAM & ROM Cloud Storage Dropbox / One drive /Google Drive
ROM Read only Memory Solid State Flash Memory includes solid state
drives /SD cards etc
RAM Random Access Memory Virtual Memory Uses part of secondary storage as
extra RAM
Year: 9 Magnetic Hard disk drive / Magnetic tape Optical CD / DVD / Blu-ray
Topic: Primary & Secondary BIOS Basic input output system
Storage
1 kilobyte (kB) 1024 bytes Even a short typed document will use several kilobytes of
Core Texts memory.
AQA Computer Science, Alison
Page, 2013 1 megabyte (MB) 1024 kilobytes One digital photo may use several megabytes of memory,
depending on how large and detailed it is.
AQA Computer Science,
1 gigabyte (GB) 1024 megabytes Could hold a large collection of images and documents, 16 hours
Robson & Heathcote, 2016
of MP3 songs (1mb per minute)
http://www.Visualstudio.com 1 terabyte (TB) 1024 gigabytes 16500 hours of MP3 (690 days)
(free software download)