CS Flashcards

(46 cards)

1
Q

what does the processor (CPU) do?

A

it carries out the instructions of a program, to preform the basic operations of the system.

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

what is the brains of the computer

A

processor

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

what does ALU stand for

A

arithmetic and logic unit

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

what does the ALU do

A

it preforms all the calculations and logical operations like AND, OR

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

what is the processor made up of

A

ALU, control unit, and registers

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

what does the controll unit do

A

the control unit controls the sequencing of fetching, decoding and execution of instructions

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

what are the registers

A

the registers are temporary memory locations within the processor itself

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

what is memory

A

memory is a set of chips which store programs and data in the computer

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

what is the purpose of unique addresses

A

so that the computer can read and write the data to that location correctly

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

what are the two types of busses

A

the address bus and the data bus

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

what does the address bus do

A

it identidies the memory location that is going to be accessed.

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

what does the data bus do

A

the data bus transfer data from the processor to the memory and vice versa.

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

what are common features of high level languages

A

it uses english like words, it has to be translated to machine code, it can work on different types of computer systems with only minor changes

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

what are common features of machine code

A

it is made up of 1s and 0s, it is machine specific. a machine code program will only run on the type of computer it was created for NOT others

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

what does a translater do

A

it translates the high level language to machine code

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

what are the two types of translaters

A

interpreter and compiler

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

what does an interpreter do

A

an interpreter translates the high level program one line at a time into machine code and executes this line immediately. becuase you cant save the machine code this translation must be carried out every time the program is run hence it takes a long time

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

what are two advantages of an interpreter

A

it reports errors at the end of each line so it is easier to correct mistakes and it takes less memory than a compiler when translating the program into machine code

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

what is the disadvantages of an interpreter

A

becuase the machine code cannot be saved the high level language needs to be translated into machine code every time the program is run. this takes time

20
Q

what does a compiler do

A

a compiler translates the whole high language code into machine code and saves the machine code version of the program meaning it can be run in future without having to translate it again. this saves time

21
Q

what are two advantages of a compiler

A

because the machine code file is saved, it never needs to be translated again and it takes less memory when executing the mahine code program to an interpreter

22
Q

what are the disadvantages of a compiler

A

it takes more memory when translating the program compared to an interpreter

23
Q

when do programmers use interpreters

A

when they are developing the program

24
Q

why do programmers use interpreters when developing a program

A

because each error is reported at the end of each line so debugging mistakes is easier

25
if a programmer is developing a website what type of translater would they use
an interpreter
26
when do programmers use compilers
once a program is finished
27
why do programmers use compilers when a program is finished
so that they dont need to translate it again
28
if a programmer has finished a program what type of translater would they use
a compiler
29
how many bits are in 1 byte
8
30
how many bytes are in 1 kibibyte (Kib)
1024 bytes
31
what types of data does memory hold
integer numbers, real numbers, characters, bit-mapped and vector graphics
32
what is an integer
a negative or posative whole number
33
what is a real number
a real number is a number that can have a decimal/fractional part to it
34
how do you store a real number in binary
with the mantissa and exponent
35
how are characters stored
using ASCII code
36
how many bits does does 1 ASCII take up
8
37
what does the ASCII table include
all the numbers, letters (upper and lower) and punctuation marks in the alphabet, foreign language symbols e.g. é, á, ó and control characters e.g. tab
38
how do vector graphics store a picture
by storing each objects attributes for example a circle could be stored as circle(centerx, centrey, raduis, line colour, line thickness, fill colour)
39
what are the objects we need to know for nat 5
rectangle, ellipse, line, polygon
40
what are the attributes we need to know for nat 5
co-ordinates, line colour and fill colour
41
what are some ways to reduce the enviromental impact
leaving computers on stand by, change the settings on the monitor, change the power down settings
42
what does a fire wall do
protects against people trying to hack into your computer
43
in which ways can a firewall block access
packet filtering and/or IP blocking
44
how does packet filtering work
when a data packet is received by the firewall it checks it against its filters. if it is acceptable it is allowed through otherwise it is rejected
45
how does IP blocking work
the firewall can compare the IP that tries to communicate with your computer to a list of blocked IP addresses if it is blocked it is rejected. alternatively it can be checked against a list of IP addresses that are allowed to access the computer
46
what is one way you can stop people from getting information online
encryption