Praxis Computer Science (5652)
Praxis® is a registered trademark of ETS, which is not affiliated with and does not endorse Test Treasure Publication or TTP Prep.
Praxis® is a registered trademark of ETS, which is not affiliated with and does not endorse Test Treasure Publication or TTP Prep.
10 sample questions for the Praxis Computer Science (5652), with the correct answer and an explanation for each. No account needed. Try each one before you open the answer.
Sections covered on the exam: Impacts of Computing, Computing Systems and Networks, Algorithms and Computational Thinking, Programming, Data.
Question 1 · Impacts of Computing
A teacher wants students at two different schools to co-write the same program. Students must be able to work at the same time, see who made each change, and return to an earlier working version if a change breaks the program.
Answer: C. A shared repository with version control that logs each change by author
Version control lets many contributors work in parallel, records the author of every commit, and allows reverting to any earlier version, so it meets all three needs. Emailing zipped copies prevents simultaneous work and creates conflicting copies; a cloud folder that overwrites files loses the history needed to roll back; a video call allows only one typist and keeps no change record.
Question 2 · Algorithms and Computational Thinking
Answer: A. 0010 1011 1001
Each hex digit maps to exactly four bits: 2 = 0010, B (11) = 1011, 9 = 1001. Writing B's bits backward gives 1101 (which is D), reversing the digit order gives 1001 1011 0010, and treating B as 12 gives 1100.
Question 3 · Programming
Answer: C. 11
12 % 5 is 2, then 2 * 2 is 4, and 7 + 4 is 11. "8" comes from adding first ((7 + 12) % 5 * 2 = 4 * 2); "9" comes from multiplying 5 * 2 before taking the remainder (12 % 10 = 2, then 7 + 2).
Question 4 · Programming
Answer: B. 9, 10, 49, 50
Boundary-value testing uses the values on each edge and just outside it: 9 and 10 at the lower limit, 49 and 50 at the upper limit. These would expose a mistake such as > instead of ≥. "9, 11, 48, 50" looks close but skips the exact boundaries 10 and 49, and the other sets test only typical or extreme values.
Question 5 · Data
Answer: B. How the average wait changes if a second serving station opens
A simulation built from arrival patterns and serving times is well suited to comparing scenarios, such as one versus two stations, by averaging many runs. Because arrivals are random, it cannot predict exact waits or the identity of a particular student on a real day. Food preferences are not part of the model at all, so the model has no data to answer that question.
Question 6 · Impacts of Computing
A science class uploads weekly bird counts to an online database that combines reports from thousands of volunteers. Researchers use the combined data to detect changes in migration timing.
Answer: A. It aggregates scattered contributions into data no single group could gather
This is crowdsourcing: networked computing lets many distributed observers contribute to one dataset at a scale no single class could reach, enabling new research. People still make the observations, digital entries can contain human errors that researchers must clean, and the project's purpose is collaboration and discovery, not encryption.
Question 7 · Algorithms and Computational Thinking
Answer: B. ED
237 = 128 + 64 + 32 + 8 + 4 + 1 = 1110 1101 in binary. The left group 1110 is E and the right group 1101 is D, giving ED (check: 14 × 16 + 13 = 237). "DE" reverses the digit order, and "EF" and "CD" come from mistakes in the binary step.
Question 8 · Programming
Answer: B. 4.0 and 4.5
In the first line, 9 / 4 is integer division (2), and 2 * 2.0 is 4.0. In the second line, 9 * 2.0 is the double 18.0, and 18.0 / 4 is 4.5. "4.5 and 4.5" ignores integer division, and "2.0 and 4.5" stops after the division.
Question 9 · Programming
Answer: A. A logic error; it returns about 4.67
The loop starts at index 1, so a[0] = 4 is skipped and total = 8 + 6 = 14. The procedure runs without crashing but returns 14 / 3 ≈ 4.67 instead of 6.0, which is a logic error. The index never exceeds a.length − 1, so there is no runtime error, and "returns exactly 6.0" is the intended result, not the actual one.
Question 10 · Data
Answer: A. Change both 100s to 100000
The code estimates the chance of rolling 5 or 6, which is 2/6 ≈ 0.33. With more trials, random variation averages out, so the estimate lands closer to 0.33 more consistently. Changing the condition to r > 5 estimates a different event (about 0.17), dividing by 6 is not a proportion of trials, and replacing the roll with a constant removes the randomness the model depends on.
TTP Prep has 200 Praxis Computer Sc 5652 practice questions with explanations, timed and mock-exam modes, 165 flashcards, interactive lessons, a printable cheat sheet and a readiness score. Start free, no card needed.
More free questions: browse every exam.