My final score
The score I got on my final
Test corrections
-
Question #1, I got question 1 wrong because I answered it saying that the function is 2(5x3) but the actual answer was that it was Initializing result to 2 and multiplying it by 5 a total of three times yields 2(5^3), not 2(5×3).
-
Question #22, I got that question wrong because I said the binary was equal to 6, but the actual answer was Binary 0011 is equivalent to 2^1+2^0, or decimal 3. Binary 0110 is equivalent to 2^2+2^1, or decimal 6. Binary 1111 is equivalent to 2^3+2^2+2^1+2^0, or decimal 15. Decimal 9 is not equivalent to any of the given binary numbers.
-
Question #27, I got question 27 wrong because I said that A string variable named s and a numeric variable named . But the correct answer is C because the status of whether a student is absent can be represented using only the values true and false, so a Boolean variable is most appropriate
-
Question #35, I got question 35 wrong because I answered it with only one out of the two answers, I selected option A which was sets maxPS to 50 by default, then uses the IF statement to set maxPS to 30 when time > 120. But there was one more answer to this question, D was also right because it uses the IF statement to set maxPS to 30 when time > 120 and uses the ELSE statement to set maxPS to 50 otherwise.
-
Question #47, The correct answer for question 47 The first five statements assign values to the variables. The sixth statement assigns the value of x + b (which is 40) to b. The seventh statement assigns the value of x + 1 (which is 21) to a. But I answered it saying The sixth statement assigns the value of x + b (which is 40) to b. The value of c is never changed from 30 after it is initially assigned. I really didn't know what to do for this question because I was reading the problem wrong and I was struggling.
-
Question #49, I got question 49 wrong because I said that word <- "on" word<- contant(reverse(word), reverse(word)). But the correct answer was word ← "on" word ← concat(reverse(word), word) I got this wrong because I read the answer wrong and I rushed to complete the test