complete CS (mocks + security)

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/355

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

356 Terms

1
New cards

what does CAD stand for

computer aided design

2
New cards

what is CAD

use of computer software to design new products in 3D, sent to CAM machines

3
New cards

what does CAM stand for

computer aided manufacture

4
New cards

what is CAM

using computers to control machines to produce goods

5
New cards

why is CAM better than human

fast, accurate and can continue working 24/7 (humans need rest)

6
New cards

but…

machines can go wrong, servicing of equipment, can break

7
New cards

CAM is also good (for sustainability reasons…)

can reduce waste of materials

8
New cards

what is additive manufacturing, example

building it one _____ at a time

creating an object by building it one layer at a time, 3D printingwhat

9
New cards

what is subtractive manufacturing, example

creating an object by cutting away at a solid block of metal

10
New cards

digital values are ____

discrete

11
New cards

binary:

1 represents a ___ ____

0 represent a ____ _____

1 - high voltage

0 - low voltage

12
New cards

how to convert binary to denary

  • Starting from the rightmost digit (least significant bit), assign powers of 2.

    • The rightmost bit is 202^020, the next is 212^121, then 222^222, and so on.

  • Multiply each binary digit (0 or 1) by its corresponding power of 2.

    • Add up all the results.


<ul><li><p>Starting from the <strong>rightmost digit</strong> (least significant bit), assign powers of 2.</p><ul><li><p>The rightmost bit is 202^020, the next is 212^121, then 222^222, and so on.</p></li></ul></li><li><p>Multiply each binary digit (0 or 1) by its corresponding power of 2.</p><ul><li><p>Add up all the results.<br><br><br></p></li></ul></li></ul><p></p>
13
New cards

convert 10110110 into denary

knowt flashcard image
14
New cards

how to convert denary to binary (small numbers) e.g. 15

  1. write out powers of 2

  2. write 1 under biggest power that can fit into denary number

  3. same for remainder

<ol><li><p>write out powers of 2</p></li><li><p>write 1 under biggest power that can fit into denary number</p></li><li><p>same for remainder</p></li></ol><p></p>
15
New cards

how to convert denary to binary (larger numbers) e.g.185

  1. by 2 and note the remainders:

  2. Write the remainders from bottom to top

<p></p><ol><li><p>by 2 and note the remainders:</p></li><li><p>Write the remainders from <strong>bottom to top</strong></p></li></ol><p></p>
16
New cards

convert 228 into binary

knowt flashcard image
17
New cards

write out conversion table for den/hex/bin

knowt flashcard image
18
New cards

how to convert hex to denary (by positional value) e.g. 38B

knowt flashcard image
19
New cards

how to convert hex to binary (by positional value) e.g. 38B

knowt flashcard image
20
New cards

how to convert binary to hex (by nibbles) e.g. 011111010010

knowt flashcard image
21
New cards

how to convert denary to hex e.g. 23

  • Divide 23 by 16:

    • 23÷16=1 remainder 7.

    • (7÷ (16^0 so 1)) = 7

  • Write the result:

    • Quotient = 1, Remainder = 7.

  • Combine the digits: 17 (Hexadecimal).

<ul><li><p>Divide 23 by 16:</p><ul><li><p>23÷16=1 remainder 7.</p></li><li><p>(7÷ (16^0 so 1)) = 7</p></li></ul></li><li><p>Write the result:</p><ul><li><p>Quotient = 1, Remainder = 7.</p></li></ul></li><li><p>Combine the digits: <strong>17 (Hexadecimal)</strong>.</p></li></ul><p></p>
22
New cards

how to convert denary to hex e.g. 458

  1. write out powers of 16, as many digits as denary number

  2. how many 162 fit into 458, 458÷256 = 1, remainder 202

  3. how many 161 fit into 202, 202÷16 = 12, remainder 10

  4. so you have 1, 12 (C in hex), and 10 (A in hex)

  5. 1CA

<ol><li><p>write out powers of 16, as many digits as denary number</p></li><li><p>how many 16<sup>2  </sup>fit into 458, 458÷256 = <strong>1</strong>, remainder 202</p></li><li><p>how many 16<sup>1 </sup>fit into 202, 202÷16 = 12, remainder 10</p></li><li><p>so you have 1, 12 (C in hex), and 10 (A in hex)</p></li><li><p>1CA</p></li></ol><p></p>
23
New cards

binary addition rules (each combo for 1, 0)

  • 0 + 0 = 0

  • 1 + 0 = 1

  • 1 + 1 = 10

  • 1 + 1 + 1 = 11

carry over

24
New cards
<p></p>

