Everything 1 Flashcards
What do computers do to data?
process it
_____ is the basic building block of all computers
binary
What is a microprocessor?
Same role as CPU but smaller scale // usually for a specific task // AKA embedded system // example are traffic lights, digital alarm clocks
What’s a CPU?
Central processing unit // performs thousands of tasks and complex instructions // example smartphones or laptops
What’s von Neumann architecture?
CPU access memory directly // memory stores programs and data // programs are series of instructions carried out in order
What is the fetch decode execute cycle?
Everytime a computer performs a task or runs a program it runs the FDE cycle // Fetches the instruction into the CPU // CPU decodes the instruction // Instruction is executed by CPU
What happens in the fetch step of FDE cycle?
PC contains address of memory location of next instruction // address is copied from PC to MAR via address bus // instruction at address contained in MAR temporarily copied to MDR using data bus // instruction of MDR copied into CIR // PC incrememts by 1, points to next instruction // instruction gets decoded then executed by signals via control bus to other parts of the computer
FETCH - What happens after the PC gets first instruction?
Address copied from PC to MAR
FETCH - What happens after MAR receives instruction via address bus?
Instruction copied to MDR
FETCH - Where do instructions go after MDR?
CIR
When instructions are executed by CPU, what component performs maths and logic calculations?
Arithmetic Logic Unit (ALU)
What’s the ALU’s special register for storing interim calculations called?
Accumulator (ACC)
Name 3 types of buses in CPU
data bus, control bus, address bus
What does the CIR do?
stores the current instructions being decoded and executed
What does the MAR do? (Memory address register)
stores the address of the memory location currently being read from/written to
What does the MDR do? (Memory data register)
stores data which has just been read from memory/data and is about to be written to memory
What does the PC do? (program counter)
stores the address where the next instruction to be read can be found
What does the CU do? (control unit)
sends control signals that manages the execution of instructions in the cpu
Describe the address bus
Carries addresses throughout the computer (unidirectional)
Describe the data bus
Alllows data to be sent through the computer (bi-directional)
Describe the control bus
Carries signals from the control unit to all other components (bi-directional)
Another name for RAM is
IAS Immediate Access Store
Convert 12 to binary?
1100
Convert 23 to binary
10111
Convert 43 to binary
101011
Convert 62 to binary
111110
Convert 15 to binary
1111
Convert 8 to binary
1000
Convert 0110 to denary
6
Convert 01101 to denary
13
Convert 101010 to denary
42
Convert 11111 to denary
31
Convert 1011101 to denary
93
Convert 6 to binary
110
What are the 8 bit binary placeholders?
128 / 64 / 32 / 16 / 8 / 4 / 2 / 1
What are the 12 bit binary placeholders?
2048 / 1024 / 512 / 256 / 128 / 64 / 32 / 16 / 8 / 4 / 2 / 1
Hexadecimal is base ___
16
Example of a 4 digit Hex number
A23F or 12FF or 79BB etc
_________ is base 16
hexadecimal
In hexadecimal A to F represent…
A = 10, B = 11, C = 12, D = 13, E = 14, F = 15
How to convert hex to denary?
Convert to hex to binary -> binary to denary
How to convert denary to hex?
Convert denary to binary -> binary to hex
Convert A0 to binary
1010000
Convert 1C to binary
0001 1100
Convert 50 (hex) to binary
0101 0000
Convert AA to binary
10101010
Convert A00 to binary
1010 0000 0000
Convert 1001 1011 to hex
9B
Convert 1100 1010 to hex
CA
What does the system clock do?
Defines the clock cycle that synchronises all computer operations
Which bus transmits timing signals ensuring sychronisation?
Control bus
What defines the clock cycle that synchronises all computer operations?
System clock
What happens if you increase clock speed?
Processing speed is also increased - but NOT NECESSARILY overall performance
3.5 Ghz is equivalent to
3.5 billion clock cycles per second
What hardware factors improve overall performance of a computer?
Number of cores, size of cache and speed of clock can affect performance of CPU
How do you increase processor speed (but not necessarily overall performance)?
Increase clock speed
What happens if you increase Number of cores, size of cache and speed of clock?
Improve overall computer performance
Increasing clock speed is known as
overclocking
Overclocking higher than design limits leads to…
unsynchronised operations, crashing, overheating of CPU
If your computer has unsynchronised operations, crashing and overheating of CPU, what might be the cause?
Overclocking
Unlike RAM, cache memory is located in
the CPU
Cache memory has ______ access times than RAM
faster
What has faster access times than RAM
cache memory
What does cache memory store?
frequently used instructions and data
When a CPU wants to check memory, it checks ______ first then _____
cache first, then RAM
Larger cache memory =
better CPU performance
The use of a different number of ______ can improve computer performance
cores
One core is made up of an ____ , ____ ___ and _______
ALU, control unit and registers
What’s made up of an ALU, control unit and registers?
A core
Using more cores means less need to increase ______ ________
increase clock speed
What’s a factor in increasing the number of cores?
CPU needs to communicate with each one which can reduce performance
Unicode and ASCII code are _________ _____
character sets
What represent letters numbers and characters found on a standard keyboard?
Unicode or ASCII
Whats a disadvantage of ASCII?
Not suitable for most languages around the world
What character set code can represent all languages of the world?
Unicode
Unicode is…
universal, efficient, uniform, unambiguous, supports up to 4 bytes per character
Each sound wave has F______, W________, A___________
frequency, wavelength, amplitude
Amplitude =
loudness of sound
Frequency, wavelength and amplitude make up _______
sound waves
Sound is a____________
analogue
Sound waves need to be __________ to be stored in a computer
sampled
Sampling means measuring the ____________
amplitude
Sound conversion is done using
ADC (analogue to digital converter)
Sound waves cannot be measured precisely, so amplitude values are __________
approximate
Sampling happens at
regular time intervals
bits per sample =
sampling resolution / bit depth
Sampling rate =
number of samples per second (in hertz, Hz)
How is sampling used to record a sound clip?
amplitude is determined with sampling rate, each sample encoded as series of binary digits
Using more bits to sample amplitude =
more accuracy of sampled sound
Higher sampling rate or larger resolution =
better quality sound, larger file size
Name 3 drawbacks of larger sampling resolution when recording sound
larger file size, takes longer to transmit/download data, requires greater processing power
Name 3 benefits of larger sampling resolution when recording sound
larger dynamic range, better sound quality, less sound distortion
What has 16-bit sampling resolution and 44.1kHz sample rate?
CDs
Bitmap images are made of
pixels
pixel =
picture element
Each image is made up of a _________ matrix of pixels
two dimensional
Pixels are represented in
binary
Bitmaps are stored as a series of
binary numbers
Black and white images only require ______ per pixel
1 bit
In 2 bit pixels, each pixel can be
1 of four colours
Number of bits used to represent each colour is called
colour depth
8 bit colour depth means each pixel can be _____ colours
256
Modern computers have ___ bit colour depth
24
Image resolution means
number of pixels that make up an image
Lower image resolution means
Less image detail
Pixelated means
Fewer pixels to represent the image
Whats the main drawback of using high resolution images?
Increase in file size
URLs are made up of p_______, d_____ n_____ and w__ p_____ name
protocol, domain name and web page name
What are protocol, domain name and web page name part of?
URLs
What’s the first thing a user has to use to open a webpage
Browser
To get to a web page from a browser, you need to
type or click a link
What does DNS mean?
Domain Name Server
What does a DNS do?
Matches a URL to an IP address
What’s an example of an IPv4 address?
192.158.29.2
Why do we have URLs and IP addresses
Lots of IP addresses are too hard for humans to remember
What’s this? e.g. 192.464.55.2
IPv4 address
What’s an IP address?
Address of a computer on a network
What’s the address of a computer on a network?
IP address
What happens after the DNS has matched the URL to the IP address?
DNS sends IP address to browser
When the browser has the IP address, what happens next?
Requests data from the web server
What does a web server do?
Holds all the files and data for a web page
What holds all the files and data for a web page?
Web server
What does the web server do when it receives a request?
Sends the website data to the browser
What does a browser do?
Converts HTML code into text and images we can understand
What converts HTML code into text and images we can understand
Browsers
What requests data from a web server?
Browser
What’s an example of a browser?
Chrome, Safari, Edge, Firefox
What sends the website data to a browser?
Web server
How to calculate size of image file?
multiply image resolution and colour depth
How to calculate size of sound file?
multiply sample rate , resolution and length of track
How to calculate image resolution?
Multiply height by width in pixels
The output X is 1 if, input A is 1 AND input B is 0, or, input A is 0 AND input B is 1
XOR
The output X is 1 if, neither input A or B or both, are 1
NOR
The output X is 1 if, input A AND input B are NOT both 1
NAND
The output X is 1 if, both inputs A and B are 1
AND
The output X is 1 if, either input A or B, or both, are 1
OR
The output X is 1 if, the input A is 0
NOT
______ ______ check the output of a logic circuit
truth tables
What are cookies?
A text file (stored by web browser) that contains data about a user’s browsing habits/details/preferences
Everytime a user visits a website, the site checks if it has set _______ on their ________ before
Everytime a user visits a website, the site checks if it has set cookies on their browser before
What are small files or code sent from a webserver and stored on a users computer
Cookies
What are the two types of cookies?
Session and persistent
What are session and persistent types of ?
Cookie
Which cookie is temporary and don’t collect or store user information?
Session cookies
Name two facts about session cookies
Temporary, don’t store/collect user info
Which cookies cease to exist when a browser is closed?
Session cookies
Session cookies _____ to ______ when a browser is closed
cease to exist
What are session cookies used for?
Temporary shopping baskets
Which cookies are used for temporary shopping baskets?
Session cookies
____ cookies are stored on the hard drive of a users computer
persistent cookies
Which cookies have an expiry date or stay until deleted?
persistent cookies
Which cookies remain even after the browser is closed?
persistent cookies
What are persistant cookies used for?
Allow website to remember usernames, passwords, emails, baskets, preferences
What kind of user preferences do cookies hold?
language, currency, login
Describe data transmission
Signals transmitted from one device to another
Data transmission can either be over
long distance or short distance
Example of short distance data transmission
computer to printer over USB cable connection
Example of long distance data transmission
One computer to another in a global network (i.e. internet)
What are the 3 factors for data transmission to happen?
Direction of transmission, method of transmission and method of synchronisation
What is simplex
data sent in one direction only, example is computer to printer
What is half-duplex?
both directions but NOT at the same time, example is walkie-talkie
What is full-duplex?
Both directions at the same time, example is telephone call or online gaming
Both directions at the same time describes what?
Full-duplex data transmission
Both directions NOT at the same time describes what?
Half-duplex data transmission
One direction only describes what?
Simplex data transmission
Serial data transmission is…
when data sent one bit at a time over a single wire or channel. bits are sent one after another
Bit sent one after another, over a single wire or channel, one bit at a time describes what?
serial data transmission
serial data transmission can be ….
simplex, half-duplex or full-duplex
Serial advantages and disadvantages
Works well over long distance, data arrives synchronised. BUT slow.
Example of serial data transmission
computer to printer via USB
Parallel data transmission is…
several bits of data (usually a byte) sent down several wires or channels at the same time. Each wire transmits one bit.
Parallel data transmission can be…
simplex, half-duplex or full-duplex
Parallel data transmission advantages and disadvantages
works well over short distances. Fast. BUT over long distances data can become skewed and arrive out of order.
Example of parallel data transmission
Internal circuits in a computer
What does PDLC mean?
Programming development life cycle
What is the PDLC?
Steps that are followed when developing a program (e.g. smartphone app or website)
What are the steps in the PDLC?
Analysis / Design / Coding / Testing
In the PDLC - what is analysis?
First step, the process of understanding what exactly you need as inputs to ‘build’ your product and if you have enough resources.
In the PDLC - what is design?
Second step refers to thinking about the technical and visual aspects of your product.
In the PDLC - what is coding?
Third step, programming
In the PDLC - what is testing?
Testing a product to make sure it works as intended
In programming, what is the name for the process of hiding complex details and showing only what is necessary?
abstraction
In programming, What is the name of the process of splitting a problem into smaller, manageable chunks?
decomposition
What does abstraction mean?
the process of hiding complex details and showing only what is necessary
What does decomposition mean?
the process of splitting a problem into smaller, manageable chunks
What are the 3 parts that make up analysis?
decomposition, analysis, requirements identification
What is the name used for the specific needs of a problem that must be identified as part of the problem analysis?
requirements
Requirements dictate the ______ ______ to a program.
essential inputs
The design process involves which representations?
structure diagrams, flowcharts, pseudocode
Whare are structure diagrams?
Structure diagrams are used to represent sub-systems that make up a system. Each sub-system is also split into smaller sub-systems.
What are flowcharts?
Flowcharts indicates the inputs needed (requirements) and the processes to be followed (logic) that lead to the output (final outcome)
In a flowchart, what is the flow line?
Arrow representing control passing between the connected shapes
In a flowchart, what is the process shape?
Represents something being performed or done
In a flowchart, what is a subroutine?
Subroutine call that will relate to a separate flowchart
In a flowchart, what is an input/output?
Input or output of something into our out of the flowchart
In a flowchart, what is a decision?
A decision (yes/no, true/false) that results in two lines representing different outcomes
In a flowchart, what is a terminator?
Start and stop of process
Facts about pseudocode
Resembles code but can’t be understood by a computer // written for humans // easier for programmers to write and share since close to real code
Coding phase of PDLC is also referred to as
implementation phase, because implements design from previous stage
Program code is usually written in ____
IDE (integrated development environment)