Variable correct answers Named memory where information can be stored by a computer
program, follows naming rules in Python, name reflects its own use
Syntax correct answers The syntax of any language (including programming languages) is the set
of rules that must be followed when using the language.
Rules of variable names in Python correct answers The first character can be A-Z or underscored.
Cannot be Python keywords
Name must reflect the variable's use/meaning
No numbers as First character
Characters after First can be numbers 0-9, a-z, A-Z, or underscores
NO spaces
Print correct answers Displays output in Python program
Statement correct answers A complete instruction in a computer program. Some statements are
very simple; others can be quite complex. In Python, each line in a program normally consists of
one statement, although a longer statement may be broken up over two or more lines. Statements
execute from top to bottom
Assignment operator correct answers An operator is a word or special symbol that performs
operations on data. Example: + and =.
Bit correct answers Binary digit (0 or 1). It's the smallest unit of storage
Byte correct answers One byte = 9 bits
, Hardware correct answers The physical devices that make up a computer are called hardware.
Every computer needs a central processing unit (CPU) and main memory. Other categories of
hardware include secondary storage devices (like hard disc drives, USB drives and optical
drives), input devices (keyboard, mouse, etc.), and output devices (monitor, printer, etc.).
Software correct answers The programs that run on a computer are called software. Two main
categories of software: system software and application software. Subcategories of system
software include operating systems, utility programs and software development tools.
Low-level programming language correct answers Low-level programming languages require
the programmer to know a lot about how the particular CPU being used works in detail, and
require a large number of instructions to be written for even simple programs.
High-level programming language correct answers High-level programming languages operate at
a higher level of abstraction -- using them does not depend on a detailed understanding of how
the CPU works. Indeed, programs written using English-language-like instructions in a high-
level language can often be translated (compiled or interpreted) into machine-language
instructions for several different CPUs. Python is a high-level programming language.
Interpreter correct answers Converts a program written in a higher level language into a lower
level language and executes it, beginning execution before converting the entire program.
Compiler correct answers A translator program that compiles a complete translation of the
program from a high-level computer language into machine language before the program runs
for the first time.
Order of operations for Python correct answers PEMDAS
Parentheses
(**) --> (*) --> (/) --> (//) --> (%) --> + or -
Function definition correct answers Specifies what function does
Example: def function_name():