Class 33, Monday, April 9
We know you can
You are ready now – For problem solving prowess – Your best will be shown
Students with accomodations
- Please report to Rice 108.
Look both ways
- Show your abilities
- Remember the University accepted you because you are an outstanding student.
- Based on your past educational achievements, I expect you to do well on this test.
- Answer the questions in any order that you want.
- I suggest you do things the easiest way possible. There are no intended trick questions. Each module has a straight-forward answer (e.g., my modules all together had less than fifty lines of code).
- All modules have the same worth, so do them in the order that you find them easiest. They are asked in the order, that I thought would be easiest.
- To make things go smoother, you are strongly encouraged to submit as you go along.
- You must use my download files.
- Hand in both parts of the test.
- Before you leave the room check that you uploaded all of your solutions. Do not ask afterwards whether you can submit a forgotten solution.
- This pledged exam is closed notes. The only device you may access during the test is your laptop.
- Uploading after you leave the room means you are withdrawing from the class.
- Do not access class examples, web solutions, or your own past assignments during the test; that is, the only code you may access or view are ones that you develop for this test.
- The only windows to be open on your computer are PyCharm and a single browser with tabs reachable from the class website.
- PyCharm can be used for developing the modules to be submitted. It cannot be used for the short answer questions.
- With regard to your functions:
- Comments including header identifying comments are not necessary.
- You should follow other class style practices; e.g., whitespace, identifier naming, etc.
- Only do what is requested.
- None of the functions should get input or produce output.
- Functions should not modify their parameters in any way.
- Whether a function is testable (compiles) is important.
- Any form of cheating on a test can result in expulsion from the class and the incident being referred to the Honor Committee.
Important list operations
the_list.append( v )
vto end of
the_list.count( v )
- Returns the number of occurrences of
the_list.remove( v )
- Removes first occurence of
the_list.index( v )
- Index of first occurrence of
list3 = list1 + list2
- Explicit for my purposes means physically entered.
- i.e. means that is.
- e.g. means for example.
- Increment means add.
- Decrement means subtract.
- The additive inverse of a number x, is –x.
- The value of x / y is called a quotient.
- A number x is evenly divisible by a number y, if the remainder of x divided by y is zero. The % is the Python remainder operator.
- The terms dataset and table are synonymous. They are lists of lists. The standard view is they are lists of rows, where each row is a list of column values. The individual column values are called cells.