4.6 - Hardware & Software

5.0(1)
studied byStudied by 20 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/69

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

70 Terms

1
New cards

What is hardware?

the physical components of the computer system

2
New cards

What is software?

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

3
New cards

What are some examples of hardware?

monitor, processor, graphics card, webcam, printer

4
New cards

What are some examples of software?

word processor, web browser, image editor, video editor

5
New cards

What are the categories of software?

application software and system software

6
New cards

What is application software?

programs that complete a specific task for the user

7
New cards

What are some examples of application software?

word processors, web browsers, spreadsheet software

8
New cards

What is system software?

it operates, controls and maintains the computer and its components

9
New cards

What does system software include?

the operating system, utility programs, library programs, translators

10
New cards

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

11
New cards

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

12
New cards

What are library programs?

they contain useful functions that are frequently used by a program

13
New cards

Why were high level languages developed?

to make the job for the programmer easier

14
New cards

What are the two categories of low level language?

assembly language and machine code

15
New cards

What is machine code?

it uses 0s and 1s to represent instructions

16
New cards

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

17
New cards

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

18
New cards

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

19
New cards

What are the advantages of assembly language?

more compact and less prone to error than machine code

20
New cards

What are some examples of high level languages?

fortran, pascal, C#, python, java

21
New cards

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

22
New cards

What are the disadvantages of high level languages?

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

23
New cards

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

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

24
New cards

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

25
New cards

What are translators?

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

26
New cards

What does an assembler do?

translates assembly language into machine code

27
New cards

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

28
New cards

What does a compiler do?

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

29
New cards

Which translators are platform specific?

assemblers and compilers

30
New cards

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

31
New cards

What is source code?

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

32
New cards

What is object code?

executable machine code - the output produced from source code

33
New cards

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

34
New cards

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

35
New cards

What is an example of an intermediate language?

bytecode

36
New cards

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

37
New cards

What are logic circuits made up of?

many logic gates

38
New cards

What is the symbol for a NOT gate?

knowt flashcard image
39
New cards

What is the symbol for an AND gate?

knowt flashcard image
40
New cards

What is the symbol for an OR gate?

knowt flashcard image
41
New cards

What is the symbol for an XOR gate?

knowt flashcard image
42
New cards

What is the symbol for a NAND gate?

knowt flashcard image
43
New cards

What is the symbol for a NOR gate?

knowt flashcard image
44
New cards

What is the truth table for a NOT gate?

knowt flashcard image
45
New cards

What is the truth table for an AND gate?

knowt flashcard image
46
New cards

What is the truth table for an OR gate?

knowt flashcard image
47
New cards

What is the truth table for an XOR gate?

knowt flashcard image
48
New cards

What is the truth table for a NAND gate?

knowt flashcard image
49
New cards

What is the truth table for a NOR gate?

knowt flashcard image
50
New cards

What is an adder?

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

51
New cards

What is a half adder?

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

52
New cards

What are the outputs of a half adder?

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

53
New cards

What does a half adder look like?

knowt flashcard image
54
New cards

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

55
New cards

What are the inputs of a full adder?

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

56
New cards

What are the outputs of a full adder?

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

57
New cards

What does a full adder look like?

knowt flashcard image
58
New cards

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

59
New cards

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

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

60
New cards

What is a clock signal?

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

61
New cards

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

62
New cards

What represents a NOT in boolean algebra?

A - a line over the top of the letter

63
New cards

What represents an AND in boolean algebra?

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

64
New cards

What represents an OR in boolean algebra?

A+B - addition symbol

65
New cards

What is the order of precedence in boolean algebra?

brackets, NOT, AND, OR

66
New cards

What are De Morgan’s laws?

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

67
New cards

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

68
New cards

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

69
New cards

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

70
New cards

What are the absorption rules in boolean algebra?

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