CIS1057 FIVE MINUTE TEST #8 November 9, 2010 (10) 1. Given the function void foo(int x, int *y) { x += 2; *y += 3; } and given the integer variables a and b initiated respectively to 1 and 2, what will be their value after the call foo(a, &b)? (10) 2. Write a function void foo() that prints 10 random numbers generated using the function rand. (15) 3. (a) What is the distinction between text and binary files? (b) How do I open for reading the file temp.txt? (c) How do I open for writing the file temp1.txt? (d) How do I close a file? (10) 4. Write a main program that will print all its command line parameters