2020 Practice Exam 1 MCQ Corrections/Review
- Review
- Corrections
- Question 4: In a certain computer program, two positive integers are added together, resulting in an overflow error. Which of the following best explains why the error occurs?
- Question 18:
- Question 24:
- Question 38: Internet protocol version 6 (IPv6) has been introduced to replace the previous version (IPv4). Which of the following best describes a benefit of IPv6 over IPv4?
Home | API | Notes |
Review
For the 2020 Practice Exam 1 MCQ, I got 4 questions wrong (63/67). Overall, I feel like I did well on the quiz and am happy with my performance. However, I recognize that there is always room for improvement and I am committed to doing better on future quizzes. Upon reflection, I realized that the questions I got wrong were ones that I didn't spend enough time on. I made the mistake of assuming I knew the answers and didn't take the time to carefully read and analyze the questions. In the future, I need to remind myself to slow down and read each question thoroughly, even if I think I know the answer.
Corrections
Question 4: In a certain computer program, two positive integers are added together, resulting in an overflow error. Which of the following best explains why the error occurs?
The program can only use a fixed number of bits to represent integers; the computed sum is greater than the maximum representable value.
Question 18:
This code segment moves the robot forward whenever there is an open square in front of it. Once there is not an open square in front of it, the robot rotates right. The robot moves forward from its initial location to the upper right corner of the grid, then rotates right, then moves forward to the bottom right corner of the grid, then rotates right, then moves forward to the bottom left corner of the grid, then rotates right, then moves forward two squares to the gray square.
Question 24:
The value of val starts at 0 and is repeatedly incremented by 2, so the program calculates the sum of even integers. Inside the loop, val is incremented by 2 before being added to sum, so the first value added to sum is 2. The loop iterates 10 times, adding each intermediate value of val each time. Therefore, the program displays the sum of the even integers starting at 2 and ending at 20.
Question 38: Internet protocol version 6 (IPv6) has been introduced to replace the previous version (IPv4). Which of the following best describes a benefit of IPv6 over IPv4?
IPv6 allows for a greater number of IP addresses than IPv4 does, which allows more devices to be connected.