Introduction to Python Programming Flashcards
(35 cards)
program
A sequence of computer language statements that have been crafted to do something
Input
Ways a program gets its data; user input through the keyboard, mouse, or other device.
Processing
Takes the data inputs and prompts and calculates the results (output).
Output
The results at the end of a program based on user input and system processing.
The ________ is the “grammar” rules of the programming language. Each programming language (like Python) has its own
Syntax
A ________ scans an entire program and attempts to convert the whole program at once to machine code.
Compiler
Also known as machine language. The computer uses binary (0s and 1s) to perform tasks. At a high level, the programming language code that you write gets translated or compiled to the machine code that the computer understands.
Machine Code
An intermediary step for code conversion between the programming language that you write and the machine code that a computer uses.
Bytecode
An __________ takes the bytecode one line at a time and converts it to machine code.
Interpreter
Virtual Machine
A software program that behaves like a completely separate computer within an application.
what are the steps for the development life cycle?
- Understand what the problem being asked is.
- Plan out the logic for the problem by breaking it down into a sequence of steps or algorithm.
- Write the code to perform the algorithm.
- Compile/translate the code to a format the computer can read.
- Test the program to ensure there are no syntax or logical errors.
- Deploy the program to be used.
- Support the maintenance of the program.
Which set of operations represents the correct order of a typical computer program?
a.) Output-Process-Input
b.) Input-Process-Output
c.) Input-Output-Process
d.) Process-Input-Output
b.) Input-Process-Output
- What are the grammar rules that define a programming language referred to as?
a.) Machine code
b.) Pseudocode
c.) Syntax
d.) Byte code
c.) Syntax
- Which term refers to the sequence of steps to solve a problem?
a.) Interpreter
b.) Machine code
c.) Compiler
d.) Algorithm
d.) Algorithm
Variable
A named memory location that has the ability to hold various distinct values at different points in time in the program.
Concatenate
combine words or numbers
Pseudocode
English-like statements that describe the steps in a program or algorithm.
String
A data type that can store a literal string as a value.
Literal String
A series of characters that are combined together and enclosed in quotes; for example, “Enter in the second number” is a literal string.
- Which term refers to the English-like statements used to describe the steps in a program or algorithm?
a.) Pseudocode
b.) Source code
c.) Program
d.) Variable
a.) Pseudocode
- The first step in designing any program is to __________.
a.) determine the program inputs
b.) determine the purpose of the program
c.) break down the problem into its smallest parts
d.) determine the program outputs
b.) determine the purpose of the program
- __________ define(s) how steps should be arranged so that a program can complete a task correctly.
a.) Logic
b.) Pseudocode
c.) Variables
d.) Algorithm
a.) Logic
Algorithm
A logical step-by-step plan that we need to build for solving a problem.
Comments
The “#” (hashtag) is used in Python code to identify a comment. Commented lines of code are ignored by the compiler during run time. A programmer adds comments throughout the code to explain how the program or function works.