Sitonce
Country: US
Show exams for United States Hong Kong
Sign in

Praxis Computer Science 5652 Sample Questions and Answers

Updated 8 min read
Key takeaway

Practice original 5652-style selected-response questions by identifying the task, stated representation or language, and boundary conditions.

  • The examples here explain search, loop tracing, binary interpretation, DNS and data privacy; they are not ETS questions.
  • Each includes an original explanation.
  • Check every option against the prompt before you finalize the response.
On this page21 sections
  1. How to use sample questions
  2. Original question: search choice
  3. Original question: loop trace
  4. Original question: binary interpretation
  5. Original question: network stage
  6. Original question: data ethics
  7. Review distractors by the misconception
  8. Quick reference
  9. Original question: complexity and assumptions
  10. Original question: Python division semantics
  11. Original question: data interpretation
  12. Original question: exception and assumptions
  13. Original question: access and design
  14. Original question: TCP promise
  15. Original question: floating-point interpretation
  16. Original question: systematic test cases
  17. Explain answer choices as claims
  18. Original question: multiple-select reasoning
  19. Read the response instruction before evaluating choices
  20. Review distractors as diagnostic evidence
  21. Create variations instead of memorizing an item

How to use sample questions

Treat every item as a small reasoning task. Identify the requested output, the stated language or representation, relevant values and any boundary condition. For a multiple-select prompt, evaluate each option separately.

The following are original teaching examples, not ETS questions. They cover familiar 5652 categories and show a reasoned answer, not a score prediction.

Original question: search choice

A teacher has an unsorted list of 40 student project IDs and must find one ID once. Which approach avoids a sorting step? A. Scan the list from the beginning. B. Apply binary search directly. C. Run insertion sort first, then stop. D. Assume the target is at the midpoint.

Answer: A. A linear scan works without ordering. Binary search requires sorted data and a suitable way to access its middle. If many searches are expected, sorting or maintaining order might be useful, but that is a different cost comparison.

Original question: loop trace

Pseudocode initializes total to 0 and i to 1. While i is less than or equal to 3, it adds i to total and then increases i by 1. What value remains in total? A. 3. B. 5. C. 6. D. 7.

Answer: C. The loop adds 1, then 2, then 3, producing 6. After the final update i becomes 4 and the condition is false. Writing the state after each pass helps avoid an off-by-one error.

Original question: binary interpretation

What unsigned decimal value is represented by the eight-bit pattern 01011010? A. 82. B. 90. C. 92. D. 106.

Answer: B. The 1 bits have weights 64, 16, 8 and 2, which sum to 90. The prompt specifies unsigned interpretation; without that instruction, a bit pattern alone does not determine a value.

Original question: network stage

A browser cannot translate a typed domain name into a network address. Which service is the most direct starting point for diagnosis? A. DNS. B. A database table. C. A screen reader. D. A compiler.

Answer: A. DNS resolves names to network addresses. A later transport or application failure has a different cause, so this response identifies the relevant stage without claiming that DNS explains every connection problem.

Original question: data ethics

A school app requests precise location all day, although its stated classroom purpose needs only a student's course schedule. Which design concern is most direct? A. Data minimization and privacy. B. Sorting stability. C. Binary search bounds. D. CPU clock speed.

Answer: A. The collected data exceeds the stated purpose and raises privacy concerns. A thoughtful design defines the purpose, limits collection, explains use and protects data. The scenario does not determine whether a specific law was violated.

Review distractors by the misconception

When reviewing, name the misconception each distractor represents. “Binary search directly” confuses an ordered list with an arbitrary list. A loop answer of 5 may stop before adding the boundary value. These explanations help you recognize similar errors in different questions.

Do not copy sample item phrasing from the ETS companion into a public article. Create new values and contexts, explain the concept, and keep the source link for readers who want the official sample section.

Quick reference

ExampleCore idea
Find one item in unsorted dataLinear scan does not require sorting
Trace a loopTrack condition and update
Convert bitsUse the stated interpretation
Resolve a nameDNS is name resolution
Assess collectionPurpose and data minimization

Original question: complexity and assumptions

A sorted array supports direct indexing. Which statement best describes binary search compared with a sequential scan for one lookup in a large array? A. Binary search can halve the interval at each step. B. Binary search works only if every value is unique. C. A scan requires the array to be sorted. D. Sorting is free.

Answer: A. The ordered data and midpoint access allow repeated halving. Duplicates do not prevent locating a matching value, though finding the first duplicate needs an added rule. Sorting has a cost.

Original question: Python division semantics

