Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For each of the following, indicate whether the assertion is TRUE or FALSE s/n A

ID: 3751249 • Letter: F

Question

For each of the following, indicate whether the assertion is TRUE or FALSE s/n Assertion 1 In C, a recursive function can call itself directly. But, can also call itself indirectly through rue or False another function. The following terms switch, case, label, main, sizeof and goto are all ke s in C 3 In C, variables declared as static within a function can be accessible from outside the function where they are declared 4 In C, definition of a structure does not allocate memory for the structure, but declaration of a structure variable does In C, a register variable and an automatic variable are one and the same In most cases, a given selection structure (if, if/else, and switch) can be replaced by one or more simple if structures, but not in all cases In a repetition structure, the continue statement always forces execution to continue from the next statement after the r 6 tition structure 8 Given that p is declared as a pointer to float. The two operations *&p and &p as both legal and uivalent 9 In C, structures are unions are very similar. But structures typically require more memory than 10 Passing parameters by reference is inherently more error-prone than passing by value. With call by In general, the unary forms of the arithmetic operators + always have a higher precedence than unions. reference, the passed parameter cannot be protected from being modified by the called function. the c ng bi tors erations that involve floatin int numbers are generally faster than those with only inte

Explanation / Answer

1. TRUE, there can be an intermediate function which calls itself
2. FALSE, label is not a keyword in C
3. TRUE, static variables preserver the value even though they are out of scop[e
4. TRUE, definition doesn't need memory. Memory will be allocated once declared
5. FALSE, register is for faster memory access. Auto is the default storage option
6. FALSE, a simple if structures can be replaced with if/else statements.
7. FALSE, a continue forces execution to continue from next ITERATION
8. TRUE, Both provide the address of the variable to which p is pointed to
9. TRUE, unions are shared memory locations
10. TRUE, when a value is passed by reference, called function may modify it
11. TRUE, Unary operations have higher precedence
12. FALSE, floating point operations are slower