Study Guide for Test 1 (03 Oct 2012)
* 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 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 define variables, i.e. write meaningful variable names and
their values.
* You will evaluate expressions given certain input values. This will
involve all the operators that were discussed in class.
* You will write Boolean expressions that evaluate to True
given a set of conditions.
* There will be questions on conditionals. 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 will write simple loops using while and for. You should know
when and how to use break and continue.
* You are responsible for these built-in functions:
- abs (x)
- chr (i)
- float (x)
- int (x)
- len (s)
- long (x)
- ord (c)
- 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 formatted
output.