knowt flashcard image
25
New cards

4 reasons to use hex

  • less display space, faster to enter data (16 bytes as just 4 hex digits)

  • EASIER to identify values

  • EASIER to spot errors

  • (more human friendly)

  • easier to convert back to binary if necessary

26
New cards

4 uses of hex

  • colour coding e.g #FFFFF

  • low level programming (e.g. assembly): quicker, easier, less error prone

  • addresses: both IP and MAC (IPv6 uses hex)

  • error messaging: in embedded systems e.g. lifts, bc hex takes up less screen space than long binary strings

27
New cards

what are the 4 logic gates

NOT
AND
OR
XOR

28
New cards

NOT gate symbol and truth table

29
New cards

AND gate symbol and truth table

knowt flashcard image
30
New cards

OR gate symbol and truth table

at least one:

<p>at least one:</p>
31
New cards

XOR gate symbol and truth table

Exclusive or (only 1)

<p>Exclusive or  (only 1)</p><p></p>
32
New cards

define validation:

automatic checking of data to ensure only possible, sensible, reasonable data is accepted

33
New cards

describe: range

number must be in a specified range

34
New cards

length

length of inputted characters must match specified number of characters

35
New cards

type

data inputted must be of correct data type

36
New cards

look-up

a specific character must be included

37
New cards

format

data must be incorrect format e.g. 2 characters then 6 integers, etc.

38
New cards

presence

ensures some data has been entered

39
New cards

uniqueness

to check data entered is unique within a system

40
New cards

generic steps for systems approach (3 words)

input → process → output

41
New cards

what is an input device

input device takes a real world signal (e.g. light, temperature), turns it into an electronic signal (e.g. current, voltage)

42
New cards

what is an output device

output devices turn an electronic signal into a real world signal (e.g. light, sound, movement)

43
New cards

example of input vs output devices:

input: LDR, thermistor, switches

output: LEDs, sound devices

44
New cards

define driver

to what exactly does it tell

a small program which tells an operating system how to respond to a particular hardware that is attached to the sustem

45
New cards

when is a driver needed + how does it help

when a process device can’t provide a high enough signal for the output device to work correctly

drivers us transistors to amplify current or to control the direction of the movement of the motor

46
New cards

explain how a closed loop feedback system works, and example

the output signal of a central heating system has a direct effect on the input

e.g. central heating system:

output signal (temperature) is fed back into input, so that the system knows when to turn the heater off

47
New cards

what is a transducer

any device that converts between an electrical quantity and a real-world quantity.

48
New cards

what does a sensor do

known as what kind of transducer

input device which detects real-world quantities, then converted into an electrical signal

real world quantity, e.g. sound, light

input transducer

49
New cards

what does an actuator do

takes an electrical signal and converts it into a physical form

e.g. motor, speaker

output transducer

50
New cards

analogue signals cover all the ____ number of different voltage values

infinite

51
New cards

any digital systems needs signals from sensors to be translated to ____ signals before they can be processed

what does this

digital signals

ADCs

52
New cards

what does ADC stand for

analogue to digital converters

53
New cards

what do ADCs do/how does it work

devices which take samples of continuous analogue signals and encode the samples into discrete binary code

54
New cards

diagram, unofficial

knowt flashcard image
55
New cards

if the ADC is located outside the sensor, the sensor is _____

analogue

56
New cards

if the sensor has the ADC built into it, it is a ______ sensor

digital

57
New cards

alternate definition for actuator (movement)

mechanical output devices that produce movement

58
New cards

directions of data transmission (3)

simplex: one direction. sending or receiving data from a device

DATA ONLY GOES ONE WAY

duplex: sending data to and from devices

(BOTH DIRECTIONS, BUT ONLY ONE AT A TIME)

full duplex: BOTH DIRECTIONS AT THE SAME TIME

59
New cards

define interface

a point at which two computer systems communicate

60
New cards

what is a serial interface

allows serial communication between a microcontroller to a microcontroller/processor using a SERIAL cable

(one wire to transmit, one to receive)

61
New cards

define serial communcation

the process of sending data one bit at a time, sequentially, over a single communication channel

62
New cards

what is SYNCHRONISED communication

each bit is synchronised to the oscillations of an on board clock

(continuous stream of data)

63
New cards

steps for synchronised serial communication:

  1. bits into bytes

  2. when are timing signals sent/with what

  3. speed? and so example of when used

  1. receiver counts how many bits were sent and reassembles the bits into bytes

  2. timing signals are sent WITH the data

  3. FAST as only data bits are sent (so used when speed is important e.g. network connections)

64
New cards

asynchronous serial communication: how is data packaged

