Computer science Flashcards

1
Q

What is the purpose of an operating system

A

To manage hardware and run software

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the functions of an operating system

A

communicate with input and output devices through drivers
provides a user interface
manage system security and user accounts
organise CPU and its processing tasks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are some ethical issues of technology

A

some people don’t have enough money to buy smartphone- barred from opportunities

each country has a different level of tech- people in countries of lower tech will be barred from some opportunities

internet grants anonymity-causes anti-social behaviour

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are some legal issues of the internet

A

malware can be used to steal info from users and then sell that info without there permission

identity theft is more common

Pirating

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the pros of using compilers

A

translates the whole source code and the creates an executable file
only needed once to create an executable file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what are the cons of using a compiler

A

compiling takes a long time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the pro’s of using a interpreter

A

will return first error it finds- good for debugging

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the cons of using an interpreter

A

needed every time you want to run the program

program will run more slowly-code being translated as program is running

doesn’t create an executable file after one use-translates and runs code one line at a time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the pros of using high-level language

A

easier for humans to write and understand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what are the cons of high level language

A

it has to be translated into machine code for computer to understand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the pros of low level language

A

easier for machines to understand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what are the cons of low level language

A

harder for humans to understand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is an SMTP

A

simple mail transfer protocol- used to send and transfer emails

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a HTTPS

A

a version of HTTP that secures data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what is HTTP

A

hyper text transfer protocol-used by web browsers to access websites and communicate with websites

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is FTP

A

File transfer protocol- access edit and move files to another server/device

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is a relational database

A

a database with multiple tables that are linked.
Reduces the amount of times data repeats and data that don’t match

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What are some examples of data compression methods

A

Run length encoding
Huffman coding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is White box penetration

A

To simulate an attack from a malicious insider, who have knowledge of basic credentials example username and password.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is a penetration test

A

A penetration test is a simulated cyberattack carried by ethical hackers to find vulnerabilities in a system, website, mobile application, or network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What does wan stand for

A

Wide area network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What does WAN stand for

A

Wide area network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What does LAN stand for

A

Local area network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What does PAN stand for

A

