Computer Science paper 2 OCR Flashcards

(21 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

True or false: Binary search is faster than linear search for sorted data.

A

TRUE

Binary search has a time complexity of O(log n).

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

Fill in the blank: RAM stands for _______.

A

Random Access Memory

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

What is a variable in programming?

A

A storage location identified by a name that holds data.

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

Define syntax error.

A

An error in the code that violates the rules of the programming language.

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

What does CPU stand for?

A

Central Processing Unit

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

True or false: HTML is a programming language.

A

FALSE

HTML is a markup language used for structuring web content.

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

What is the purpose of a loop in programming?

A

To repeat a block of code multiple times.

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

Fill in the blank: IP stands for _______.

A

Internet Protocol

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

Define debugging.

A

The process of identifying and fixing errors in software.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
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
12
Q

True or false: Data types determine the kind of data a variable can hold.

A

TRUE

Common data types include integers, strings, and booleans.

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

Define encryption.

A

The process of converting data into a coded format to prevent unauthorized access.

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

What is the role of an operating system?

A

To manage computer hardware and software resources.

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

True or false: Cloud computing allows data storage on remote servers.

A

TRUE

It enables access to data over the internet.

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

What is a database?

A

An organized collection of structured information or data.

17
Q

Define open-source software.

A

Software with source code that anyone can inspect, modify, and enhance.

18
Q

What is machine learning?

A

A subset of AI that enables systems to learn from data and improve over time.

19
Q

True or false: Phishing is a method to secure data.

A

FALSE

Phishing is a fraudulent attempt to obtain sensitive information.

20
Q

What is a network?

A

A collection of computers and devices connected to share resources.

21
Q

True or false: Malware is software designed to harm or exploit devices.

A

TRUE

Types of malware include viruses, worms, and trojans.