PRELAB #7 RUBRIC: There are some bonus points on here. It is possible for a student to have a score > 50. 1.a.) -1 pt: In memory, 5, 10, 15, and 20 are shown consecutively -2 pts: a is pointing to 5. Note that there might be some variation on this given that as an array constant, and so it doesn't technically point to 5 like a normal pointer. Use your best judgement. -2 pts: p is pointing to 5 1.b.) 1 point per correct expression i.) 5 ii.) 15 iii.) 7 iv.) 15 v.) ILLEGAL (note that if they said it is legal but undefined, then give them +2 bonus points) 1.c.) while ( p < a + 4 ) { printf( "%i\n", *p ); p++; } -1 pt: First element that the loop prints is `*p` -1 pt: Last element that the loop prints is `*(p + 3)` -2 pts: All elements in `a` are printed -2 pts: No elements outside of *p and *(p + 3) are printed -1 pt: p is incremented once per iteration -2 pts: no other variables are introduced -1 pt: syntax is correct for everything 2.a.) There are a wide variety of correct answers. One such correct answer is "parameters a and b are copies of whatever was passed to switch1, so only the copies are swapped". Another correct answer is "The parameters a and b do not refer to whatever original variables were passed.". If they even mention something about a copy, that should be at least 3 points. Beyond that, use your best judgement. 2.b.) Again, there are a wide variety of correct answers. One such correct answer is "Parameters *a and *b are pointers to some variables in memory, and switch2 dereferences these to swap the values of the actual variables." Another correct answer is "Parameters *a and *b refer to other int variables in memory, and aren't copies of these variables." If they even mention something that a copy isn't made, then that should be at least 3 points. Beyond that, use your best judgement. 3.a) Whatever they put, it should be equivalent to: 'f', 'u', 'n', '\0', '\0', '\0' …at the binary representation. -2 pts: It starts with 'f', 'u', 'n' -1 point per subsequent null byte (or zero; anything equivalent to 0 at the binary representation) 3.b.) 1 point per correct value i.) 3 ii.) 0 iii.) Either NULL or (nil) iv.) "un" (with or without the double quotes) v.) "funny" (with or without the double quotes) 3.c) Full credit if they say it's to make room for the "ny". If they mention that other memory could be overwritten without this then give them three bonus points in addition to full credit. Use your best judgement for everything else.