Fundamentals of Python

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

1/59

flashcard set

Earn XP

Description and Tags

Last updated 6:30 PM on 3/31/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

60 Terms

1
New cards
Computer program
is a sequence of instructions that dictate the flow of electrical impulses within a computer system
2
New cards
Software
is written to be used on real computer systems
3
New cards
Computing professionals or software engineers
_______ develop software to drive particular systems
4
New cards
Software
A computer program is an example of computer _____
5
New cards
Compiler
translate one computer language into another
6
New cards
Variable
represents a value stored in the computer's memory
7
New cards
Interpreter
translates the Python code into machine code when a user runs the program
8
New cards
Source code
The higher-level language code is called ______
9
New cards
Target code
The corresponding machine language code is called the _________
10
New cards
Editor
allows the programmer to enter the program source code and save it to files
11
New cards
Syntax
refers to the way pieces of the language are arranged to make well-formed sentences
12
New cards
Interpreter
is like a compiler, in that it translates higher-level source code into target code
13
New cards
Debugger
allows a programmer to more easily trace a program's execution in order to locate and correct errors in the program's implementation
14
New cards
Profiler
collects statistics about a program's execution allowing developers to tune appropriate parts of the program to improve its overall performance
15
New cards
Guido van Rossum
created the Python programming language in the late 1980s
16
New cards
Python
is used for software development at companies and organizations such as Google, Yahoo, Facebook, CERN, Industrial Light and Magic, and NASA
17
New cards
Statement
is an instruction that the interpreter executes
18
New cards
Delimit
means to determine the boundaries or limits of something
19
New cards
Class
An expression's type is sometimes denoted as its _____
20
New cards
Concatenation
combination of 2 string
21
New cards
Assignment
An _________ statement associates a value with a variable
22
New cards
=
Symbol for assignment operator
23
New cards
Tuple
is a comma-separated list of expressions
24
New cards
Undefined Variable/unbound variable
A variable that has not been assigned is called
25
New cards
Identifier
is a word used to name things
26
New cards
Reserved words
these words are special and are used to define the structure of Python programs and statements
27
New cards
floating-point numbers
Python supports such noninteger numbers, and they are called
28
New cards
float
Any literal numeric value with a decimal point in a Python program automatically has the type _____
29
New cards
Integers
are whole numbers, which means they have no fractional parts, and they can be positive, negative, or zero
30
New cards
Truncation
removing the decimal part of a float is called ______
31
New cards
Control codes
control the way the console window or a printer renders text
32
New cards
\
A symbol that signifies that the character that follows it is a control code, not a literal character
33
New cards
\n
Control code for new line
34
New cards
\t
Control code for tab
35
New cards
\f
Control code for form
36
New cards
\b
Control code for backspace
37
New cards
\a
Control code for alert
38
New cards
Print
Function that enables a Python program to display textual information to the user
39
New cards
sep
Syntax for separator
40
New cards
Positional parameters
This is known as placeholders
41
New cards
Triple quotes
Python provides way to represent a string's layout more naturally within source code, using ___________
42
New cards
Evaluation
process of determining the expression's value
43
New cards
Precedence
when an expression contains two different kinds of operators, which should be applied first?
44
New cards
Associativity
when an expression contains two operators with the same precedence, which should be applied first?
45
New cards
Syntax Error
is a common error that the interpreter can detect when attempting to translate a Python statement into machine language
46
New cards
Run-time Exceptions
arise after the interpreter's translation phase and during the program's execution phase
47
New cards
Logic Errors
The program contains an error, but the interpreter is unable to detect the problem
48
New cards
Bugs
Undiscovered run-time errors and logic errors that lurk in software are commonly called ______
49
New cards
Algorithm
is a finite sequence of steps, each step taking a finite length of time, that solves a problem or computes a result
50
New cards
Boolean Expression
also called as predicate, may only have true or false outcome.
51
New cards
George Boole
The word "Boolean" came from a British Mathematician named _____
52
New cards
Boolean Algebra
is a branch of discrete math that is dedicated to the study of the properties and the manipulation of logical expressions
53
New cards
bool
Syntax for boolean in programming
54
New cards
Relational operators
simplest kinds of boolean expression to compare two expressions
55
New cards
Condition
is a Boolean expression that determines whether or not the body will be executed
56
New cards
Block
is a block of one or more statements to be executed if the condition is true
57
New cards
Body
This part of the if statement is sometimes called the _____
58
New cards
If-block
is a block of one or more statements to be executed if the condition is true
59
New cards
Else-block
is a block of one or more statements to be executed if the condition is False
60
New cards
Compound Boolean Expression
combination of two or more Boolean expression using logical operators