Python Final

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

1/13

flashcard set

Earn XP

Description and Tags

Random flashcards on CS

Last updated 10:34 PM on 4/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

14 Terms

1
New cards

Interpreted Language

Is interpreted at runtime into machine code, instead of being compiled ahead of runtime.

2
New cards

Expression

An expression is a combination of values/variables/operators that evaluates to a value.

3
New cards

Three basic elements (external view):

Input, Processing, Output

4
New cards

Main components

CPU, memory (RAM), input devices, output devices, and typically storage

5
New cards

CPU’s job?

Fetch–decode–execute instructions, perform arithmetic/logic (ALU), and control overall operation (control unit).

6
New cards

Compiled?

Source code is translated ahead of time into machine code (or an executable).

7
New cards

Interpreted?

Code is executed by an interpreter at runtime (often without producing a standalone executable first).

8
New cards
<p>9. What error happens here? </p>

9. What error happens here?

Type Error

9
New cards
<p>Should you use a list or tuple?</p>

Should you use a list or tuple?

Tuple

10
New cards

What does file mode “w” do?

Opens file for writing and overwrites existing content

11
New cards

What does file mode “a” do?

Opens file for appending and adds new content without deleting existing content.

12
New cards

Which pattern matches a string ending in .edu?

.+@.+\.edu

13
New cards

Which method is automatically called when an object is created?

__init__

14
New cards

self represents…

the current instance of the class