compsci

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/191

flashcard set

Earn XP

Description and Tags

mreow

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

192 Terms

1
New cards

Hexadecimal

A base-16 numeral system that uses sixteen distinct symbols: 0-9 and A-F.

2
New cards

Why use hexadecimal?

Hexadecimal allows representation of 16-bit words with only 4 digits, taking less display space, and is quicker to enter.

3
New cards

Hexadecimal in color coding

Colours in web design are often represented in hexadecimal format, where # indicates a colour code, e.g., #FFFFFF for white.

4
New cards

MAC Address

A Media Access Control address is used to uniquely identify devices on a network, formatted as six pairs of hexadecimal digits.

5
New cards

IPv6

Internet Protocol version 6 uses hexadecimal addressing to provide enough unique addresses for every networked device.

6
New cards

Hexadecimal in programming

Hexadecimal simplifies low-level programming by making it easier to reference memory addresses compared to long binary strings.

7
New cards

Error messaging

Hexadecimal error codes are used in embedded systems for compact display on small screens, aiding in troubleshooting.

8
New cards

Conversion from hex to binary

Hexadecimal digits can be easily converted back to binary, facilitating data representation.

9
New cards

Color intensity in hex

The value of hexadecimal numbers represents color intensity in web design, allowing a full spectrum of colors.

10
New cards

Software

A set of programs/instructions written in a programming language performing 1 or more tasks to tell the computer what to do. It allows the computer to function.

11
New cards

Hardware

The physical and peripheral components of a computer.

12
New cards

Firmware

A software permanently stored on the hardware/ROM which contains instructions allowing the hardware to function and communicate with software.

13
New cards

Bootloader

A small piece of firmware containing the instructions to start up the operating system; it loads the OS onto the RAM upon startup.

14
New cards

How do applications access hardware resources?

Through making 'calls' to the OS and the device drivers.

15
New cards

System software

The manager: A variety of programs which are necessary for the computer to function and manages the operation of computer hardware and software.

16
New cards

Application software

The software which the user needs to perform specific tasks using the computer's resources.

17
New cards

Operating system

The platform in which other programs/applications are run on. Also provides the user with a human computer interface.

  • Allocates the hardware's resources
18
New cards

Utility Software (MMC)

Manages, maintains, and controls the computer's resources. It makes sure everything runs smoothly.

19
New cards

Interrupts

A signal sent from a device or a software to the OS which causes a temporary stop in the current instruction being processed to service the interrupt.

20
New cards

What are interrupts sent through?

Interrupt Request Lines (IRQ)

21
New cards

What are interrupts sent to?

The interrupt handler in the OS to perform the Interrupt Service Routine (ISR)

22
New cards

Examples of Interrupts

  • Dividing by 0
  • Hardware faults like no paper in printer
  • Hardware interrupts like keyboard presses
23
New cards

High Level Language (HLL)

Programming language written in a language (like English) that humans understand. It is a portable language which can be used on multiple platforms (machine independent).

24
New cards

Low-Level Language (LLL)

Programs written for a specific type of architecture and hardware. It is non-portable and machine dependent.

25
New cards

Advantages and Disadvantages

  • Debug ease
  • Hardware (directly manipulates or machine independent)
  • Ease of writing/understanding
  • Memory space taken up (1 line = 1 machine or many lines of abstraction?)
  • Speed of execution
26
New cards

Assembly language

A low-level language, it uses mnemonics to specifically manipulate hardware. 1 line of assembly language translates to 1 line of machine code.

  • Difficult to debug

  • Mnemonics

  • Directly manipulates hardware

    Ex. Bootstrap in ROM

27
New cards

Assembler

Translates assembly language into machine code. Assembly language generally takes up less memory space than high level languages.

28
New cards

Advantages of Assembly language

  • Uses less space in memory
  • Faster processing speed
  • Therefore is more efficient overall
  • Directly manipulates hardware
29
New cards

What is a compiler?

A compiler is a software program that translates source code written in a high-level programming language into machine code that can be executed directly by a computer.

  • Compiles and translates the entire file at once
  • Produces an executable file specific to computer architecture
  • If a syntax error is encountered, the compiler doesn’t produce an executable file, and sends out an error report
30
New cards

What is an interpreter?

A software program which translates high-level language into machine code line-by-line

  • If a syntax error is encountered, it stops translating at that line and sends out an error report
  • Code must be retranslated each time it is run
31
New cards

Advantages of a compiler

  • Produces an executable file, so users can’t see or edit the source code for stealing
  • Only needs to be translated once, so it’s faster to run
  • User doesn’t need to have interpreter installed to execute the code
32
New cards

Advantages of an interpreter

  • Faster and easier to debug during the development process, as users can clearly see where the error was made
33
New cards

Integrated development environment (IDE)

A program which allows users to write, debug, and translate code

Consists of: Prettyprint, Run-time environments, Code editors, Autocomplete and autocorrect, Translators, and Error Diagnostics

34
New cards

Code editors

Used to write and edit program code

  • Makes the code clearer, to make editing easier for programmers
  • Prettyprint, Syntax highlighting, Indentation, Line numbers, Autocorrect and complete
35
New cards

Run-time environments

The facility of the IDE which runs programs

  • Allows users to test code
  • Gives useful reports as to errors or program crashes
36
New cards

Prettyprint

Applying formatting and indentation to make the code easier to read

37
New cards

Error Diagnostics

A list of errors and their line numbers reported after testing

  • Helps find mistakes made by the programmer. 
  • Errors are identified along with the line number.
  • The code may be underlined or highlighted.
38
New cards

Auto correct

Replaces/corrects any grammatical errors or variable names which have minor typing errors

39
New cards

Autocomplete

Provides a drop down list of variables/possible choices to complete keywords/variables

40
New cards

Translators

Allows the user to run the code using compilers and interpreters

41
New cards

What does the system software do?

  • Helps maintain good working order of the computer so it runs without problems.
  • Provides a platform to run other software. 
  • Controls allocation and usage of hardware resources

Provides a Human Computer interface (HCI)

42
New cards

CPU architecture

  • processor (consists of the ALU)
  • control unit (controls operation of the memory, processor and input/output devices)
  • ALU (carries out logic systems)
  • system clock (used to produce timing signals on the control bus)
43
New cards

Busses

  • carries data through components
  • address bus (unidirectional)
  • data bus (bi-directional)
  • control bus (unidirectional and bi-directional)
44
New cards

Immediate access store

holds data and instructions when they are loaded from the main memory and waiting to be processed

45
New cards

Current Instruction Register (CIR)

  • increments value of instructions by 1
  • fetches the data and instructions
46
New cards

Memory Address Register (MAR)

  • stores address of instruction, copies it and sends to the MDR
47
New cards

Memory Data Register (MDR)

  • stores data from address received from the MAR
  • sends it to the CIR
48
New cards

Program Counter (PC)

  • increments value of instructions by 1
  • fetches the data and instructions
49
New cards

Accumulator

  • during calculations, data is temporarily held in it
50
New cards

Fetch-decode-execute cycle

  1. PC contains address of next instruction
  2. address copied from MAR via address bus
  3. fetched instruction temporarily stored in MDR
  4. instruction moved from MDR to CIR
  5. PC incremented by 1 for next instruction
  6. fetched instruction decoded and executed
51
New cards

System clock

controls the speed at which instructions are processed

52
New cards

Clock speed

dictates how many instructions the CPU can process each second

53
New cards

Issues of increasing clock speed

  • operations become unsynchronised and computer can crash
  • overheating of CPU
54
New cards

Cache memory

memory that is used to store recently accessed or frequently accessed data so that the CPU can retrieve it quickly

55
New cards

Advantages of using many cores

faster performance

56
New cards

Disadvantages of using many cores

multiple cores attempt to access or modify the same data at the same time, causing delays due to contention

57
New cards

Embedded systems

Special-purpose software designed and included inside a larger system

58
New cards

Input devices

enable the user to input data and commands into the computer

59
New cards

Examples of input devices

  • 2D scanners
  • 3D scanners
  • mouse/trackball
  • microphones
  • touchscreens (capacitative, infra-red, resistive)
  • sensors
60
New cards

Sensors

  • acoustic: sound
  • accelerometer: acceleration
  • flow: fluid movement
  • gas: gas concentration
  • humidity: moisture level
  • infra-red (active): amount of infrared light
  • infra-red (passive): heat emission
  • level: position or quantity
  • light: brightness
  • magnetic field: magnetic strength
  • moisture: water content
  • pH: acidity or alkalinity
  • pressure: force per unit area
  • proximity: object detection
  • temperature: hotness or coldness
61
New cards

Control of street lighting

  • light sensor sends data to ADC
  • digitises data and sends it to microprocessor
  • microprocessor samples data every minute
  • if data from sensor < value stored, signal is sent from microprocessor to street lamp, lamp is switched on
62
New cards

Output devices

  • actuator
  • inkjet printer
  • laser printer
  • liquid crystal display (LCD) screen
  • light emitting diode (LED) screen
  • digital light processing (DLP) projector
  • liquid crystal display (LCD) projector
  • speaker/headphone
  • 3D printer
63
New cards

Inkjet vs. laser printer

Inkjet printer:

  • uses liquid ink sprayed onto the paper through tiny nozzles
  • good for printing high-quality colour images and photos
  • slower printing speed
  • ink cartridges may need frequent replacement

Laser printer:

  • uses toner powder fused onto the paper using heat and pressure
  • ideal for printing text-heavy documents
  • faster printing speed
  • toner cartridges last longer than ink cartridges
  • generally better suited for printing in high-volume
