comp Flashcards

1
Q

Define ‘hardware’

A

All physical parts of a computer system.

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

Define ‘software’

A

All the computer programs of a computer system.

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

What is system software?

A

Runs a computer’s hardware and applications.
operating system
utility software

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

What is utility software?

A

Keeps computing device in working order and safe.

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

What is an operating system?

A

Allows hardware to interact with applications.

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

What is application software?

A

Helps user perform specific tasks
runs on operating system

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

What are the roles of an operating system?

A

Allows user to interact with hardware, manages memory, file management, communicates between application and hardware.

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

What is the role of the ALU?

A

Arithmetic logic unit, carries out calculations and logical decisions.

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

What is the role of the CU?

A

Controls how data and instructions move around the CPU.

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

What is the role of the clock?

A

Synchronizes all components using a steady pulse.

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

What is the role of buses?

A

Collections of wires that transport instructions/data around components.

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

What is the Fetch-Decode-Execute cycle?

A

Fetches data or instruction from RAM, inspects and decodes it using registers, executes it, and goes back to RAM to grab more data.

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

What factors affect CPU performance?

A

Clock speed, cache size, number of cores.

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

What is main memory?

A

Internal memory for temporary things. RAM, cache, registers are volatile; ROM is non-volatile.

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

What is secondary storage?

A

External memory for permanent things, all non-volatile.

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

What is the role of secondary storage?

A

To permanently store data, data backup, archiving, cost efficiency.

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

How does optical storage work?

A

A laser burns pits and lands, a less powerful laser shines and reflects representing instructions in binary.

Pros: thin, lightweight, portable; Cons: low capacity, slow to access data; Examples: CD-R/RW, DVD-R/RW, Blu-ray.

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

How does magnetic storage work?

A

Magnetic fields magnetize sections of a metal spinning disk. A read/write head moves across the disk surface.

Pros: high storage capacity, quick access, cheap, portable; Cons: moving parts can be unreliable; Examples: Hard disk drive, tape.

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

How does solid-state storage work?

A

Flow of electricity forces electrons into floating gates, changes measured as 1 or 0.

Pros: very quick access, no noise, durable; Cons: limited read/write cycles, expensive; Examples: SSDs, memory sticks, flash memory cards.

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

Define ‘cloud storage’

A

Remote servers that store data, accessible over the internet.

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

What are the pros and cons of cloud storage?

A

Pros: access files from anywhere, automatic backup, easy collaboration; Cons: costly, requires internet access, can be hacked.

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

Define an embedded system and give an example.

A

A computer system with a dedicated function inside a larger mechanical system.

Examples: traffic lights, washing machines, fitness trackers.

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

What is a low level definition?

A

Languages that a CPU understands, in binary and difficult to debug/program.

24
Q

What is a high level definition?

A

Languages that are close to natural languages of humans.

25
Q

What is the hierarchy of languages?

A

Python/Java/Pseudocode, Source Code, Assembly language, Machine Code.

26
Q

What are interpreters?

A

Translates source code into machine code, one line at a time.

Used for debugging.

27
Q

What are compilers?

A

Translates source code into machine code all at once.

Quicker and takes less space; source code compiled on one system won’t work on another.

28
Q

What are assemblers?

A

Translates assembly language into machine code.

29
Q

Define ‘number base’

A

A system for representing numbers using a specific number of digits.

30
Q

What is the role of hexadecimal?

A

Number base of 16, representing large numbers, more readable than binary, defining colors.

31
Q

How to convert ASCII to Unicode?

A

Copy over ASCII number, put 2 slashes, convert value into hexadecimal.

32
Q

Define ‘character set’

A

A collection of characters that a computer system can use to represent text.

33
Q

Define ‘pixel’

A

Short for ‘picture element’, it’s the smallest unit of information in a digital image/display.

34
Q

Define ‘analogue’

A

The physical quantities/form.

35
Q

Define ‘data compression’

A

The process of reducing the size of data by encoding it using fewer bits than the original representation.

36
Q

Define ‘algorithm’

A

A series of steps to complete a task.

37
Q

What is an assignment?

A

Colour ← blue; CONSTANT PI ← 3.142; colour = (‘blue’); PI = 3.142.

38
Q

What are arithmetic/relational/boolean operations?

A

9 DIV 5 = 1 (without the remainder); 9 MOD 5 = 4 (the remainder itself).

39
Q

What is random number generation?

A

Python: ‘import random’; variable = random.randint(1, 10); Pseudocode: variable = RANDOM(1, 10).

40
Q

Define ‘efficiency’

A

The speed and the memory required to store an algorithm.

41
Q

How to compare efficiencies?

A

Less lines, more efficient.

42
Q

Define ‘data type’

A

Classification of data which tells the system how the user intends to use the data.

43
Q

Define ‘iteration’

A

A programming statement that repeats code.

44
Q

Define ‘selection’

A

A programming concept that allows the flow of a program provided a condition is met.

45
Q

Define ‘subroutine’

A

A small separate program that executes a commonly used specific task within the main program.

46
Q

How to find the length of a string?

A

LEN(‘computer science’) in pseudocode.

47
Q

How to use the index?

A

Example = (‘ritisha’); print (example[3]).

prints ‘i’

48
Q

How to cast one data type to another?

A

Python: write data type and open bracket; Pseudocode: CHAR_TO_INT.

49
Q

How to make substrings?

A

Example = (‘Newcastle’); substring = example [1:2:7].

Starts at position 1, goes in 2s, ends at position 6, not 7.

50
Q

What are the pros of subroutines?

A

Saves time, saves code, possibilities for decomposition, easier to read, maintain, debug, and use in other programs.

51
Q

What is the role of parameters?

A

Enable you to have temporary values for local variables in subroutines.

52
Q

How to do ‘subroutines’?

A

Python: ‘def’ variable:; Pseudocode: ‘PROCEDURE’ variable; content of procedure; ‘END PROCEDURE’.

53
Q

Define ‘data structure’

A

A way of storing and organizing data to make it easier to access and manipulate.

54
Q

Define ‘global variables’

A

A variable that is accessible throughout the entire program, including inside functions.

55
Q

Define ‘local variables’

A

A variable that is defined within a function and can only be accessed inside that function.

56
Q

Define ‘validation’

A

Checking that the data entered is correct and the right data type.

57
Q

Define ‘authentication’

A

Checking that the person is who they claim to be.