Which sentence expresses purpose most clearly in a code comment?
Option B is correct. "So that" introduces a purpose clause — it answers "why is this action taken?" and links the action directly to its intended goal. This is the preferred structure in code comments and documentation when explaining design rationale. "Therefore" and "as a result" express result, not purpose — they answer "what happened next?", not "why was it done?". "Consequently" signals an unintended or logical consequence, which is suitable for post-mortems, not design explanations. Use "so that" or "in order to" whenever you want to explain intent.
2 / 20
A technical spec reads: "Requests are batched __ reduce the number of round trips to the API." Which connector is correct?
Option C is correct. "In order to" introduces a purpose infinitive clause and is the formal standard in technical documentation and specifications. It is interchangeable with "to" alone (e.g., "batched to reduce…") but "in order to" is more explicit about purpose and preferred when the sentence might otherwise be ambiguous. "Therefore" and "consequently" are adverbial connectors that introduce independent clauses, not infinitive phrases — they require a full clause after them. "So" without "that" cannot precede an infinitive clause in formal writing.
3 / 20
An incident post-mortem states: "The rate limiter was not configured correctly. __ all API endpoints became overloaded within minutes." Which connector is most appropriate?
Option C is correct. "Therefore" expresses a logical result — it connects a cause (misconfiguration) to its consequence (overload). In post-mortems and incident reports, "therefore" is appropriate for presenting the causal chain of events. "So that" and "in order to" express purpose, which would imply the misconfiguration was intentional. "To" as a purpose marker also implies intent. The distinction between purpose (why you did something) and result (what happened because of it) is crucial in incident writing — conflating them can make a team look negligent.
4 / 20
Which pair correctly distinguishes purpose from result in technical documentation?
Option B is correct. Purpose answers "why" and uses "in order to / to / so that": the restart is designed to achieve the clearing. Result answers "what happened next" and uses "consequently / therefore / as a result": the restart caused the clearing as an outcome. Keeping this distinction clean matters in technical writing because purpose statements document design decisions, while result statements document observed behaviour. Mixing them makes it unclear whether a feature is working as designed or producing a side effect.
5 / 20
A developer writes: "We added pagination to the API response, __ the mobile client does not need to download the entire dataset." Should this be "so that" or "consequently"?
Option B is correct. "So that" is the right choice here because the sentence describes a deliberate design decision: pagination was added for the purpose of limiting mobile data transfer. "Consequently" would imply the reduction in downloads is an incidental result rather than the intended goal, which understates the engineering decision. In API design documentation and architecture decision records (ADRs), using purpose connectors accurately communicates that the feature exists intentionally — this matters for future maintainers evaluating whether to keep or change it.
6 / 20
Alex: 'I've implemented a retry mechanism for failed database queries. This ensures data consistency.' Which of the following best describes the purpose clause in this statement?
The primary goal of the retry mechanism is to maintain data consistency. 'So that' introduces a purpose clause, indicating the desired outcome – a consistent database. Options B and C describe potential results, while option D misrepresents the intended function.
7 / 20
Slack Message from Sarah: 'Just ran some tests on the new payment gateway integration. The response time is significantly faster now! We've optimized the API calls.'
Sarah's message clearly states *the result* of the optimization – a faster response time. The phrase 'significantly faster now!' directly indicates this outcome. Option A describes the purpose, which is not explicitly stated.
8 / 20
Mark writes in a PR description: 'We updated the user authentication service to support multi-factor authentication. This will improve security.' Which connector best links the purpose and result?
'In order to' is the most precise connector for stating a purpose clause. It indicates *why* the change was made – to improve security. 'As a result of' describes an outcome, and 'therefore' implies a causal relationship without specifying intent. 'So that' also works well here but 'in order to' is slightly more formal and appropriate in this context.
9 / 20
Alex: 'I've implemented a retry mechanism for failed database queries. This ensures data consistency.' Which of the following best describes the purpose clause in this statement?
The primary goal of the retry mechanism is to maintain data consistency. 'So that' introduces a purpose clause, indicating the desired outcome – a consistent database. Options B and C describe potential results, while option D misrepresents the intended function.
10 / 20
Slack Message from Sarah: 'Just ran some tests on the new payment gateway integration. The response time is significantly faster now! We've optimized the API calls.'
Sarah's message clearly states *the result* of the optimization – a faster response time. The phrase 'significantly faster now!' directly indicates this outcome. Option A describes the purpose, which is not explicitly stated.
11 / 20
Mark writes in a PR description: 'We updated the user authentication service to support multi-factor authentication. This will improve security.' Which connector best links the purpose and result?
'In order to' is the most precise connector for stating a purpose clause. It indicates *why* the change was made – to improve security. 'As a result of' describes an outcome, and 'therefore' implies a causal relationship without specifying intent. 'So that' also works well here but 'in order to' is slightly more formal and appropriate in this context.
12 / 20
Alex: 'I've implemented a retry mechanism for failed database queries. This ensures data consistency.' Which of the following best describes the purpose clause in this statement?
The primary goal of the retry mechanism is to maintain data consistency. 'So that' introduces a purpose clause, indicating the desired outcome – a consistent database. Options B and C describe potential results, while option D misrepresents the intended function.
13 / 20
Slack Message from Sarah: 'Just ran some tests on the new payment gateway integration. The response time is significantly faster now! We've optimized the API calls.'
Sarah's message clearly states *the result* of the optimization – a faster response time. The phrase 'significantly faster now!' directly indicates this outcome. Option A describes the purpose, which is not explicitly stated.
14 / 20
Mark writes in a PR description: 'We updated the user authentication service to support multi-factor authentication. This will improve security.' Which connector best links the purpose and result?
'In order to' is the most precise connector for stating a purpose clause. It indicates *why* the change was made – to improve security. 'As a result of' describes an outcome, and 'therefore' implies a causal relationship without specifying intent. 'So that' also works well here but 'in order to' is slightly more formal and appropriate in this context.
15 / 20
A developer is writing a comment for a script that calculates the average of a list of numbers. Which phrase best describes the purpose of this code?
This question tests your understanding of purpose clauses. Option 1 correctly identifies that the code's primary function is to *calculate* an average. Options 2 and 3 use incorrect terminology or describe a different action. Option 4 is a non-sensical description.
16 / 20
Reviewer David comments: 'The automated deployment script now includes logging to stdout. This will help us troubleshoot issues during deployments.' Which of the following best describes the purpose clause in this comment?
The phrase 'This will help us troubleshoot issues' directly indicates the intended outcome or result of adding logging. The purpose clause explains *why* the logging was implemented – to facilitate troubleshooting. Options B and C misinterpret the sentence's function.
17 / 20
During a Slack discussion about performance improvements, Jian writes: 'We refactored the database query to use indexes. As a result, response times have decreased by 30%.' Which connector is most appropriate to link these two clauses?
'Therefore' clearly indicates a cause-and-effect relationship. The refactoring (cause) led to the decrease in response times (result). 'So that' and 'in order to' both suggest an intention behind the action, which isn't present here; 'because' implies a reason for the refactoring itself.
18 / 20
In a PR description for a new feature, Ben states: 'We implemented rate limiting on the API endpoints. This ensures fair usage and prevents overload.' Which connector best describes the purpose and result in this sentence?
'So that' is the most accurate connector here because it clearly states the intended outcome – fair usage and preventing overload. The rate limiting was implemented *to achieve* those goals. 'Because' describes a reason for the implementation which isn't stated in this sentence.
19 / 20
A technical document explains: 'The system automatically rotates log files every 24 hours. This ensures that older logs don't consume excessive disk space.' Which of the following pairs correctly distinguishes purpose from result?
The core of the sentence highlights *what* was achieved (preventing excessive disk space) as the result of the action (automatic log rotation). The purpose clause clearly states the action taken – log rotation – to achieve this outcome. Option A and C misattribute cause and effect.
20 / 20
Maria writes in a standup update: 'We added support for JWT authentication to the API. Consequently, we can now securely verify user identities.' Which connector best links the purpose and result?
'Therefore' is the most suitable connector in this context. It demonstrates a direct consequence – secure user identity verification – resulting from implementing JWT authentication. 'So that' and 'in order to' express intention rather than a demonstrable outcome.
What will I practise in "Purpose and Result Clauses in Technical Writing — Grammar Exercise"?
Practice using to, so that, in order to, therefore, and consequently to express purpose versus result in technical documentation.
How many exercises are in this module?
This module has 20 multiple-choice exercises, each with instant feedback and a full explanation of the correct answer.
Is this exercise free to use?
Yes. Every exercise on CoderSlingo, including this one, is free to use with no account, sign-up, or paywall.
Do I need to create an account to do these exercises?
No account is required. Just click an option to answer — your score for this session is tracked automatically in the progress bar above.
What happens if I choose the wrong answer?
You'll immediately see which answer was correct, plus a full explanation covering the grammar rule and reasoning behind it — mistakes are where most of the learning happens.
Can I retry the exercises if I want a higher score?
Yes — use the "Try again" button on the results screen to reset and go through all the questions again.
Is my progress saved if I close the page?
No. Progress is tracked only for your current visit; reloading or leaving the page resets the counter. This keeps the exercise simple and account-free.
Where can I find more Grammar exercises?
Browse the full Grammar hub for related drills, or check the "Next up" link below to continue with a connected topic.
How is this different from reading an article on the same topic?
Articles explain grammar rules in prose; this exercise tests and reinforces those rules through active recall with immediate feedback — the two work best together.
Who writes these exercises?
Every exercise is written by the CoderSlingo team, drawing on real workplace English used in IT roles, then reviewed for accuracy and clarity.