Test Corrections
October 2023 (238 Words, 2 Minutes)
Question 56
Which of the following describes the result of executing the program?
- A. The program displays the sum of the even integers from 0 to 10.
- B. The program displays the sum of the even integers from 0 to 20.
- C. The program displays the sum of the odd integers from 1 to 9.
- D. The program displays the sum of the odd integers from 1 to 19.
My answer: A
Correct answer: D
This is correct because The value of count starts at 1 and increases by twos, so it counts odd integers. The loop iterates 10 times, adding each intermediate value of count each time. Therefore, the program displays the sum of the odd integers starting at 1 and ending
Question 61
-
Two different schools maintain data sets about their currently enrolled students. No individual student is enrolled at both schools. Each line of data contains information, separated by commas, about one student.
-
East High School stores the data in the following format.
-
West High School stores the data in the following format.
-
A table is shown with 2 columns and 2 rows. The first row of the table contains the column headers, from left to right, Data format and Student I D comma First Name comma Last Name comma Age comma Days Absent. The table is as follows: Sample line of data, 8 7 6 6 7 7 2 1 comma Kendra comma Angelos comma 14 comma 12
-
The two schools would like to combine their data to make a single data set. Which of the following can be done with the combined data?
- A. The schools can create a single list of student names, sorted by last name.
- B. The schools can determine the average number of days students are absent.
- C. The schools can determine which ZIP code is represented by the most students.
- D. The schools can determine the student ID of the student with the greatest number of absences.
My answer: A and D
Correct answer: A and B
This is correct because it is possible to determine the average number of days students are absent. Both data formats provide the number of absences for each student.
Terms I looked up:
- Symmetric-Key Algorithms
- Crowdsourcing
- Palindrome
- Digital Divide