click below
click below
Normal Size Small Size show me how
CPI Module 15
Course Review
| Term | Definition |
|---|---|
| modularization | a solution method is broken into smaller sub problems, which in turn are broken down into smaller sub problems, continuing until each sub problem can be solved in a few steps |
| naming convention | when controls are named in a certain way |
| variable | a named place in computer memory that holds a value |
| data type | tells the computer what type of value to expect in a variable |
| integer | denoted by int and is used with both positive and negative numbers |
| string | denoted by str and is used with strings of characters/words |
| double | denoted by dbl and is used with decimal numbers |
| ACM | Association for Computing Machinery, membership organization for computing professionals |
| syntax error | occur when programmer doesn't follow rules of programming language, prevents program from running, wavy blue line appears under error |
| logic error | occur when program compiles and executes but the output is not what you wanted/expected |
| operators | the symbols we use for performing math |
| order of operations | Parentheses, Exponents, Multiply (left to right), Divide (in order in which it appears in problem), Add (left to right), Subtract (left to right) |
| and, or, not | 3 types of compound expressions |
| logical operator | used to form an expression with multiple conditions |
| loop | code repeated actions in a program |
| iteration | each time the loops runs |
| For ...Next Statements | loop structures that utilize a counter which begins at an assigned number |
| comments | brief explanatory notes added to code for the benefit of those reading it |
| convert 1001 from binary to decimal | (8 x 1) + (4 x 0) + (2 x 0) + (1 x 1) = 8 + 0 + 0 + 1 = 9 1001 in binary = 9 in decimal |
| accumulator | variable that the program uses to calculate a sum or product of a series of values |
| Do ...Loop | repeats a block of statements while a Boolean condition is true or until the condition becomes true |
| UCase | coverts a String object to all uppercase letters |
| milliseconds | time control interval property specified in |