1) What does this code fragement print? char buf[100]; strcpy(buf, "END"); if (buf == "END") { cout << "Latency stinks\n"; } 2) Look at the code below. Add to it the error checking code needed to print a message and exit on error len = read(sock, buf, 100); 3) What is the second argument to bindresvport? (I'm not thinking you have seen this function before. I'm expecting you to look it up) 3b) What does it return on error? 4) Which of these calls puts packets on the wire? Cicle all that apply gethostbyname gethostname read listen write socket connect accept 5) What is the possible range of port numbers? For example, can a port number be -1, or 1,000,000? 6) For transfering one file with nothing useful in the cache, which http version is fastest? 7) Using HTTP, how can you tell what type the incoming file is? 8) How does the server know your timezone so that it can send the correct last-modified-time? 9) (Yes/No) Using HTTP can a client request a file to be sent ONLY if the file has been modified in the last hour? 10) Which do you do first to make a working socket, bind or connect? 11) Using TCP, do you acknowedge bytes or packets? 12) Using Ping Pong, what is the most number of unackowledged packets? 13) Does traffic from here to Europe go across a satalite link? 14) Using fork(), what does a return value of >0 mean? 15) In IPv4, can a source pick the exact route a packet will take? (Hint: look up "source routing") 16) In general, typically, normally, in the real world, which sends the fewest bytes for a user doing normal web stuff, HTTP/0.9 or HTTP/1.1? 17) About what percent of packets are lost traveling across the Inet? 18) If you give write a '1' where the socket would go (first argument) where is the data sent? 20) Who stores cookies, client or server? 21) Where in IP the packet header is the routing information stored 22) Who has the IP address 10.X.X.X? 23) How many computers are on the Inet? 24) What does this print main() { fork(); fork(); pid = fork(); if (pid > -1) cout << "Cheee please\n"; }