64
New cards

LCD vs LED monitors

LCD:

  • uses liquid crystal display technology
  • requires a separate backlight
  • thicker and heavier
  • lower energy efficiency
  • limited colour accuracy and viewing angles

LED:

  • uses light-emitting diode technology for backlighting
  • thinner and lighter
  • higher energy efficiency, often consuming less power
  • improved colour accuracy and wider viewing angles
  • more durable
65
New cards

Primary storage

  • directly accessed by the CPU
  • e.g. RAM, ROM, cache memory
66
New cards

Secondary storage

  • not directly accessed by the CPU
  • e.g. HDD, SSD, DVD, memory stick, Blu-ray disc
67
New cards

Off-line storage

  • can be physically moved away from a device and stored somewhere else
  • e.g. CD/DVD, Blu-ray disks, USB flash memories, cloud storage
68
New cards

Random Access Memory (RAM)

  • data that needs to be stored or accessed immediately
  • volatile
  • used to store data and files
  • can be written to or read from and can be changed
  • larger RAM size, faster computer
  • if RAM becomes full, processor has to overwrite old data on RAM
69
New cards

DRAM vs. SRAM

DRAM:

  • needs to be constantly refreshed
  • less expensive to manufacture
  • higher memory capacity
  • consumes less power

SRAM:

  • doesn't need to be constantly refreshed
  • faster data access time
70
New cards

Read Only Memory (ROM)

  • non-volatile
  • used to store start-up instructions
  • can only be read and cannot be changed
71
New cards

Virtual memory

  • space on a hard disk or other storage device that simulates RAM
  • HDD or SSD
72
New cards

Magnetic storage

  • uses platters which are divided into tracks and sectors
  • date is read and written using electromagnets
  • e.g. HDD
73
New cards

Optical storage

  • moving lasers shone at disk to create and read pits and lands

  • e.g. - e.g. CD/DVD, Blu-ray disks

74
New cards

Solid-state (flash memory)

  • uses NAND or NOR technology
  • transistors are used as control gates and floating gates
  • e.g. SSD
75
New cards

Cloud storage

  • same data is stored on more than one server in case of maintenance or repair
  • can be accessed remotely in comparison to storing data locally
76
New cards

Network Interface Card (NIC)

allows a device to connect to a network

77
New cards

Media Access Control (MAC)

  • NIC is given a MAC address at the point of manufacture
  • usually written as hexadecimal
  • created using the manufacturer code and the serial code
78
New cards

Internet Protocol (IP)

  • protocol for sending data across the internet that assigns unique numbers to each connected device
79
New cards

Static vs. dynamic IP

Static IP addresses:

  • assigned manually to a device
  • does not change over time

Dynamic IP addresses:

  • assigned automatically to a device
  • changes periodically or when device connects to a different network
80
New cards

IPv4 vs. IPv6

IPv4:

  • widely used protocol

IPv6:

  • removes the risk of IP address collisions
  • has built-in authentication checks
  • allows for more efficient packet routes
81
New cards

Router

  • sends data to a specific destination on a network
  • can assign IP addresses
  • can connect a local network to the internet
82
New cards

Binary system

a number system with base 2

83
New cards

Denary system

a number system with base 10

84
New cards

Hexadecimal

a number system with base 16

85
New cards

'A' in hexadecimal system is _ in denary

10

86
New cards

Overflow

error where the number of bits is not enough to hold the solution

87
New cards

Logical shifts

moving a binary value to the left or to the right, emptied bit is 0

88
New cards

Two's complement

method used to present negative values in binary

89
New cards

MSB is replaced from ______ to ______ in two’s complement

128 to -128

90
New cards

Uses of hexadecimal system

  • defining colours in HTML
  • MAC addresses
  • IP addresses
  • assembly languages and machine code
  • debugging
  • display error codes
  • memory dumps
91
New cards

ASCII

7-bit code that represents letters, numbers and characters found in a standard keyboard as well as 32 control codes

92
New cards

Unicode

character code that enables most of the languages of the world to be symbolised with a special character identification

93
New cards

How is sound recorded?

  • amplitude of sound wave is determined at set time intervals
  • value is converted into digital form
  • each sample is encoded as a series of binary digits
  • series of readings gives the approximate sound wave
94
New cards

Sampling resolution (bit depth)

number of bits per sample

95
New cards

Increasing sampling resolution…

  • increases accuracy of sampled sound as more detailed is stored about the amplitude
  • increases memory usage as more bits are being stored
96
New cards

Sampling rate

number of sound samples taken per second in Hz

97
New cards

Increasing sampling rate…

  • more accurate sound
  • fewer estimations
98
New cards

Bitmap images

made of pixels stored in a computer as a series of binary numbers

99
New cards

Colour depth

number of bits representing each colour

100
New cards

8-bit colour depth

each pixel can be one of 256 colours