network security Flashcards

(59 cards)

1
Q

Define algorithm.

A

A step-by-step procedure for solving a problem or performing a task.

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

What is pseudocode?

A

A method of designing algorithms using a structured but informal language.

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

True or false: Flowcharts are used to represent algorithms visually.

A

TRUE

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

Fill in the blank: Variables are used to store ______.

A

Data values

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

What is a loop in programming?

A

A sequence of instructions that repeats until a condition is met.

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

Define conditional statement.

A

A statement that executes different actions based on whether a condition is true or false.

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

What does iteration mean?

A

The process of repeating a set of instructions a certain number of times or until a condition is met.

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

True or false: Debugging is the process of finding and fixing errors in code.

A

TRUE

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

Fill in the blank: Syntax errors occur when the code does not ______.

A

Follow the rules of the programming language

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

What is a function?

A

A reusable block of code that performs a specific task.

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

Define data type.

A

A classification that specifies which type of value a variable can hold.

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

What is the purpose of input in programming?

A

To receive data from the user or another source for processing.

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

True or false: Output is the result produced by a program after processing input.

A

TRUE

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

Fill in the blank: Constants are values that do not ______.

A

Change during program execution

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

What is a list in programming?

A

A collection of items stored in a single variable.

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

Define array.

A

A data structure that can hold multiple values of the same type.

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

What does indexing mean in relation to arrays?

A

Accessing elements of an array using their position number.

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

True or false: Comments in code are ignored by the compiler.

A

TRUE

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

Fill in the blank: A string is a sequence of ______.

A

Characters

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

What is a boolean data type?

A

A data type that can hold only two values: true or false.

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

Define iteration control structure.

A

A programming construct that manages the flow of control in loops.

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

What is the purpose of variables?

A

To store data that can be manipulated within a program.

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

True or false: Nested loops are loops within other loops.

A

TRUE

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

Fill in the blank: A syntax error is a mistake in the ______.

A

Code structure

25
What is **software development life cycle (SDLC)**?
A process for planning, creating, testing, and deploying software.
26
Define **testing** in programming.
The process of evaluating a program to ensure it meets requirements.
27
What does **iteration** refer to in programming?
Repeating a set of instructions until a condition is met.
28
True or false: **Variables** can only hold numeric values.
FALSE
29
Fill in the blank: **Functions** can return a ______.
Value
30
What is a **parameter**?
A variable used to pass information into a function.
31
Define **return statement**.
A statement that ends a function and optionally returns a value.
32
What is **scope** in programming?
The context in which a variable is accessible within code.
33
True or false: **Global variables** can be accessed from any part of the program.
TRUE
34
Fill in the blank: **Local variables** are defined within a ______.
Function
35
What is **recursion**?
A technique where a function calls itself to solve a problem.
36
Define **exception handling**.
A programming construct that manages errors during execution.
37
What does **API** stand for?
Application Programming Interface
38
True or false: **APIs** allow different software systems to communicate.
TRUE
39
Fill in the blank: **Data structures** organize data for ______.
Efficient access and modification
40
What is a **stack**?
A data structure that follows Last In, First Out (LIFO) principle.
41
Define **queue**.
A data structure that follows First In, First Out (FIFO) principle.
42
What is **binary search**?
An efficient algorithm for finding an item in a sorted list.
43
True or false: **Linear search** is faster than binary search for large datasets.
FALSE
44
Fill in the blank: **Sorting algorithms** arrange data in a specific ______.
Order
45
What is **merge sort**?
A sorting algorithm that divides the list and merges sorted sublists.
46
Define **quick sort**.
A sorting algorithm that selects a pivot and partitions the list.
47
What does **Big O notation** represent?
A mathematical notation to describe the performance of an algorithm.
48
True or false: **Big O notation** only considers the worst-case scenario.
TRUE
49
Fill in the blank: **Data mining** involves analyzing large datasets to discover ______.
Patterns and trends
50
What is **machine learning**?
A subset of AI that enables systems to learn from data.
51
Define **artificial intelligence (AI)**.
The simulation of human intelligence processes by machines.
52
What is **cloud computing**?
The delivery of computing services over the internet.
53
True or false: **Cybersecurity** is the practice of protecting systems from digital attacks.
TRUE
54
Fill in the blank: **Phishing** is a type of ______ attack.
Social engineering
55
What is **encryption**?
The process of converting information into a code to prevent unauthorized access.
56
Define **firewall**.
A security system that monitors and controls incoming and outgoing network traffic.
57
What does **malware** stand for?
Malicious software designed to harm or exploit devices.
58
True or false: **Antivirus software** detects and removes malware.
TRUE
59
Fill in the blank: **Data breaches** occur when sensitive information is ______.
Accessed without authorization