Test Corrections

  1. Question: A company that develops educational software wants to assemble a collaborative team of developers from a variety of professional and cultural backgrounds. Which of the following is NOT considered a benefit of assembling such a team?
  • My answer: Collaboration that includes diverse backgrounds and perspectives can help the team anticipate the needs of a variety of software users.
  • Correct answer: Collaboration that includes diverse backgrounds and perspectives can eliminate the need for software testing.
  • Notes: I misread this question, but working with people that come from different backgrounds helps the team and makes it more convenient for them that it can easily be tested.
  1. Question: Which of the following is a primary reason for the use of open protocols on the Internet?
  • My answer: Open protocols ensure that all Internet users are provided connections with equal bandwidth.
  • Correct answer: Open protocols provide a way to standardize data transmission between different devices.
  • Notes: Open protocol isn’t owned by any company and it’s not limited to a company’s products. Ultimately, allows data to be standardized.
  1. Question: A video game character can face toward one of four directions: north, south, east, and west. Each direction is stored in memory as a sequence of four bits. A new version of the game is created in which the character can face toward one of eight directions, adding northwest, northeast, southwest, and southeast to the original four possibilities. Which of the following statements is true about how the eight directions must be stored in memory?
  • My answer: Four bits are not enough to store the eight directions. Eight bits are needed for the new version of the game.
  • Correct answer: Four bits are enough to store the eight directions.
  • Notes: 4 bits are more than enough for the 8 directions. For example, 4 bits = 16 information.
  1. Question: diagram
  • My answer: Decimal 5, decimal 12, binary 1011, binary 1101
  • Correct answer: Decimal 5, binary 1011, decimal 12, binary 1101
  • Notes: binaries
  1. Question: The cost of a customer’s electricity bill is based on the number of units of electricity the customer uses. For the first 25 units of electricity, the cost is $5 per unit. For units of electricity after the first 25, the cost is $7 per unit. Which of the following code segments correctly sets the value of the variable cost to the cost, in dollars, of using numUnits units of electricity?
  • My answer: pic1
  • Correct answer: pic2
  • Notes: Be careful, slow down, and notice the numbers and the multiplcation, plus, and minus sign.
  1. Question: In a certain video game, the variable maxPS represents the maximum possible score a player can earn. The maximum possible score depends on the time it takes the player to complete the game. The value of maxPS should be 30 if time is greater than 120 and 50 otherwise.

Which of the following code segments correctly sets the value of maxPS based on the value of time ?

Select two answers.

  • My answer: pic3
  • Correct answer: pic4 pic5
  • Notes: The if statement shows the max and time and the else statement to state the max.
  1. Question: pic6
  • My answer: 14
  • Correct answer: 16
  • Notes: Needed to correctly input the numbers at the top, carefully into the results area. Since the inputs are 4, 6, and 10, adding all these gives us the result of 16.
  1. Question: pic7
  • My answer: 6
  • Correct answer: 15
  • Notes: The result of the function equals the total of the integers from 0 to 5, equaling 15.

How I understood the mistakes?

For the questions I got wrong, I went through my notes that I took on the Collegeboard videos and rewatched some of the videos to recall some of the concepts. In order to gain a greater insight about the binary numbers, I watched a few YouTube videos to understand the concept more. The videos helped, but I am still needing to rely on my notes.

Khan Academy

  • I used Khan Academy to learn more about Binary Numbers. I found this Khan Academy practice, and read and watched through

AWS Automatic Deployment Extra Credit

aws

  1. Made a secret with PEM file by converting to base 64
  2. Added a file to GitHub workflows called deployproject.yml
  • attempted to the AWS Automatic Deployment, but I got stuck at the last step trying to decode the base 64