Upgrade to remove ads
Python - Chapter 2
Terms in this set (34)
List the 5 phases of developing a program.
1. Design the code.
2. Write the code.
3. Correct Syntax errors.
4. Test the program.
5. Correct logic errors.
A logic error is ______:
A logic error is a mistake that does not prevent the program from running, but causes it to produce incorrect results.
What step are logic errors found in of making a program?
Step 3, when you test the program.
Writing the code is step ______
Step 2 is when you write the code.
Designing the program is step ______
Step 1 is when you design the program.
Testing the program is step _____
Step 4 is when you test the program.
Correcting logic errors is step _____ in designing a program:
Step 5 is when you correct logic errors.
When do you correct syntax errors in making a program?
step 3, is when you correct syntax errors.
the person, group or organization that is asking you to write a program.
a single task that the program must perform in order to satisfy the customer.
a set of well-defined logical steps that must be taken to perform a task.
fake code; informal language that has no syntax rules and is not meant to be complied or executed.
a diagram that graphically depicts the steps that take place in a program.
1. Ovals are terminal symbols (start, end)
2. Parallelograms are input symbols and output symbols - reads input and displays output
3. rectangles are processing symbols. steps in which the program performs some process on data, math calculation.
any data the program receives while it is running.
a piece of prewritten code that performs an operation.
the data you want displayed on screen.
a sequence of characters that is used as data.
when a string appears in actual code of a program.
can you use double and single quotes in string literals? True or False.
a comment that appears at the end of a line of code.
a name that represents a value stored in the computer's memory
when a variable references the value:
when a variable represents a value in the computer's memory.
a variable that references a piece of data.
variable naming rules ______:
- you cannot use one of python's key words as a variable name
- a variable cannot contain a space
- the first character must be one of the letters a - z, A-Z or (underscore)
- after the first character you may use the letters a-z, A-Z, or 0-9, or ____(underscores).
-upper and lower case characters are distinct.
naming variables style. begins with lowercase, second and subsequent words are written with uppercase first character.
when a value in memory is no longer referenced by a variable, interpreter automatically removes it from memory through Garbage collection.
a number that is written into a program's code.
variable = input(prompt)
name = input('What is your name? ')
prompt is _____
prompt is the string that is displayed on the screen.
THIS SET IS OFTEN IN FOLDERS WITH...
Python - Chapter 5
Python Quiz review for Exam Chapter 1
Think Python Chapter 3 Test Study Guide
YOU MIGHT ALSO LIKE...
Python Programming Ch 2
Programming Logic - Chapter 2
Chapter 2 (input, output, processing)
Chapter 2 ppt.
OTHER SETS BY THIS CREATOR
Chapter 3 - Review
Chapter 2 Review
OTHER QUIZLET SETS
Matter~Science 5th grade
MEOP CH 17
AP Micro EC