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
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
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
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
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
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
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
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.
Q9
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
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
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
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
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
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
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
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.