Computer Science | Sections 0-2

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/44

flashcard set

Earn XP

Description and Tags

Last updated 8:10 PM on 6/9/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

45 Terms

1
New cards

Computer

An electronic device that processes data, follows instructions, and produces results.

2
New cards

Input Devices

Devices such as keyboard and mouse that allow users to input data into a computer.

3
New cards

Output Devices

Devices such as monitor and printer that output data from a computer.

4
New cards

Central Processing Unit (CPU)

The primary component of a computer that performs most of the processing inside a computer.

5
New cards

Memory/Storage

Components like RAM and hard drive used to store data in a computer.

6
New cards

Computer Architecture

Describes how components communicate and interact with each other.

7
New cards

Bits

The basic unit of data in computing, represented as electrical signals (0s and 1s).

8
New cards

Unicode

A standard for encoding text from different languages using unique codes for each character.

9
New cards

Binary (Base 2)

A positional number system that uses two digits: 0 and 1.

10
New cards

Decimal (Base 10)

A positional number system that uses ten digits: 0-9.

11
New cards

Hexadecimal (Base 16)

A positional number system that uses sixteen digits: 0-9 and A-F.

12
New cards

int

Data type representing (e.g., 12, -5).

13
New cards

float

Data type representing numbers with decimals (e.g., 3.14, -0.5).

14
New cards

char

Data type representing a single character (e.g., 'a', 'Z').

15
New cards

Associativity

The order in which operators of the same precedence are evaluated.

16
New cards

Precedence

Determines which operator is evaluated first.

17
New cards

import

Loads an entire module in Python.

18
New cards

from … import …

Loads specific functions or classes from a module.

19
New cards

Dot Operator (. )

Accesses functions or attributes in a module.

20
New cards

Built-in Functions

Functions like type(), dir(), and help() that provide information about types and methods.

21
New cards

Turtle Functions

Drawing commands used in Turtle Graphics (e.g., forward(), left(), right()).

22
New cards

Positional vs Keyword Parameters

Positional parameters are passed in order; keyword parameters specify names.

23
New cards

Default Values

The value assigned to a function parameter when no corresponding argument is provided during the function call.

24
New cards

range Objects

Used to specify the sequence of numbers to iterate over in loops.

25
New cards

Sequential

Code runs line by line in order.

26
New cards

Iterative

Repeats code using loops (definite or indefinite).

27
New cards

Exception Handling

Manage errors and unexpected events that occur during program execution.

28
New cards

Boolean Operators

Operators such as and, or, not that combine or modify conditions.

29
New cards

elif

Checks extra conditions if previous ones are not True.

30
New cards

Initialization

Set starting value for the loop variable.

31
New cards

Mapping

The correspondence between strings of 0’s and 1’s and characters.

32
New cards

Machine Language

A mapping of instructions to particular strings that the CPU can process.

33
New cards

Hierarchy of Languages:

1) Machine Languages

2) Assembly Languages

3) High Level Languages

4) Very High Level Languages

34
New cards

Variables

Names for memory location.

35
New cards

Opcodes

Names for operations.

36
New cards

Compiler

Translates all code, then runs.

37
New cards

Interpreter

Translates code line by line (like a conversation).

38
New cards

Method/Function Calls

Jumps to a function, run its code, then returns.

39
New cards

Selection (if/else)

Make decisions and run different blocks of code based on conditions.

40
New cards

random

A package that is built to allow for psuedo-random number generation.

41
New cards

random.random()

Generates a random float in [0, 1).

42
New cards

random.randint(a,b)

Generates a random int in [a, b].

43
New cards

Flow of Control

Determining what code executes and in what order.

44
New cards
<p>Iteration</p>

Iteration

Executes blocks of code zero or more times for loops.

45
New cards

While Loop

Initialization - pre-loop code to initialize variables used in a loop

Loop condition check - decide whether to keep iterating or not

Loop body - code which is being repeated