CIS71, Section 4 FIVE MINUTE TEST #7 November 2, 2006 (10) 1. Given the function void foo(int x, int *y) { x += 2; *y += 3; } given the integer variables a and b initiated respectively to 1 and 2, what will be their value after the call foo(a, &b)? (5) 2. Given the definitions typedef struct Foo {int x; double y} foo; foo a; How do I assign 3 to the field x of a? (15) 3. (a) What is the distinction between text and binary files? (b) What is the difference between accessing files sequentially or at random? (c) How do I open for reading the file temp.txt? (d) How do I open for writing the file temp1.txt? (10) 4. Assume the foo is as defined in question 2. Implement the function void incr(foo *p) that increments both fields of the structure referenced by p.