how are they sent across

sent as a packet

files are broken up into many packets and reassembled at the receiving endd

65
New cards

what is the format of a packet

a frame:

contains all info required to interpret data at the receiving end

66
New cards

what do communicating devices agree on their protocol before transmission:

bit pattern and bit rate (bit’s per second)

what does this mean for speed

slightly slower than synchronous

67
New cards

what does usb stand for

universal serial bus

68
New cards

advantages of USB and USB-C (3, 3)

disadvantages (2)

  • fits/works both ways

  • can run basically any modern protocol

  • more power than older USB

  • lots of compatibility

  • very fast data transmission

  • automatically detects if the correct driver is installed

  • max cable length only 5 metres

  • older standard becoming obsolete

69
New cards

why is serial transmission reliable

  • bits stay in the correct order, less skewed/unsynchronised data as only 1 wire is used

70
New cards

define parallel communication

several bits are sent at the same time, on a link with several channels in parallel with each other

71
New cards

serial vs parallel (2)

  • parallel faster than serial

  • but parallel is not reliable over long distances, so mainly found on very short communication channels of printed circuit boards (where channels are fixed in positions and synchronisation is likely to be undisturbed)

    • there may be signal degradation, timing issues so data is wrongly aligned, etc.

72
New cards

what provides the timing for parallel

  • oscillations of the system clock

73
New cards

define port, hardware, software

hardware: connection point/interface between a computer and an external or internal hardware device

software: a virtual point where network connections start and end

74
New cards

define protocols

set of rules for communication between devices

75
New cards

what is the baud rate

how fast data is sent over a serial line

(if it goes too high you might get errors)

76
New cards

what is parity checking

basic principle: something to do with the bits being total even or odd idk

used in data transmission to check for errors: if parity is incorrect, an error is detected

77
New cards

what is the time to live variable/what does it do?

  • limits ____

  • prevents ____ from circulating _______ly

  • determines when data should _____

TTL (Time To Live) is a value that limits how long a piece of data should exist or be considered valid. It's commonly used in networking to prevent packets from circulating indefinitely and in caching to determine when data should expire.

78
New cards

a microcontroller is a ____, ____ purpose computer. they can do how many things?

a microcontroller is a TINY, SINGLE PURPOSE

they can do ONE thing well

79
New cards

microcontrollers are ______ in some other device. so a microcontroller can be called an _____ ______

EMBEDDED in another device

EMBEDDED CONTROLLER

80
New cards

microcontrollers are ____ to one task and run one specific program.

where is this program stored, does it change?

dedicated to ONE TASK/PROGRAM

stored in ROM

does not change

81
New cards

microcontrollers are often ___-power devices

LOW POWER

82
New cards

a microcontroller often has what two dedicated devices:

input device and output device

83
New cards

microcontroller size and cost?

small and low cost

84
New cards

microcontroller features (6)

  • small

  • low cost

  • low power

  • often has dedicated input/output device

  • dedicated to one task, run one specific program stored in ROM (doesn’t change)

  • often embedded inside another device (e.g. washing machine)

85
New cards

what does the CPU of a microcontroller have in it

everything:

  • EEPROM, timer, CPU, RAM, ROM, input/output

86
New cards

analogue vs digital

analogue: continuous signals

digital: discrete signals

87
New cards

hard disk storage stores data/instructions in the ___ term

LONG TERM

88
New cards

a microprocess is used in a ____ purpose computer, how many programs can it run

general purpose computer, can run thousands of programs

89
New cards

the central chip of a microprocessor has how many peripheral chips

several

90
New cards

what do microprocessors use to control/manage multiple processes at the same time. e.g. on computers

operating system

91
New cards

microcontroller vs microprocessor - 2

microprocessor can run thousands of programs, microcontroller just one

microprocessor has several peripheral chips, microcontroller has everything embedded in the CPU

microcontroller

92
New cards

The Data Science Cycle

Steps in order:

  1. Problem Formulation

  2. Getting Data

  3. Exploring Data

  4. Analysing Data

  5. Communicating Results

93
New cards

Problem Formulation

Start with questions or explore data to find patterns

94
New cards

Getting Data

Import CSV (Comma-Separated Values) files and clean up messy/missing data

95
New cards

Exploring Data

Look for patterns and create basic plots to understand your data

96
New cards

Analyzing Data

Find connections between variables and test your questions

97
New cards

Communicating Results

Create clear visuals and explain findings for your audience

98
New cards

.read_csv()

Import CSV files into Python

99
New cards

.describe()

Get quick statistics about your data

100
New cards

.groupby()

Organize data by categories for comparison