GCSE (9-1) Computer Science - Assessment 1

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

What are input devices?

1 / 39

flashcard set

Earn XP

Description and Tags

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

40 Terms

1

What are input devices?

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

New cards
2

What are output devices?

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

New cards
3

What are sensors?

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

New cards
4

What are robotics?

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

New cards
5

What are automated transport systems?

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

New cards
6

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).

New cards
7

What is a variable?

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

New cards
8

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).

New cards
9

What are loops?

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

New cards
10

What is a subroutine?

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

New cards
11

What are parameters?

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

New cards
12

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.

New cards
13

What is an array?

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

New cards
14

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).

New cards
15

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.

New cards
16

What is the largest number held in x bits?

The largest number is 2^x - 1

New cards
17

What is ASCII?

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

New cards
18

What is Unicode?

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

New cards
19

What are bitmap images?

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

New cards
20

What is pixel resolution?

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

New cards
21

What is color depth?

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

New cards
22

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.

New cards
23

What is the Hertz formula for sound?

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

New cards
24

How do you calculate file size for sound?

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

New cards
25

What is lossy compression?

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

New cards
26

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).

New cards
27

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.

New cards
28

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.

New cards
29

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)

New cards
30

What is a list in Python?

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

New cards
31

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.")

New cards
32

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)

New cards
33

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]

New cards
34

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]

New cards
35

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]

New cards
36

What does len(a) do?

Returns the number of elements in the list a.

a = [1, 2, 3]

length = len(a)

# length becomes 3

New cards
37

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

New cards
38

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]

New cards
39

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]

New cards
40

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]

New cards

Explore top notes

note Note
studied byStudied by 11 people
... ago
5.0(1)
note Note
studied byStudied by 18 people
... ago
5.0(1)
note Note
studied byStudied by 36 people
... ago
5.0(2)
note Note
studied byStudied by 18 people
... ago
5.0(1)
note Note
studied byStudied by 1 person
... ago
5.0(1)
note Note
studied byStudied by 18 people
... ago
5.0(1)
note Note
studied byStudied by 16 people
... ago
5.0(1)
note Note
studied byStudied by 23 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (48)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 7 people
... ago
5.0(1)
flashcards Flashcard (153)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (63)
studied byStudied by 44 people
... ago
5.0(1)
flashcards Flashcard (48)
studied byStudied by 5 people
... ago
5.0(2)
flashcards Flashcard (28)
studied byStudied by 15 people
... ago
5.0(1)
flashcards Flashcard (40)
studied byStudied by 27 people
... ago
5.0(1)
flashcards Flashcard (34)
studied byStudied by 13 people
... ago
5.0(1)
robot