Introduction to Python Programming Flashcards
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.