Shared Flashcard Set

Details

02- Variables, expressions, and statements
Python for Informatics - Dr. Charles Severance
19
Computer Science
Not Applicable
08/09/2015

Additional Computer Science Flashcards

 


 

Cards

Term
assignment
Definition
A statement that assigns a value to a variable.
Term
concatenate
Definition
To join two operands end to end.
Term
comment
Definition
Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.
Term
evaluate
Definition
To simplify an expression by performing the operations in order to yield a single value.
Term
expression
Definition
A combination of variables, operators, and values that represents a single result value.
Term
floating point
Definition
A type that represents numbers with fractional parts.
Term
floor division
Definition
The operation that divides two numbers and chops off the fractional part.
Term
integer
Definition
A type that represents whole numbers.
Term
keyword
Definition
A reserved word that is used by the compiler to parse a program; you cannot use keywords like if, def, and while as variable names.
Term
mnemonic
Definition
A memory aid. We often give variables mnemonic names to help us remember what is stored in the variable.
Term
modulus operator
Definition
An operator, denoted with a percent sign (%), that works on integers and yields the remainder when one number is divided by another.
Term
operand
Definition
One of the values on which an operator operates.
Term
operator
Definition
A special symbol that represents a simple computation like addition, multiplication, or string concatenation.
Term
rules of precedence
Definition
The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.
Term
statement
Definition
A section of code that represents a command or action. So far, the statements we have seen are assignments and print statements.
Term
string
Definition
A type that represents sequences of characters.
Term
type
Definition
A category of values. The types we have seen so far are integers (type int), floating-point numbers (type float), and strings (type str).
Term
value
Definition
One of the basic units of data, like a number or string, that a program manipulates.
Term
variable
Definition
A name that refers to a value.
Supporting users have an ad free experience!