1/13
Random flashcards on CS
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Interpreted Language
Is interpreted at runtime into machine code, instead of being compiled ahead of runtime.
Expression
An expression is a combination of values/variables/operators that evaluates to a value.
Three basic elements (external view):
Input, Processing, Output
Main components
CPU, memory (RAM), input devices, output devices, and typically storage
CPU’s job?
Fetch–decode–execute instructions, perform arithmetic/logic (ALU), and control overall operation (control unit).
Compiled?
Source code is translated ahead of time into machine code (or an executable).
Interpreted?
Code is executed by an interpreter at runtime (often without producing a standalone executable first).

9. What error happens here?
Type Error

Should you use a list or tuple?
Tuple
What does file mode “w” do?
Opens file for writing and overwrites existing content
What does file mode “a” do?
Opens file for appending and adds new content without deleting existing content.
Which pattern matches a string ending in .edu?
.+@.+\.edu
Which method is automatically called when an object is created?
__init__
self represents…
the current instance of the class