In Python, what does -7 // 3 evaluate to? A. -2. B. -3. C. 2. D. 3.

Answer: B. Python floor division rounds the quotient down toward negative infinity. Converting -7 / 3 to int truncates toward zero and gives -2. The prompt names Python, so use its documented semantics.

Original question: data interpretation

A survey reports that 70% of students who responded prefer an online activity. Which conclusion is safest without more information? A. Every student prefers online work. B. The response result describes the respondents, and representativeness needs checking. C. The survey proves online work causes higher achievement. D. Nonrespondents have the same preference.

Answer: B. The sample may be biased or incomplete. Check who was invited, who responded and how the question was asked before generalizing.

Original question: exception and assumptions

An eight-bit unsigned storage field can represent 0 through 255. What mathematical result is produced by adding 1 to 255 before a storage policy is applied? A. 0. B. 255. C. 256. D. 511.

Answer: C. The mathematical sum is 256. Whether a fixed-width system wraps, errors or uses another rule depends on its stated overflow behavior.

Original question: access and design

A school website works only with a mouse, excluding a student who navigates by keyboard. Which response most directly addresses the barrier? A. Add keyboard accessibility and test with assistive technology. B. Increase image resolution. C. Store more tracking data. D. Sort the student roster.

Answer: A. The barrier concerns access and interaction. Improving keyboard operation and testing with assistive technology addresses the stated obstacle; the other options do not.

Original question: TCP promise

Which description best matches TCP? A. It guarantees an application always receives a message. B. It provides an ordered byte stream when communication succeeds. C. It preserves every sender write as one receiver message. D. It resolves domain names.

Answer: B. TCP provides reliable ordered byte-stream transport, but a connection can fail and application message boundaries are not preserved. DNS handles name resolution.

Original question: floating-point interpretation

A Python calculation displays 0.30000000000000004 for 0.1 + 0.2. What is the best explanation? A. Binary floating point approximates some decimal fractions. B. Python integers wrap at eight bits. C. DNS altered the arithmetic. D. The values are strings.

Answer: A. Some decimal fractions have repeating binary representations. Display formatting can reveal the stored approximation; it does not mean all calculations are unusable.

Original question: systematic test cases

A loop should process indices 0 through 4. Which boundary check is most useful for finding an off-by-one defect? A. Test a five-element array and observe whether index 4 is processed but index 5 is not. B. Test only one typical value. C. Change the font. D. Sort the array first.

Answer: A. The test checks the inclusive endpoint and guards against accessing beyond the valid range.

Explain answer choices as claims

Treat every option as a claim with preconditions. For a binary search answer, ask whether the input is sorted. For a Python numeric answer, confirm the operator semantics. For an impact answer, identify the affected group.

This makes multi-select items more manageable because each option can be assessed independently.

Original question: multiple-select reasoning

A student app stores a class schedule and precise location history. Which practices directly reduce risk? Select all that apply. A. Collect location only when needed for a clear purpose. B. Limit access to authorized staff. C. Keep every record forever. D. Explain relevant data use.

Answers: A, B and D. These choices limit collection, access and uncertainty. Keeping all records forever increases exposure and is not a protective practice. The exact legal requirements depend on context.

Read the response instruction before evaluating choices

The number of responses requested is part of the problem. “Which statement is best?” asks for one selection even if other statements are generally true. “Select all that apply” requires evaluating all choices against the stated condition.

A useful practice routine is to paraphrase the requested action before reading options. Then test each option for correctness, relevance and any hidden assumption. This guards against choosing a familiar statement that does not answer the prompt.

Review distractors as diagnostic evidence

A distractor often reflects a recognizable misconception: treating a decimal display as exact, assuming a network protocol preserves application messages, or believing binary search works on unsorted data. When you choose one, state the rule that made it tempting and the condition that invalidates it.

Write a short counterexample. For binary search, place the target in an unsorted list where the midpoint comparison discards the target’s half. A counterexample makes the limitation clearer than rereading the definition.

Create variations instead of memorizing an item

After reviewing a solved question, change one condition and predict what changes. Move the target in a search problem, change a loop’s inclusive boundary, or alter the representation width. Then solve the variant from the beginning.

This tests whether you understand the rule. If only the memorized answer survives, you need to review the concept. If the method transfers, the original problem has done its job as practice.

Common questions

Are these official ETS questions?

No. They are original teaching examples written for explanation.

Can an item have multiple correct choices?

ETS says selected-response items may ask for one or more choices; read item directions.

How should I review a wrong answer?

Explain the controlling fact and why the nearest distractor fails.