Notes from Book Chapter 1 Flashcards
What is the buildig block of a program
input:
Get data from the outside outworld.
output:
Display the results of the program on a screen or store them in a file.
sequential execution:
Perform statements one after another in the order they are encountered in the script.
conditional execution:
Check for certain conditions and then execute or skip a sequence of statements.
repeated execution:
Perform some set of statements repeatedly, usually with some variation.
reuse:
Write a set of instructions once and give them a name and then reuse those instructions as needed throughout your program.
What is a syntax Error?
Syntax errors
These are the first errors you will make and the easiest to fix. A syntax error means that you have violated the “grammar” rules of Python.
what is a Logic errors?
Logic errors
A logic error is when your program has good syntax but there is a mistake in the order of the statements or perhaps a mistake in how the statements relate to one another.
What is a semantic error?
Semantic errors
A semantic error is when your description of the steps to take is syntactically perfect and in the right order, but there is simply a mistake in the program.
What is a bug?
bug
An error in a program.
What is the CPU?
central processing unit
The heart of any computer. It is what runs the software that we write; also called “CPU” or “the processor”.
What is a compiler?
compile
To translate a program written in a high-level language into a low-level language all at once, in preparation for later execution.
What is a high level language?
high-level language
A programming language like Python that is designed to be easy for humans to read and write.
what is the interactive mode?
interactive mode
A way of using the Python interpreter by typing commands and expressions at the prompt.
what is an interpreter?
interpret
To execute a program in a high-level language by translating it one line at a time.
what is a low level language?
low-level language
A programming language that is designed to be easy for a computer to execute; also called “machine code” or “assembly language”.
What is the machine code?
machine code
The lowest-level language for software, which is the language that is directly executed by the central processing unit (CPU).
What is the main memory?
main memory
Stores programs and data. Main memory loses its information when the power is turned off.
what is parse?
parse
To examine a program and analyze the syntactic structure.
what is portability?
portability
A property of a program that can run on more than one kind of computer.