computer systems Flashcards

1
Q

hardware

A

Physical component of a computer system

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

software

A

Instructions that tell a computer what to do

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

System software

A

Allows the user to operate a computer

example:

OS
utilities
libraries
translators (compiler, assembler, interpreter)

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

Application software

A

Used to carry out user oriented tasks

e.g. Web browsers

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

role of operating system/OS

A

to hide the complexities of the hardware from the user

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

What does the OS handle

A

Resource management
Managing hardware to allocate processors
Memories
I/O devices

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

examples of low level language code

A

machine-code
assembly language.

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

what does high-level language include

A

imperative high level-language:

A program translating high level language by reading each statement in the source code and immediately performing the action

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

relationship between low level and high level language

A

high level languages require the use of a compiler of an interpreter for their translation into the machine code.

low level language requires an assembler for directly translating the instructions of the machine language.

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

machine-code language

A

Written in binary and can be executed without needing to be translated

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

assembly language

A

Written using mnemonics and needs to be translated in order to be executed

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

pros and cons for assembly language

A

Easier to correct errors and amend instructions
More compact

It’s machine dependant and you must directly control the exact instruction sequences the processor executes

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

assembler

A

Program that translates from code written in assembly language code into machine code

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

Compiler

A

A program that translates high level language into machine code by translating all of the code

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

Interpreter

A

A program translating high level language by reading each statement in the source code and immediately performing the action

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

Difference between interpreter and compilation

A

compiler - produces machine code and translates the whole source code into machine code

Interpreter - does not produce any object code and translates the source code one at a time into machine code

17
Q

difference between source and object (executable) code.

A

Source code - written in high level language code and east to modify and read

Object code - written in machine language and difficult to read and modify

18
Q

boolean identities for OR

A

0 + A = A
1 + A = 1
A + A = A
A + (NOT)A = 1

19
Q

demorgans theorem

A

A + ((NOT)A)B= A + B
(NOT)A + B = (NOT)A.(NOT)B
(NOT)A.B = (NOT)A + (NOT)B

20
Q

boolean identites for AND

A

0 . A = 0
1 . A = A
A . A = A
A . (NOT)A = 0

21
Q

explain why some compilers produce bytecode as the final output instead of executable code

A

the code may need to run on multiple platforms