Name: Login ID: Code:
Systems Breadth Exam
May 7, 1997
You must answer all questions in the Computer Organization section. You must also answer all the questions in two of the remaining four areas. Do not write any answers on this paper. Only mark your name and code on this paper. Write all your answers on the blank paper provided to you. Only use one side of each sheet of paper. Write your code at the top of each sheet of paper. Do not write your name on your answer sheets.
Assume typical values for the seek delay, throughput rate, and instruction cycle time.
#define SIZE 10
char buff[SIZE];
main () {
create(process1);
create(process2);
}
process1() { process2() {
int i=0; int i=0;
while (1) { while (1) {
buff[i] = getchar(); printf("%c", buff[i]);
i = (i+1) % SIZE; i = (i+1) % SIZE;
} }
} }
?- append([1,2], X, [1,2,3,4])
There are the following functional dependencies:
Customers (Id, Name, State, Phone)
Orders (Order-#, Id, Item, Quantity)
Stock (Item, Desc, Price, On-Hand)
Vendor (Vendor_Id, Item, Cost, State)
Transform the following into any commercial query language
such as SQL, QBE, or Quel: