Study Guide for Test 1 (05 Jul 2013)
* There will be conversions of decimal numbers into binary,
octal, and hexadecimal and vice versa.
* There will be conversions of negative numbers into 8-bit
2's complement numbers.
* You will define variables, i.e. write meaningful variable names and
their values.
* You will create truth tables for Boolean expressions that will
involve Boolean operators not, and, or, xor. The Boolean expressions
will involve just two Boolean variables (let us say A and B) and your
truth tables will have all possible permutations of A and B.
* You will evaluate expressions given certain input values.
* You will write Boolean expressions that evaluate to True
given a set of conditions.
* There will be questions on conditionals (if-else). You will either
write conditional statements given a set of criteria or you will
be given a conditional statements and a set of input values and
you should be able to state what the result or output of those
conditionals will be.
* You are responsible for these built-in functions:
- abs (x)
- chr (i)
- float (x)
- int (x)
- ord (c)
- pow (x, y)
- range ([start], stop [, step])
- str (object)
* You are responsible for these math functions:
- math.fabs()
- math.ceil()
- math.floor()
- math.sqrt()
- math.degrees()
- math.radians()
* You will have to write a full length program that will
involve user input, computations, conditionals, loops
and output.