# Shared Flashcard Set

## Details

Ch 2 Terms
How to Think Like a Computer Scientist Glossary Terms
16
Computer Science
03/31/2012

Term
 Value
Definition
 A number or string (or other thing to be named later) that can be stored in a variable or computed in an expression
Term
 Type
Definition
 A set of values. The type of a value determines how it can be used in expressions. So far, the types you have seen are integers (type int), floating-point numbers (type float), and strings (type string)
Term
 Floating-point
Definition
 A format for representing numbers with fractional parts
Term
 Variable
Definition
 A name that refers to a value
Term
 Statement
Definition
 A section of code that represents a command or action. So far, the statements you have seen are assignments and print statements
Term
 Assignment
Definition
 A statement that assigns a value to a variable
Term
 State diagram
Definition
 A graphical representation of a set of variables and the values to which they refer
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
 Operator
Definition
 One of the values on which an operator operates
Term
 Expression
Definition
 A combination of variables, operators, and values that represents a single result value
Term
 Evaluate
Definition
 To simplify an expression by performing the operations in order to yield a single value
Term
 Integer division
Definition
 An operation that divides one integer by another and yields an integer. Integer division yields only the hwole number of times that the numerator is divisible by the denominator and discards any remainder
Term
 Rules of precedence
Definition
 The set of rules governing the order in which expressions involving multiple operators and operands are evaluated
Term
 Concatenate
Definition
 To join two operands end-to-end
Term
 Composition
Definition
 The ability to combine simple expressions and statements into compound statements and expressions in order to represent complex computations concisely
Term
 Comment
Definition
 INformation in a program that is meant for other programms (or anyone reading the source code) and has no effect on the execution of the program
Supporting users have an ad free experience!