Principles of Computer Science Flashcards

Paper 1 (36 cards)

1
Q

What is decomposition?

A

Breaking down a complex problem into smaller, more manageable parts that are easier to solve

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

What is abstraction?

A

The process of removing unnecessary detail to focus only on the relevant aspects of a problem.

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

What is algorithmic thinking?

A

The process of creating a step-by-step solution to solve a problem or complete a task.

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

What is a flow chart?

A

A diagram that visually represents an algorithm using standardized symbols and shapes.

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

What are the four basic operations in algorithms?

A

Sequence, selection (if/else), iteration (loops), and subroutines (procedures/functions).

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

What is a variable?

A

A named storage location in memory that holds a value that can change during program execution.

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

What is the difference between an integer and a float?

A

Integers are whole numbers without decimal points, while floats (floating-point numbers) can represent fractional values.

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

What is a string?

A

A sequence of characters stored as a data type, typically enclosed in quotes.

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

What is a constant?

A

A value that cannot be altered during program execution.

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

What is concatenation?

A

Joining two or more strings together to form a single string.

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

What is a Boolean?

A

A data type that can only have one of two values: True or False.

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

What is a conditional statement?

A

A statement that performs different actions depending on whether a condition evaluates to true or false.

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

What is an array?

A

A data structure that stores a fixed-size sequential collection of elements of the same type, accessed using an index.

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

What is the difference between a FOR loop and a WHILE loop?

A

A FOR loop runs for a predetermined number of iterations, while a WHILE loop continues running as long as a specified condition remains true.

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

What is a function/procedure?

A

A named block of code that performs a specific task and can be called from elsewhere in the program.

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

What is the difference between a function and a procedure?

A

A function returns a value after performing its operations, while a procedure performs operations without returning a value.

17
Q

What are parameters/arguments?

A

Values passed to a function or procedure when it is called.

18
Q

What is a LAN?

A

Local Area Network - a network confined to a small geographical area like a home, office, or school.

19
Q

What is a WAN?

A

Wide Area Network - a network that covers a large geographical area, such as connecting LANs across different cities or countries.

20
Q

What is a packet?

A

A unit of data transmitted over a network, containing both header information and the payload.

21
Q

What is an IP address?

A

A unique numerical label assigned to each device on a computer network that uses the Internet Protocol for communication.

22
Q

What is the difference between a hub and a switch?

A

A hub broadcasts data to all connected devices, while a switch forwards data only to the specific intended recipient.

23
Q

What is a router?

A

A device that forwards data packets between computer networks.

24
Q

What is a MAC address?

A

A unique identifier assigned to a network interface controller (NIC) for use as a network address in communications.

25
Q: What is encryption?
The process of converting data into a code to prevent unauthorized access.
26
What is a firewall?
A network security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules.
27
What is malware?
Software designed to disrupt, damage, or gain unauthorized access to a computer system.
28
Name four types of malware.
Viruses, worms, trojans, and ransomware.
29
What is phishing?
A fraudulent attempt to obtain sensitive information by disguising oneself as a trustworthy entity in digital communication.
30
What is the purpose of an IDE?
Integrated Development Environment - provides comprehensive facilities to programmers including code editor, compiler/interpreter, and debugging tools.
31
What is syntax?
The set of rules that defines the combinations of symbols considered to be correctly structured statements in a programming language.
32
What is a syntax error?
An error in the code that violates the grammatical rules of the programming language.
33
What is a logic error?
An error in a program that causes it to operate incorrectly but not terminate abnormally.
34
What is debugging?
The process of finding and fixing errors or bugs in software code.
35
What are the three main types of program translators?
Compilers, interpreters, and assemblers.
36
What is the difference between a compiler and an interpreter?
A compiler translates the entire source code into machine code before execution, while an interpreter translates and executes the code line by line.