Test Results

(image here)

Questions I missed

Question 11

I chose (C) but the correct answer was (A). The input A and input B are both connected to eachother by an or statement. This means only one of the inputs needed to be true in order for the whole statement to be set to true. Since input A was already true, it didn't matter what input B was because the or statement only needs one true statement. The and statement now has two trues which results in the output being true.

Question 41

I chose (A) and (C) but the correct answers were (A) and (D). [RANDOM (1, 5) = 1] works because there is a total of FIVE numbers and ONE of those numbers activates the part of the code that would hold 20% of the voters. 1 out of 5 times 100% is 20%. [RANDOM (1, 10) = 2] doesn't work because there is a total of TEN numbers and only ONE of those numbers activates the part of the code that should have helded 20% of the voters. However, it doesn't hold 20% of the voters but instead it is holds 10% because 1 out of 10 times 100% is only 10%. [RANDOM (1, 10) <= 2] works because there is a total of TEN numbers and TWO of those numbers activates the part of the code that would hold 20% of the voters. The two numbers are 1 and 2. 2 out of 10 times 100% is 20% making this code segment one of the correct ones. During the test, I failed to see what the _ purpose was in the code segments and thought they represented the amount of numbers that activate the part of the code holding 20% of the voters. They were actual just representing the value or values maening "=" it used for one value while "<=", ">=", ">" "<" can hold one or more values.

Question 45

I chose (A) but the correct answer was (C). I chose (A) thinking that a heuristic approach was solving a problem in a resonable amount of time and come up with an approxiamte solution. However, an heuristic approach it actual when a problem can't be solved in a reasonable amount of time and people are forced to find an approximate solution. Basically, the answer you come up with when you can't solve something or don't have the time to solve it. It is like an educated guess.