UIT2201: CS & the IT Revolution
Review Topics for Quiz 1 (Spring 2003)
Here are some general information on Quiz 1 (for your reference).
Topics Covered:
- Everything covered until Week 7 (last tutorial on 20-Feb)
- Lectures (including handouts given out in class),
- Tutorials (all problems except A-problems),
- Textbook [SG] Chapters 1-4
The Quiz, the Questions:
- Quiz 1 is CLOSED BOOK / CLOSED NOTES.
- Quiz 1 will consist of short questions (about 4-5 of them).
- ANSWER ALL QUESTIONS
The questions will be similar to those in the
tutorials and the notes. But, not so long.
Some Review Questions (RQ):
Some sample question for your reference. Of course, there is
no guarantee that all the Quiz questions are like that.
This is for reference only!
RQ-0
Review all the tutorial problems given to you.
RQ-1. [True/False]
For each of the following, answer TRUE or FALSE.
- A repeat-until loop can execute 0 times. _________
- One fundamental virtue of an algorithm is that if we can specify an
algorithm for solving a problem, then we can implement the algorithm
and have a very fast (and so practical) solution of the problem
since computers are very fast computing machines. _________
- Whether or not an operation is a primitive depends,
in part, on the computing agent that is
expected to execute it. _________
- Computer science work was done before the electronic computer was invented.
_________
RQ-2. (Short Answers)
- Give the definition of computer science as given in the
textbook [SG].
- Determine if the following are unambiguous, effectively computable operations.
Explain your reasoning for those that are not effectively computable.
- Read in the value of n;
- Check if X equals Y.
- List the positive, odd integers greater than 2201.
RQ-3.
At the beginning of the course, we have seen several
very diverse computing devices that come from different domains.
These includes email, ATM machine, course enrolment, online library
search, MP3 music access, 3-D walkthrough.
- What are some of the common capabilities of all these
diverse and different computing devices.
- Compare and contrast them with respect to these common capabilities.
RQ-?.
Modify the algorithm of Figure 2.10 (the "Find Largest Algorithm)
so that it computes the number of occurrences of the value x in
a list of n numbers.
RQ-?.
Explain how the popular outdoor game of scavenger hunt
can be defined recursively. Remember to also include the base case.
RQ-?.
Describe the best case input of the sequential search algorithm.
How many comparisons are required in a search of n items in this case?
RQ-?.
Describe the Worst case input for an unsuccessful search using
the sequential search algorithm.
How many comparisons are required in a search of n items in this case?
RQ-?.
For what input sizes n is an algorithm (A) that does 50n
units of work slower than an algorithm that does 2n2
units of work.
UIT2201: CS & IT Revolution; (Spring 2003); A/P Leong HW