Question: Question 7 (5 points) The expression i +j+-ki is equivalent to which of the following? O ( + j - k) * i (i+j) -



Question 7 (5 points) The expression i +j+-ki is equivalent to which of the following? O ( + j - k) * i (i+j) - (k* i) Oi + ((-k) * i) None of the above (i+j) + (-k * i) Question 8 (5 points) Given: int a = 1; int b; b = a* a++; The result stored in b is: Undefined - the code may not compile or execute or may behave differently when compiled with different compilers Implementation defined - the result will vary depending on what system is used 2 1 Question 9 (5 points) The expression a += b + c is equivalent to: a += (b += c) (a += b) += C a = a + b + c O a = (a + b) + (b + c) Question 10 (5 points) Given: char myString[] = "Hello World"; int idx; int count = %; Which of the following will correctly count the number of non-null characters in the array myString? while(myString[idx]++ != '\0') count++; O while(myString(idx) == '\0') count++; while(myString[idx++] != '\0') count++; O while(myString[idx] == '\0') idx++; Question 11 (5 points) Given: #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
