4.6 Fundamentals of computer systems Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a computer?

A

A machine that processes data by following instructions

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

What is application software?

A

Application software is designed to perform tasks that a user wants to complete, such as playing a game, writing a letter, or sending an email.

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

What is system software?

A

System software controls the hardware of a computer system.

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

What is a library?

A

A collection of prewritten instructions that can be repurposed for use in other programs

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

Describe at least 3 roles of an operating system

A

Hiding the complexity of hardware from the user
Provides a platform for applications for run on
User Interfaces
Processor scheduling — determining the order in which processes will be executed, which allows for multi-tasking
Handling interrupts — dealing with requests that disrupt the processor’s work
Memory management — recording how memory in the computer is divided and identified so that memory is allocated efficiently between processes that are running
Secondary storage management — tracking where files and programs are stored and which parts are available for storage, and managing files and folders based on user permissions
Input/output device management — ensuring efficient communication with devices and managing functionality issues

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

What is a low-level language?

A

Low-level languages use the specific instruction set of a processor.

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

What is machine code?

A

Binary instructions written directly to the processor (the only language that can do so)

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

What does each low-level instruction consist of?

A

Each low-level instruction consists of two parts: an opcode and an operand.

OPCODE,OPERAND
eg.
001100 0010110100

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

What is an opcode?

A

An opcode is the part of the instruction that specifies which operation the processor should perform.

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

What is an operand?

A

The operand contains a value, or set of values, relevant to the opcode. The operand can be an actual piece of data, or it can be a reference to the memory location of the data for the opcode to act on.

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

What is the addressing mode?

A

The addressing mode specifies the way in which the operand will be interpreted

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

What does the opcode consist of?to

A

The opcode consists of the instruction to perform and the addressing mode.

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

How do you work out the number of addressing modes from the bits allocated ?

A

2^bits allocated

eg. 2 bits, 2^2 = 4

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

What is an assembly language?

A

A language that uses mnemonics that represent the binary equivalent machine code

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

What is a high-level language?

A

High-level languages use command words and Syntax that reflect everyday language. They are designed to allow humans to interact with a computer system with no technical knowledge of the hardware.

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

What is an imperative language?

A

Language/Paradigm where programmers solve a problem by writing a set of instructions that state how a problem should be solved.

17
Q

What is procedural programming?

A

Paradigm where the program can be split into procedures (or subroutines).

18
Q

What is a declarative language?

A

Declarative languages define what should be achieved by the program, not how to solve it.

Using a declarative language, the programmer specifies (or “declares”) the problem to be solved, without having to know how the solution is actually executed.

19
Q

What is an object oriented language?

A

A language that uses classes to define objects in order to model the problem to be solved.

20
Q

How does a compiler work?

A

Compilers translate code into a form that can be executed. The output from a compiler is an executable file .

21
Q

How does an interpreter work?

A

Interpreters translate and execute each line of source code one by one.

22
Q

Interpreter Vs. Compiler

A

Compiler pros:
Faster running time as no translation is required at run time.
The executable code cannot be reverse engineered back to its source code so is secure.
Compiler cons:
If you want to change something in the program you have to recompile it into a new file.
You only receive the errors in the code after the whole program is compiled.
Interpreter pros:
Translates line by line so errors are reported straight away. They are easier to find and fix making it better for debugging.
Interpreter cons:
Slower running time.
Interpreter must be downloaded o every machine code will run on taking up space in memory.

23
Q
A