Home | TPT | Tech Talks | Create Task | Test Corrections | Final Review |
Quiz 5
Score: 25/50 (only answered 30 questions)
Question Number | Correct Answer |
---|---|
2 | B - The error occurs because there are two calls to random for each iteration instead of just the necessary one. Line 9 should be replaced with else so it increments yCount when xCount doesn't meet the requirements. |
4 | B & C - I got C correct, but I didn't get B. B is correct because when you divide any number by 2, the remainder can only be two values, 0 or 1. Then, these values can be represented by a single bit. |
7 | C - 6 bits would only represent 2^6 = 64 employees. Therefore, you would need 7 bits, or 2^7 = 128 to represent the full 100 employees. |
15 | C - Program A displays 1,2,3,4,5,6,7,8,9,10 while Program B displays 2,3,4,5,6,7,8,9,10,11. So, they both display the same number of values, but Program B will always display one number greater than Program A. |
26 | A - The program properly executes its intended goal because the variable is initialized as 0 and increments count by 1 each time target is found. |
Quiz 3
Score: 40/50
Question Number | Correct Answer |
---|---|
1 | B - Only 2 connections must be removed before Device T can no longer communicate with Device U because Device U is only connected to 2 other devices. I said 4 connections because I was only looking at Device T. |
6 | A and D - They both display integers from 1-20 that aren't divisible by 3, then after 20 it terminates. I said B and C because I was thinking the opposite logic. |
7 | D - The procedure returns the sum of integers from 1 to n, not the product of integers. I don't know why I was thinking it was the product, but looking at it now it is very obvious that it's the sum. |
13 | C - They would be charged $5 for the first 25, then after that $7 for each additional unit. I just switched around the 7 and 5 because I mixed up the logic. |
17 | C and D - The procedure returns the first instance where a number is less than the first number. Therefore, in option C it would return 20 and in option D, it would return 30. |
34 | B - Factorial does not run in a reasonable amount of time, so it does meet the requirements of a heuristic approach. I chose binary search, but since it runs in a resonable amount of time, heurisitc is not appropriate. |
35 | D - If the music was purchased and downloaded through a licensed music store, then it will not violate the DMCA. The option I chose is incorrect because I didn't realize geolocation could be accessed by the website. |
41 | D - In public cryptography, a message is encrypted with a recipient's public key and decrypted with the recipient's private key. I chose the sender's private key, but that can't be used to decrypt. |
43 | C - Users with a premium account won't even receive advertisements in the first place. I just blanked on the fact that premium users pay to not receive advertisements, therefore, they won't receive targeted advertisements. |
47 | A and D - These are the only two options that properly display the user's bonus score. I got this wrong because I kind of just guessed. |
Quiz 1
Score: 36/50
Question Number | Correct Answer | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | B - When cookies created during anonymous browsing session are deleted, so is the information from the browser. | ||||||||||||||||
6 | C - The hexadecimal number 56 represents the letter V because 56 in hexadecimal is equal to 86 in decimal. | ||||||||||||||||
9 | B - The company can't provide a human representative for every single call, especially when made after business hours. | ||||||||||||||||
12 | A - Only the audio signal of customer's voice is needed because the upgrade doesn't use keypad selection to describe the issue. | ||||||||||||||||
14 | C - 6 bits allow for 64 items to be identified, where as 7 bits allow for 128 items to be identified. This is 2 times as many. | ||||||||||||||||
24 | A - Data transmitted in packets contains the data itself, as well as the metadata of the information. | ||||||||||||||||
25 | C- Creative Commons license increases the amount of free, public content, therefore, the author wouldn't want to prevent people from sharing copies. | ||||||||||||||||
29 | C - The test case isn't sufficient enough because it's only been tested one time, which is not enough information to make a conclusion. | ||||||||||||||||
36 | The database stores item identification and how many are available, meaning it could detect how many aren't in store. | ||||||||||||||||
37 | Even though y>z in this instance, it is less than x, therefore it would go to the else statement and falsely display z as the max. | ||||||||||||||||
43 | C - This could lead to a phishing attack because it requres a user to click on an email and provide personal information. | ||||||||||||||||
44 | A - The bank is not trying to trick anyone into giving them personal information, rather public information. | ||||||||||||||||
46 | D - Protocols are a set of rules. Open protocols establish that if used on internet enable devices, they can communicate in a standard way. </tr> | ||||||||||||||||
50 |
C - RGB triplet values can be calculated by subtracting from the original value from 255. This original value can later be restored to exact original.
</tr>
</table>
## Quiz 2
### Score: 43/50
|