4.6 - Hardware & Software

studied byStudied by 14 people
5.0(1)
Get a hint
Hint

What is hardware?

1 / 69

70 Terms

1

What is hardware?

the physical components of the computer system

New cards
2

What is software?

program code - sequences of instructions which are executed in order to perform a task

New cards
3

What are some examples of hardware?

monitor, processor, graphics card, webcam, printer

New cards
4

What are some examples of software?

word processor, web browser, image editor, video editor

New cards
5

What are the categories of software?

application software and system software

New cards
6

What is application software?

programs that complete a specific task for the user

New cards
7

What are some examples of application software?

word processors, web browsers, spreadsheet software

New cards
8

What is system software?

it operates, controls and maintains the computer and its components

New cards
9

What does system software include?

the operating system, utility programs, library programs, translators

New cards
10

What is an operating system?

it allows its user to control the computer with ease by providing what’s called a virtual machine and manages and controls access to the computer’s resources, including memory management, processor scheduling and handling interrupts

New cards
11

What are utility programs?

they are used for completing housekeeping tasks in a computer system, such as data backup, defragmenting hard drives, data compression and encryption

New cards
12

What are library programs?

they contain useful functions that are frequently used by a program

New cards
13

Why were high level languages developed?

to make the job for the programmer easier

New cards
14

What are the two categories of low level language?

assembly language and machine code

New cards
15

What is machine code?

it uses 0s and 1s to represent instructions

New cards
16

What are the disadvantages of machine code?

it is very long and extremely difficult for humans to understand, so the programs are prone to errors and difficult to debug

New cards
17

What is machine code useful for?

embedded systems and real-time applications where speed of execution is paramount, as there is no need to translate machine code

New cards
18

What is assembly language?

a simpler way of writing machine code with mnemonics such as ADD or MOV in place of binary instructions of machine code

New cards
19

What are the advantages of assembly language?

more compact and less prone to error than machine code

New cards
20

What are some examples of high level languages?

fortran, pascal, C#, python, java

New cards
21

What are the advantages of high level languages?

they are not platform specific, it is much easier for humans to learn and understand, easier to debug

New cards
22

What are the disadvantages of high level languages?

they need to be translated into machine code by a compiler or interpreter

New cards
23

What makes high level languages easier to debug than low level?

named variables, indentation, commenting, english instructions, mathematical symbols

New cards
24

What is an imperative high level language?

in a similar way to low-level languages, they are formed from instructions that specify how the computer should complete a task, rather than what a computer should do

New cards
25

What are translators?

they translate assembly and high level language into machine code to be executed by the processor

New cards
26

What does an assembler do?

translates assembly language into machine code

New cards
27

What is the relationship between assembly language and machine code?

one to one as one line of assembly language can be represented by one line of machine code

New cards
28

What does a compiler do?

translates high level language into machine code - checks for errors and then translates entire program at once

New cards
29

Which translators are platform specific?

assemblers and compilers

New cards
30

What does an interpreter do?

translates high-level languages into machine code and executes the code line-by-line, checking for errors as they go

New cards
31

What is source code?

programs that are written in high level languages that need to be translated - the input to a translator

New cards
32

What is object code?

executable machine code - the output produced from source code

New cards
33

What are the differences between compilers and interpreters?

compilers check for errors before translating all source code at once - interpreters check for errors, translate and execute line by line; there is no need for source code or compiler to be present when the translated code is executed - but both the source code and the interpreter must be present when the program is executed; compilers protect the source code from extraction - interpreters offer little protection of source code

New cards
34

Why is an intermediate language produced as the final output by some compilers?

it allows for platform independence as then a virtual machine is used to execute the bytecode on different processors

New cards
35

What is an example of an intermediate language?

bytecode

New cards
36

Why is it useful to use an intermediate language?

it only needs to be translated once and can be executed by a variety of processors as they each have their own virtual machine

New cards
37

What are logic circuits made up of?

many logic gates

New cards
38

What is the symbol for a NOT gate?

knowt flashcard image
New cards
39

What is the symbol for an AND gate?

knowt flashcard image
New cards
40

What is the symbol for an OR gate?

