Computer Science P1 Flashcards

1
Q

What does the ALU do in a CPU?

A

Arithmetic Logic Unit - performs calculations and logical operations.

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

What is the purpose of the Control Unit?

A

Fetches, decodes, and executes instructions. Manages hardware via control signals.

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

What is Von Neumann architecture?

A

Stored program concept where data and instructions are stored in memory.

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

What affects CPU performance?

A

Clock speed, cache size, number of cores, and RAM speed.

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

What is the purpose of registers?

A

Tiny, high-speed memory locations in the CPU (e.g., PC, MAR, MDR).

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

What’s the difference between RAM and ROM?

A

RAM is volatile read/write memory; ROM is non-volatile read-only memory.

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

Why is virtual memory used?

A

Allows running large programs by using secondary storage as temporary RAM.

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

What are the 3 main types of secondary storage?

A

Magnetic (HDD), Solid State (SSD), Optical (CD/DVD/Blu-ray).

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

What are characteristics of SSDs vs HDDs?

A

SSD: faster, no moving parts, more expensive. HDD: cheaper, slower, mechanical.

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

What is a network protocol?

A

Rules governing data transmission between devices (e.g., TCP/IP, HTTP).

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

What’s the difference between LAN and WAN?

A

LAN covers small geographical area; WAN covers large areas (e.g., internet).

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

What is a star topology?

A

All devices connect to a central switch/router. Benefits: reliable, high performance.

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

What is a mesh topology?

A

Devices connect to multiple others. Benefits: redundancy, self-healing.

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

What does TCP/IP do?

A

Transmission Control Protocol/Internet Protocol - governs data packet delivery.

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

What is HTTP vs HTTPS?

A

Hypertext Transfer Protocol (unsecure) vs encrypted version using SSL/TLS.

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

What are 4 common network threats?

A

Malware, phishing, DDoS attacks, SQL injection.

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

How does a firewall improve security?

A

Monitors incoming/outgoing traffic and blocks unauthorized access.

18
Q

What is encryption?

A

Scrambling data to make it unreadable without a decryption key.

19
Q

What is a MAC address?

A

Unique identifier assigned to network interfaces (physical address).

20
Q

What is an IP address?

A

Logical address assigned to devices on a network (IPv4 or IPv6).

21
Q

What is the purpose of DNS?

A

Domain Name System - translates domain names to IP addresses.

22
Q

What are the main OS functions?

A

Memory management, file management, hardware control, user interface.

23
Q

What is utility software?

A

Programs that maintain system (e.g., antivirus, disk defragmenters, backups).

24
Q

What is open source vs proprietary software?

A

Open source: code modifiable/free. Proprietary: paid, restricted code.

25
Q

What is the Data Protection Act 2018?

A

UK law governing personal data storage and processing (GDPR implementation).

26
Q

What is a brute force attack?

A

Trying all password combinations to gain unauthorized access.

27
Q

What is a syntax error?

A

Code that violates language rules (e.g., missing colon in Python).

28
Q

What is a logic error?

A

Program runs but produces incorrect results due to flawed logic.

29
Q

What is the purpose of an IDE?

A

Integrated Development Environment - tools for writing/testing code (debugger, editor).

30
Q

What is abstraction?

A

Simplifying complex systems by focusing on key details while hiding complexity.

31
Q

What is decomposition?

A

Breaking problems into smaller, manageable sub-problems.

32
Q

What is binary search?

A

Efficient search algorithm requiring sorted data (divides search space in half).

33
Q

What is linear search?

A

Checks each element sequentially until target is found.

34
Q

How does bubble sort work?

A

Repeatedly compares/swaps adjacent elements until sorted.

35
Q

What is a variable?

A

Named storage location that holds data which can change during execution.

36
Q

What are the 3 basic programming constructs?

A

Sequence, selection (if/else), iteration (loops).

37
Q

What is casting in programming?

A

Converting between data types (e.g., string to integer).

38
Q

What is an array?

A

Data structure storing elements of the same type under one name.

39
Q

What’s the difference between a compiler and interpreter?

A

Compiler: entire code translated at once. Interpreter: line-by-line execution.

40
Q

What is file handling used for?

A

Reading from/writing to external files (e.g., .txt, .csv).

41
Q

What is validation vs verification?

A

Validation: checks input follows rules. Verification: confirms data accuracy (e.g., double entry).