computer science p1 Flashcards

(27 cards)

1
Q

What are the key components of a CPU?

A

Registers, ALU, Control Unit, Cache. Registers store data temporarily, ALU performs calculations, the control unit directs operations, and cache speeds up data access.

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

What factors affect CPU performance?

A

Clock speed, number of cores, cache size. Higher clock speed means faster processing, multiple cores enable parallel execution, and larger cache reduces memory bottlenecks.

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

What are primary, secondary, and tertiary storage devices?

A

Primary storage is volatile (RAM, cache), Secondary storage is non-volatile (SSD, HDD), and Tertiary storage is for backups (optical disks, tapes).

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

Compare solid-state drives (SSD) and hard disk drives (HDD).

A

SSDs use flash memory, offer faster read/write speeds, and are more durable. HDDs use magnetic storage, are cheaper per GB, but are slower.

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

What are the types of software?

A

System software (operating system, utilities), Application software (word processor, games), and Development software (compilers, IDEs).

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

What is the waterfall model?

A

A linear software development method with stages: Requirements → Design → Implementation → Testing → Deployment.

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

What is the difference between lossless and lossy compression?

A

Lossless preserves original data (PNG, ZIP). Lossy removes redundant data for smaller size (JPEG, MP3).

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

What is a database schema?

A

The structure of a database, including tables, fields, relationships, ensuring data consistency.

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

What are the main data types?

A

Integer, Float, Boolean, String, Character. Integers are whole numbers, floats are decimal numbers, Boolean represents True/False, strings store text.

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

What is the difference between an array and a linked list?

A

Array: fixed size, direct indexing. Linked list: dynamic size, uses pointers for element connections.

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

What does the Data Protection Act regulate?

A

Ensures personal data privacy, controlling how data is stored, processed, and shared.

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

What is ethical hacking?

A

Legitimate hacking performed to identify security flaws, differs from cybercriminal hacking.

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

What are the key concepts of computational thinking?

A

Abstraction (simplifying complex problems), Decomposition (breaking tasks into parts), Pattern recognition (finding similarities in problems).

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

What is debugging?

A

The process of finding and fixing errors in code using techniques like print statements, breakpoints, testing.

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

What is the difference between binary search and linear search?

A

Binary search is faster on sorted lists, halves the search space each step. Linear search scans each element sequentially.

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

What are the main components of the CPU?

A

Control Unit, Arithmetic Logic Unit (ALU), Registers, Cache, and Clock—together, they process instructions.

17
Q

What is the purpose of the fetch-decode-execute cycle?

A

The cycle used by the CPU to process instructions: 1️⃣ Fetch: Retrieve instruction from memory 2️⃣ Decode: Translate it into an operation 3️⃣ Execute: Perform the operation.

18
Q

What is the difference between RAM and ROM?

A

RAM (Random Access Memory) is volatile and stores temporary data. ROM (Read-Only Memory) is non-volatile and stores essential startup instructions.

19
Q

What are the differences between HDD and SSD?

A

✅ HDD (Hard Disk Drive): Uses spinning disks, slower, cheaper, more storage. ✅ SSD (Solid State Drive): Uses flash memory, faster, more durable, expensive.

20
Q

What is the difference between LAN and WAN?

A

LAN (Local Area Network): Covers small areas like homes or offices. WAN (Wide Area Network): Covers large areas like cities, countries, the internet.

21
Q

What does TCP/IP stand for?

A

Transmission Control Protocol/Internet Protocol—it ensures communication across networks.

22
Q

Name three types of malware.

A

🦠 Virus – attaches to files and spreads. 🕷️ Trojan – disguises itself as normal software. 📝 Ransomware – locks data until payment is made.

23
Q

How does a firewall protect a computer?

A

Blocks unauthorized network access, filters traffic, and prevents hacking attempts.

24
Q

What is an operating system?

A

A system that manages hardware & software, including:
* File management
* Process management
* User interface
* Memory management.

25
What is an algorithm?
A step-by-step procedure for solving a problem or completing a task.
26
What does the Data Protection Act do?
Regulates personal data storage & usage, ensuring privacy.
27
What is the impact of digital technology on society?
Better communication, automation, but also privacy concerns & cybersecurity risks.