Personal area network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is in a PAN network
blue tooth devices
26
What is Rom
ROM is a non volatile primary storage
27
What does non volatile mean
when the computer is turned off the stored items will still be kept
28
What is ROM used for
to store instructions and data that the computer needs to run
29
What is cloud storage
remotely accessed storage which is accessed through the internet
30
Adv of cloud storage
you can access your files from any location that has connection to the internet reduced need to make backups as the cloud already makes backups
31
Disadv of cloud storage
cloud storage hosts could be targeted by hackers people have less control over their data access to data is only possible with an internet connection - no connection means no access to data
32
What is the formula for calculating pixels
resolution **X** colour depth
33
what is the formula for calculating sounds
length **X** sample rate **X** bytes
34
What is sample resolution
the number of bits per sample
35
What is Abstraction
a technique that removes the unnecessary details so that you can focus on the important parts of a question
36
What is decomposition
When you break down a large problem into smaller manageable steps
37
What is selection
Selection is where a piece of code is only run if a condition is met
38
What is Iteration
Iteration is the repeated execution of a section of code when a program is running.
39
What is algorithmic thinking
a way of solving problems by producing algorithms
40
What are sort algorithms
a set of instructions used to arrange a data set into a particular order
41
What does Boolean represent
True or false basically just one of two values
42
What are the factors that affect CPU speed
clock speed Cache size Cache type how many cores the CPU has
43
What is Secondary storage
Storage that is directly connected to the CPU
44
Why is Secondary storage needed
Needed so there is long term storage is available
45
How is data stored in an optical disk
Binary data is stored as variations of height on the disks surface
46
How is data read on Optical storage
Light is shined on the disk and is reflected back differently when it either hits a flat piece of the disk (land) or a divot in the disk. The way the light reflects back decides if the value will either be read as a one or a zero
47
What are the pros of optical storage
it is fairly reliable and durable and has good portability
48
What are the cons of optical storage
can be easily damaged through scratches Has a small capacity usually less than a GB
49
How does magnetic storage work
As the disk is spinning, a read/write head containing electro magnets moves across its surface. To write data, the head magnetizes or demagnetizes a section of the disk that is spinning under it. To read data, the head makes a note of whether the section is magnetized or not. parts of the surface is either magnetized (1) or demagnetized (0) the heads control this and read what state they are in
50
What are the pros of magnetic storage
Large capacity Cheap
51
What are the cons of Magnetic storage
Not that durable Generally not that portable can be noisy and generate heat
52
What is solid state storage
Solid state storage is a special type of storage made from silicon microchips. It can be written to and overwritten like RAM. However, unlike RAM, it is non-volatile, which means that when the computer's power is switched off, solid state storage will retain its contents.
53
What are the cons of SSD's
Expensive Generally have a smaller capacity than magnetic
54
What are the pros of SSD's
Very fast storage- because the data is stored electrically in silicon chips called cells. Very reliable as they're non-mechanical Don't need defragmentation Are silent
55
What is an Embedded system
A special purpose computer encapsulated in a larger computer
56
What are the qualities of embedded systems
Can only perform a specific task Can not be easily programmed
57
What are some examples of embedded systems
Cockpits in a plane Systems such as braking systems in a car Embedded systems in hospital devices
58
What is a bus
a collection of wires through data is transmitted
59
Why is the width of a bus important
The the width of a bus is how many bits it can transfer at a time
60
What is the purpose of the address bus
Sends a memory address along the CPU to the main memory. To fetch/write data the CPU needs to tell the ram where the Data is through the address of the data
61
What is the purpose of the data bus
A data bus sends the actual data to and from the memory
62
What is the purpose of the control bus
Control bus carries commands from the CPU and status messages from other hardware devices.
63
What is the ALU
The circuit that performs the operations on the data
64
What is the control unit
The circuits coordinating the activities of the CPU
65
What are registers
Quick small stores of data within the cpu
66
what is the purpose of the control unit
The control unit controls the flow of data. It also keeps track of memory addresses of the instruction each cycle
67
What is the purpose of the ALU
The ALU gets data from the registers and CU, performs an operation on it, and sends the output back to the registers
68
What is the purpose of the registers
The registers hold any data, instructions and memory addresses that are about to be used by the CPU. There are specific registers for different tasks, E.G. one that holds data that is about to be used by the CPU
69
What is the purpose of the clock
The clock sends out a signal that constantly cycles between one and zero - which is used to synchronize when instructions will be carried out
70
What is cache
Very fast memory in the CPU. It's slower than the registers but faster than Ram The bigger its cache, the less time a processor has to wait for instructions to be fetched.
71
What is the purpose of Cache
Stores regularly used data so that the CPU can access it quickly the next time its needed
72
What is the Purpose of ROM
The purpose of ROM is to hold the instructions needed for a computer to properly boot up
73
What does the CPU do with the ROM when the computer boots up
The CPU reads instructions from the ROM telling it to perform self checks and setup the computer
74
What is the purpose of RAM
Ram is where all data, Files and programs are stored while there being used - for example when a computer boots up the operating system is moved from secondary storage to RAM as its quicker.
75
What are graphical user interfaces
GUIs feature a desktop where everything is displayed. Applications run in Windows, and all objects (apps, hardware and files) are represented by icons. Application features are accessible through the use of menus. Users interact with the interface by using a mouse and on-screen pointer.
76
What are the pros of graphical user interfaces
GUIs are powerful and easy to use
77
What are the cons of graphical user interfaces
require a lot of processing power.
78
What are mobile user interfaces
Mobile UIs are similar in many ways to GUIs, except that they respond to touch.
79
What are command-line interfaces
Command line interfaces are text-based. Users control the computer by typing in commands.
80
What are the pros of command line interfaces
CLIs require little processing power and are extremely powerful
81
What are the cons of command line interfaces
they are difficult to use
82
What does multi tasking mean
Multitasking means to be able to run more than one program simultaneously
83
What must a computer have to be able to multi- task
the operating system can support multitasking the computer has enough memory to hold more than one program in primary memory at the same time
84
What are device drivers
Software that controls and communicates with peripherals
85
What are the advantages of device drivers
any device can be used with the operating system, as long as a driver is available for it drivers can be updated, usually to give better performance or to remove a bug
86
What are cores in a CPU
A processing unit within a CPU is known as a core. Each core is capable of fetching, decoding and executing its own instructions. The more cores a CPU has, the greater the number of instructions it can process in a given space of time.
87
What is clock speed
Clock speed is the number of pulses the central processing unit's (CPU) clock generates per second. It is measured in hertz.
88
What is over clocking
CPU clocks can sometimes be sped up slightly by the user. This process is known as overclocking. The more pulses per second, the more fetch-decode-execute cycles that can be performed and the more instructions that are processed in a given space of time.
89
What are the cons of over clocking
Overclocking can cause long term damage to the CPU as it is working harder and producing more heat.
90
What are the key elements of von-Neuman architecture
data and instructions are both stored as binary. data and instructions are both stored in main memory. instructions are fetched from memory one at a time and in order - serially. the processor decodes and executes an instruction, before cycling around to fetch the next instruction. the cycle continues until no more instructions are available.
91
What is von-Neuman architecture
A description of the processing architecture that all CPUs use. John von Neumann invented the processor architecture which stores a program in memory as instructions and executes them sequentially using the ALU, control unit and registers. This is known as the stored program concept.
92
What five registers does a processor based on von-Neuman architecture have
Program counter (PC) - holds the memory address of the next instruction to be fetched from main memory. Memory address register (MAR) - holds the address of the current instruction that is to be fetched from memory, or the address in memory to which data is to be transferred. Memory buffer register (MBR) - holds the contents found at the address held in the MAR, or data which is to be transferred to main memory. It is also referred to as the memory data register (MDR). Current instruction register (CIR) - holds the instruction that is currently being decoded and executed. Accumulator (ACC) - holds the data being processed and the results of processing.
93
What is a network topology
A network's topology is the arrangement, or pattern, in which all nodes on a network are connected together.
94
What are the most common topologies
bus topologies star topologies
95
What are bus topologies
A network layout where all nodes are connected along a linear link/backbone known as a bus.
96
What are star topologies
A network where each node is connected to a central switch.
97
What is a node
Any device connected to a network.
98
disadvantages of using a bus topology
the whole network fails if the backbone cable is broken terminators must be installed at each end of the backbone having one backbone increases the chances of data collision
99
Advantages of using a bus topology
it is easy to connect nodes to the network less cabling is needed compared to a star topology, making it cheaper to install
100
Advantages of using a star topology
each node is separately connected, therefore a failure of one node or its link - transmission media - does not affect any other nodes new nodes can be added to the network simply by connecting them to the switch star networks tend to have higher performance as a message is passed on to its intended node only
101
Disadvantages of using a star topology
the whole network fails if the switch fails as no node can communicate a wired star topology requires plenty of cable - in a large network this can be expensive
102
What are the four layers in an network
Application layer Transport layer Network layer Data link layer
103
What operates at the application layer
applications such as web browsers and email programs operate at this layer. Protocols such as HTTP, HTTPS, SMTP, IMAP and FTP operate at this layer.
104
What operates happens at the transport layer
this breaks down the message into small chunks (packets). Each packet is given a packet number and the total number of packets. This layer sets up the communication between hosts, using protocols such as TCP and UDP.
105
What happens at the network layer
this adds the sender’s and recipient’s IP addresses to the packet, and packages the data to make it ready for transmission. The network layer also routes the packets across the network.
106
What is at the data link layer
the network interface card/controller (NIC) and operating system drivers are at this layer.
107
Advantages of using networks
file sharing - users can share files with other users hardware sharing - users can share hardware, such as a printer communication - users can communicate via email, chat, or by video roaming access - users can sign in to any computer on the network and be able to access their files centralised maintenance and updates - network managers can apply software updates across a network, removing the need for a user to worry about having to do so centralised security - anti-virus software and firewalls can be implemented across a network, helping to protect user files from risks user monitoring - network managers can monitor what users do on a network levels of access - different users can be given different access rights, and this gives network managers the ability to generally restrict user access to certain files, while granting permission to specific users
108
Disadvantages of networks
cost - additional equipment is needed to allow computers to communicate management - networks require management by technical staff such as a network manager spread of malware - viruses and other forms of malware can easily spread across an improperly secured network hacking - once a device is connected to another device, it is possible that data may be accessed without the device owner's permission
109
What is LAN
A local area network (LAN) is a network that is geographically confined to one building or site. Examples include networks employed by small businesses, small organizations, schools, colleges, universities and in homes.
110
What are WAN's
A wide area network (WAN) is a network that is spread over a wide geographical area. It can cover more than one site, or be spread across a country, or even the world.
111
What are PAN's
A personal area network (PAN) is a network that is spread over a very small area. It often covers no more than a few metres and is used to connect personal devices such as a smartphone and wireless headphones or a laptop.