knowt flashcard image
New cards
41

What is the symbol for an XOR gate?

knowt flashcard image
New cards
42

What is the symbol for a NAND gate?

knowt flashcard image
New cards
43

What is the symbol for a NOR gate?

knowt flashcard image
New cards
44

What is the truth table for a NOT gate?

knowt flashcard image
New cards
45

What is the truth table for an AND gate?

knowt flashcard image
New cards
46

What is the truth table for an OR gate?

knowt flashcard image
New cards
47

What is the truth table for an XOR gate?

knowt flashcard image
New cards
48

What is the truth table for a NAND gate?

knowt flashcard image
New cards
49

What is the truth table for a NOR gate?

knowt flashcard image
New cards
50

What is an adder?

a logic circuit that can be used to add Boolean values together

New cards
51

What is a half adder?

a logic circuit that adds two numbers using two inputs, two outputs and two logic gates

New cards
52

What are the outputs of a half adder?

sum, which adds the two binary values and carry, which is used for overflow

New cards
53

What does a half adder look like?

knowt flashcard image
New cards
54

What is a full adder?

a logic circuit that adds numbers which has three inputs and two outputs, enabling it to input two Boolean values and a carry bit from a previous, less significant operation

New cards
55

What are the inputs of a full adder?

A, B and C (carry in), the carry bit from the previous operation

New cards
56

What are the outputs of a full adder?

sum, which adds the two binary values and carry, which is used for overflow

New cards
57

What does a full adder look like?

knowt flashcard image
New cards
58

What is an edge-triggered D-type flip-flop?

a logic circuit which can be used as a memory unit for storing the value of a single bit

New cards
59

What are the inputs of an edge-triggered D-type flip-flop?

there are two - one for data and another for a clock signal

New cards
60

What is a clock signal?

a signal generated by the computer and alternates between 0 and 1 at a set frequency

New cards
61

What is the output of an edge-triggered D-type flip-flop?

the value of the stored bit - the value of the data input with each change of the clock signal

New cards
62

What represents a NOT in boolean algebra?

A - a line over the top of the letter

New cards
63

What represents an AND in boolean algebra?

AB - a dot in the middle of the letters or AB - the product of these two letters

New cards
64

What represents an OR in boolean algebra?

A+B - addition symbol

New cards
65

What is the order of precedence in boolean algebra?

brackets, NOT, AND, OR

New cards
66

What are De Morgan’s laws?

NOT(A+B)=A⁻•B⁻ - break the bar and change the sign

New cards
67

What is the distributive law in boolean algebra?

A • (B + C) = A • B + A • C , equivalent to expanding the brackets or factorisation in normal algebra

New cards
68

What is the commutative law in boolean algebra?

variables can be rearranged without affecting the logic of the statement, e.g. X ⋅ Y = Y ⋅ X

New cards
69

What is the associative law in boolean algebra?

allows for the removal and rearrangement of the brackets when all signs are the same e.g. X ⋅ (Y ⋅ Z) = (X ⋅ Y) ⋅ Z and X + (Y + Z) = (X + Y) + Z

New cards
70

What are the absorption rules in boolean algebra?

X + (X ⋅ Y) = X and X ⋅ (X + Y) = X

New cards

Explore top notes

note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 94 people
... ago
5.0(1)
note Note
studied byStudied by 433 people
... ago
5.0(3)
note Note
studied byStudied by 33 people
... ago
5.0(1)
note Note
studied byStudied by 28 people
... ago
5.0(1)
note Note
studied byStudied by 32 people
... ago
5.0(2)
note Note
studied byStudied by 11 people
... ago
5.0(1)
note Note
studied byStudied by 29 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (121)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (84)
studied byStudied by 13 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 16 people
... ago
5.0(1)
flashcards Flashcard (27)
studied byStudied by 8 people
... ago
5.0(1)
flashcards Flashcard (83)
studied byStudied by 12 people
... ago
5.0(1)
flashcards Flashcard (53)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (48)
studied byStudied by 50 people
... ago
5.0(1)
flashcards Flashcard (24)
studied byStudied by 16 people
... ago
5.0(1)
robot