GCSE (9-1) Computer Science - Assessment 1

0.0(0)
studied byStudied by 11 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/39

flashcard set

Earn XP

Description and Tags

Hardware, automated systems, programming, binary/denary conversions, ASCII/Unicode, images, sound, and compression methods.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

40 Terms

1
New cards

What are input devices?

Devices that allow users to input data into a computer (e.g., keyboard, mouse, scanner).

2
New cards

What are output devices?

Devices that output data from a computer to the user (e.g., monitor, printer, speakers).

3
New cards

What are sensors?

Devices that detect and respond to physical input from the environment (e.g., temperature sensors, motion sensors).

4
New cards

What are robotics?

The branch of technology dealing with the design, construction, operation, and application of robots.

5
New cards

What are automated transport systems?

Systems that use technology to transport goods or people without human intervention (e.g., conveyor belts, automated guided vehicles).

6
New cards

What are data types?

Classifications of data that tell the compiler or interpreter how the programmer intends to use the data (integer, float, string, boolean and list/array).

7
New cards

What is a variable?

A storage location in memory with a name and an associated data type, which can hold different values.

8
New cards

What is selection in programming?

A control structure that allows a program to execute certain sections of code based on conditions (e.g., if statements).

9
New cards

What are loops?

Control structures that repeat a block of code while a specified condition is true (e.g., while loops, for loops).

10
New cards

What is a subroutine?

A set of instructions designed to perform a frequently used operation within a program.

11
New cards

What are parameters?

Variables used in a subroutine that allow you to pass data into it.

12
New cards

What are local and global variables?

Local variables are accessible only within the function they are defined; global variables can be accessed from anywhere in the program.

13
New cards

What is an array?

A collection of elements identified by index or key, allowing for the storage of multiple values in a single variable.

14
New cards

What are 1D and 2D arrays?

1D arrays store a list of values, while 2D arrays store data in a grid format (rows and columns).

15
New cards

How do you convert denary to binary?

Divide the denary number by 2, record the remainder, and repeat with the quotient until it reaches 0. Read the remainders in reverse.

16
New cards

What is the largest number held in x bits?

The largest number is 2^x - 1

17
New cards

What is ASCII?

A character encoding standard that uses 7 or 8 bits to represent characters, allowing for 128 or 256 characters.

18
New cards

What is Unicode?

An encoding standard that allows for the representation of a vast array of characters from different languages and symbols.

19
New cards

What are bitmap images?

Images made up of pixels, where each pixel represents a specific color.

20
New cards

What is pixel resolution?

The number of pixels in an image, usually expressed in width x height (e.g., 1920x1080).

21
New cards

What is color depth?

The number of bits used to represent the color of a single pixel, determining how many colors can be displayed.

22
New cards

What is the process of converting sound to digital data (ADC)?

Analog-to-Digital Conversion (ADC) involves sampling the sound wave at intervals and quantizing the amplitude.

23
New cards

What is the Hertz formula for sound?

Frequency (Hertz) = 1 / Time period (seconds).

24
New cards

How do you calculate file size for sound?

File Size = Duration (seconds) x Sample Rate (samples per second) x Bit Depth (bits per sample).

25
New cards

What is lossy compression?

A compression method that reduces file size by removing some data, potentially affecting quality (e.g., JPEG for images).

26
New cards

What is lossless compression?

A method that reduces file size without losing any data, allowing for the original data to be perfectly reconstructed (e.g., PNG for images).

27
New cards

What is Run Length Encoding (RLE)?

A simple form of compression where sequences of the same data value are stored as a single data value and count.

28
New cards

What is a variable in programming?

A variable is a named storage location in memory that can hold a value which must have a meaningful name.

29
New cards

What are data types in Python?

  • Integer: Whole numbers (e.g., 5)

  • Float: Decimal numbers (e.g., 5.0)

  • String: Text (e.g., "Hello")

  • Boolean: True or False values (e.g., True)

30
New cards

What is a list in Python?

fruits = ["apple", "banana", "cherry"]

31
New cards

What are conditional statements?

Conditional statements allow for decision-making in code using if, elif, and else.

if age >= 18:

print("You are an adult.")

else:

print("You are a minor.")

32
New cards

What is a loop in programming?

A loop is used to execute a block of code repeatedly. Common loops include for and while.

for fruit in fruits: print(fruit)

33
New cards

What is an array?

An array is a collection of elements identified by index or key. In Python, lists often serve as arrays.

numbers = [1, 2, 3, 4, 5]

34
New cards

What does a.append(value) do?

Adds value to the end of the list a.

a = [1, 2, 3]

a.append(4)

# a becomes [1, 2, 3, 4]

35
New cards

What does a.remove(value) do?

Removes the first occurrence of value from the list a. If value is not found, it raises a ValueError.

a = [1, 2, 3, 2]

a.remove(2)

# a becomes [1, 3, 2]

36
New cards

What does len(a) do?

Returns the number of elements in the list a.

a = [1, 2, 3]

length = len(a)

# length becomes 3

37
New cards

What does a.index(value) do?

Returns the index of the first occurrence of value in the list a. Raises a ValueError if value is not found.

a = [1, 2, 3]

index = a.index(2)

# index becomes 1

38
New cards

What does a.insert(index, value) do?

Inserts value at the specified index in the list a.

a = [1, 2, 3]

a.insert(1, 5)

# a becomes [1, 5, 2, 3]

39
New cards

What does a.pop() do?

Removes and returns the last item from the list a. If the list is empty, it raises an IndexError.

a = [1, 2, 3]

last_item = a.pop()

# last_item becomes 3, a becomes [1, 2]

40
New cards

What does a.pop(index) do?

Removes and returns the item at the specified index from the list a. Raises an IndexError if the index is out of range.

a = [1, 2, 3]

item = a.pop(1)

# item becomes 2, a becomes [1, 3]