Unit 4 - Hardware and Software Flashcards

(51 cards)

1
Q

What is hardware?

A

Hardware describes the electrical or electro-mechanical parts of a computer system.

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

What is software?

A

Software comprises all of the programs that make the computer function.

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

What is system software?

A

Software that is required to run and manage the computer’s hardware and application programs.

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

What are some forms of system software?

A
  • Allocating jobs to the processor,
  • Peripheral management,
  • Maintaining security and checking for viruses,
  • Software installation,
  • Translating program code into machine code.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an Operating System?

A

A form of systems software which handles the communication between the hardware and software.

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

What are some things that operating systems do?

A
  • Memory management,
  • Processor scheduling,
  • Backing store management,
  • Peripheral management of IO devices,
  • Provision of a user interface (Command line, Menu driven or GUI)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is utility software?

A

System software designed to analyse, configure, optimise or maintain a computer system. Some perform additional common tasks needed by most or all users.

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

What are some things that utility software does?

A
  • Disk defragmentation,
  • installation and uninstallation of software,
  • keeping software up-to-date,
  • monitoring resources and performance,
  • antivirus software,
  • automatically backing up or restoring data,
  • file compression.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a library?

A

A library is a collection of pre-compiled routines that can be used by other programs.

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

What are translators?

A

Systems software which translates high and low level code into machine code so that the CPU can run it.

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

What are the three types of translators?

A
  • Assemblers,
  • Compilers,
  • Interpreters.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is an assembler?

A

Assemblers translate assembly language into machine code.

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

What is an compiler?

A

Compilers translate high-level language programs into object code (machine code) which can be saved and run whenever needed, without the compiler having to be present. Different hardware needs to use different compliers because machine code differs from CPU to CPU and so the resulting object code from compilation will not work with every device.

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

How do compliers work?

A

Compilers go through the source code in multiple phases, each doing something different, such as lexical analysis, syntactic analysis, and semantic analysis, going through the whole program at each stage.
It produces intermediate code, optimises it, then generates the machine code. It will not generate the machine code it there are any errors in the program.

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

What is an interpreter?

A

An interpreter is a translator which translates high-level instructions into an intermediate form, which it then executes. It produces no object code. Most interpreters scan through source code for syntax errors and will run until they encounter an error or are closed.

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

What is application software?

A

Application software allows you to complete different tasks.

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

What is general purpose software?

A

General purpose software is software which can be used for a range of generic tasks. Examples include word processors, graphics programs and spreadsheet software.

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

What is special purpose software?

A

Special-purpose software performs tasks for a single, specific job. Examples include payroll or accountancy software, media players, calendar programs and online payment systems.

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

What is off-the-shelf software?

A

Software which is available for everyone to use.

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

What are some advantages of off-the-shelf software?

A
  • The cost is usually lower because development costs are shared among all the buyers,
  • It is likely to be well-documented and well-tested.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What are some disadvantages of off-the-shelf software?

A
  • You have little or no control over what features there are,
  • It may not do exactly what you want.
22
Q

What is bespoke software?

A

Bespoke software is created to fulfil your own exact specifications.

23
Q

What is an advantage of bespoke software?

A

Complete control over the process gives you all the functionality you need.

24
Q

What are some disadvantages of bespoke software?

A
  • It can be significantly more costly than off-the-shelf software,
  • It may take several weeks, months or even years to develop.
25
What is the scheduler?
The scheduler is the operating system module responsible for ensuring that processor time is used as efficiently as possible.
26
What is an opcode?
The part of a CPU instruction that has an operation code; it tells the CPU what to do. It has 2 parts, the actual command and the addressing mode, which specifies what type of data is in the operand (either a binary value or the address of a register or memory location).
27
What is an operand?
The part of a CPU instruction that has any additional information needed for an action.
28
What is an instruction set?
The instruction set of a computer is all the instructions that it can understand and execute.
29
What is machine code?
A low-level language that is directly understood by the CPU. It is represented by binary numbers and is different for each type of CPU.
30
What is assembly language?
A low-level language which has a one-to-one correspondence with a computer's machine code. It's opcodes are mnemonics and its operands are decimal or hexadecimal values.
31
What is the advantage assembly language has over machine code?
It is much easier to write, understand and debug programs in assembly language.
32
What is the disadvantage assembly language has over machine code?
The assembly code has to be translated into machine code by an assembler.
33
What is a high-level language?
A programming language designed to be human-readable and machine- independent. They typically have strong abstraction from the details of the computer.
34
What are imperative languages?
An imperative language consists of commands for the computer to perform.
35
What is a declarative language?
A declarative language which focuses on what the program should do without listing the steps needed to achieve the result.
36
What is a low-level language?
A programming language designed to be close to machine code whilst being easier to read and write. They typically have very weak or no abstraction from the details of the computer.
37
What are some advantages of high-level languages over low-level languages?
- Much easier and faster to write, debug and maintain programs, - Different high-level languages have been written specifically for different types of problem, - High-level language programs are portable.
38
What are some disadvantages of high-level languages over low-level languages?
- The object code (compiled or interpreted code) may run slower than assembly code or machine code, - The object code may occupy more space in RAM, - Most high-level languages do not have statements to allow the programmer to manipulate individual bits.
39
What is source code?
The code that humans write and read in order to make programs. It cannot be used by a computer unless it is translated.
40
What is object code?
The code that results from the translation of source code into computer-readable format. This is what computers run programs from.
41
What are the advantages of using a compiler?
- Once a program has been compiled, the object code can be distributed and the compiler is not needed to run the program, - The object code runs faster than interpreted code, - The object code is more secure, as machine code cannot easily be read and copied by someone wishing to modify the code and sell it as their own product.
42
What are the advantages of using an interpreter?
- An interpreter is useful in education because it allows students to program interactively using “Interactive mode”, - It is useful during development when a programmer may want to test a small piece of code without recompiling the whole program.
43
What is bytecode?
An intermediate form of compiled code used by some programming languages like Java for increased portability. When it is shared, a specific program that comes with the programming language translates it into the machine code, doing so faster than the time taken to compile the original source code into machine code. Once the bytecode for a particular subroutine or method has been translated into machine code, the machine code is retained for the next time that code is required, so the translation does not have to be done again.
44
What is De Morgan's 1st law?
NOT(A) AND NOT(B) = A NOR B or NOT(A OR B)
45
What is De Morgan's 2nd law?
NOT(A AND B) or A NAND B = NOT(A) OR NOT(B)
46
What are the Boolean logic operators?
. = AND + = OR line over variable = NOT (+) = XOR
47
What are the general rules of Boolean logic?
X AND 0 = 0 X AND 1 = X X AND X = X X AND NOT(X) = 0 X OR 0 = X X OR 1 = 1 X OR X = X X OR NOT(X) = 1 NOT(NOT(X)) = X
48
What is the Commutative rule?
X AND Y = Y AND X X OR Y = Y OR X
49
What is the Associative rule?
X AND (Y AND Z) = (X AND Y) AND Z X OR (Y OR Z) = (X OR Y) OR Z
50
What is the Distributive rule?
X AND (Y OR Z) = X AND Y OR X AND Z (X OR Y) (W OR Z) = X AND W OR X AND Z OR Y AND Y OR Y AND Z
51
What are the Absorption rules?
X OR (X AND Y) = X X AND (X OR Y) = X