JonathanWuz / Jonathan-Wu-s-Repository

Apache License 2.0
0 stars 0 forks source link

CB MCQ #2 Test Corrections #18

Open JonathanWuz opened 1 year ago

JonathanWuz commented 1 year ago

Q9

Screenshot 2023-02-02 8 58 15 AM I got this problem wrong because I misunderstood the question. The question is asking for a procedure that will display the number of variables that are greater than 100. Thus, we need to increase the count until the position is greater than n, that way the function iterates completely through the list.

Q10

Screenshot 2023-02-02 10 20 41 AM I got one answer correct. However, I missed the second correct option. The expression (num greater than 15) or (num equals 15) evaluates to true if (num greater than 15) is true, or if (num equals 15) is true, or if both are true. The original expression (the expression in this problem) evaluates to true if numis greater than or equal to 15.

Q13

Screenshot 2023-02-02 10 26 27 AM I is incorrect because the person could be 18 exactly and thus eligible to vote. III is correct because it eliminates people under 16 and people above 18. Thus, D is the correct option.

Q14

Screenshot 2023-02-02 10 30 04 AM The correct answer is always true whereas I chose always false. The OR statement allows A to be anything and still fullfill the function to be true. Therefore, the answer is A.

Q17

Screenshot 2023-02-02 10 38 54 AM In this question, I chose A and B which A was correct but B was not. The other correct answer is D. B was wrong because it represents the procedure if it were a OR function, not AND. D represented and because it made sure all conditions were satisfied thus making it the right answer.

Q42

Screenshot 2023-02-02 10 41 09 AM This option is incorrect. While statements I and II are correct, statement III is also correct because the results of computer simulations may be useful in presenting design possibilities to customers.

Q47

Screenshot 2023-02-02 10 42 06 AM This option is incorrect. Encrypting a folder of digital files does not require a heuristic. Encryption is based on mathematical formulas that process files in a reasonable time. The correct answer is C because finding the shortest distance between routes has several possibilities and can be uncomplicated through a heuristic approach.

Q48

Screenshot 2023-02-02 10 43 41 AM This option is incorrect. Line 5 and line 6 are both inside the FOR EACH loop. Interchanging them will not affect the number of operations performed. Option D is correct because doing the same line 7 procedure outside or inside the For Loop makes no difference and cuts down on unecessary processing.