Computer Science Review Flashcards

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

1/32

flashcard set

Earn XP

Description and Tags

Flashcards covering key vocabulary and concepts from computer science lectures, including digital representation, searching algorithms, Python basics, and string manipulation.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

33 Terms

1
New cards

Binary Digits (bits)

0 or 1; can be used to represent information.

2
New cards

Pixels

Picture elements; elements of a digital image arranged in a rectangular grid.

3
New cards

Image Resolution

Number of pixels in a digital image; higher resolution means higher quality and detail but requires more storage space and processing effort.

4
New cards

Color Depth

Fixed number of binary digits used to represent each pixel's color; higher color depth means more colors available and better quality, but requires more storage space and processing effort.

5
New cards

RGB Colors

Colors usually represented in 24 bits, with 8 bits each to specify the quantity of red, blue, and green.

6
New cards

Representation Size (Image)

Number of bits required to represent an image: resolution (rows x columns) x color depth.

7
New cards

Sampling Rate (Sound)

Number of samples per second, typically 44100 samples per second.

8
New cards

Sample Size (Sound)

Number of bits recorded per sample, typical value is 16 bits per sample.

9
New cards

Representation Size (Sound)

Total number of bits required for a piece of sound: sampling rate x sample size x duration x channels.

10
New cards

Linear Search

Starts at the beginning of the list and looks into each item until it finds what you’re looking for or reaches the end of the list.

11
New cards

Binary Search

Find the middle one, see if it’s more or less, then half the list and repeat until the item is found or reaches the end of the list.

12
New cards

Variable

A named location in the computer memory in which you can temporarily store data that your computer may need

13
New cards

Comments (Python)

Useful to document your program and make it easier to understand; they start with a # symbol, appear in green, and do not affect how the program runs.

14
New cards

Functions (Python)

Special routines that do a specific job; examples include print() and input().

15
New cards

String (Python)

Data type that holds alphanumeric data as text.

16
New cards

Integer (Python)

Data type that holds whole numbers.

17
New cards

Float (Python)

Data type that holds numbers with a decimal point.

18
New cards

Boolean (Python)

Data type that holds either “true” or “false”.

19
New cards

Casting (Python)

Manually defining or changing the data type of a variable using functions like str(), int(), and float().

20
New cards

and (Boolean operator)

Returns True if both operands are True, otherwise returns False.

21
New cards

or (Boolean operator)

Returns True if at least one of the operands is True, otherwise returns False.

22
New cards

not (Boolean operator)

Returns the opposite of the operand's Boolean value.

23
New cards

IF statement

A selection statement that forces a decision based on a condition.

24
New cards

ELIF statement

Stands for Else, If and gives you more options in an if statement.

25
New cards

Algorithm

A sequence of steps or instructions which we can use to solve a problem or to complete a task

26
New cards

WHILE loop

A set of instructions that repeats again and again until the condition is false.

27
New cards

len() function

Returns the number of characters in a string.

28
New cards

String Slicing

Extracts a portion of a string.

29
New cards

find() method

Locates the index of a substring.

30
New cards

Lists

Created using square brackets [], with elements separated by commas. Elements are listed by index starting from 0

31
New cards

Concatenation

Combines strings using the + operator or join() method.

32
New cards

operators (python)

Addition  +

Subtraction  -

Multiplication  *

Division  /

Floor division (integer division)  //

Remainder (modulus)  %

Comparison operators

Equal to  ==

Not equal to  !=

Greater than  >

Less than  <

Greater than or equal to  >=

Less than or equal to  <=


33
New cards

assignment operators

used to assign value to variables, eg=