5 exercises — practise choosing between as (role/function) and like (resemblance) in technical writing.
0 / 5 completed
1 / 5
Choose the sentence that correctly uses "as" to describe a role or function, not a similarity:
"Acts as a reverse proxy" is correct: "as" is used to describe a role, function, or capacity that something actually has — the container genuinely functions as a reverse proxy, it is not merely similar to one. "Like" (option C) would incorrectly imply the container merely resembles a reverse proxy without actually being one, which changes the meaning and is factually misleading in a technical description. Option A uses a nonstandard preposition combination. Option B ("acts alike") is grammatically incorrect — "alike" is a predicate adjective used differently ("the two systems are alike"), not a preposition that can follow "acts" this way.
2 / 5
Which sentence correctly uses "like" to express similarity/resemblance, followed by a noun phrase?
"Behaves like a timeout" is correct: "like" + noun phrase expresses resemblance or similarity — the error only resembles a timeout in its symptoms, it is not actually one ("though the root cause is different" confirms this is a comparison of appearance, not identity). "As" (option C) would incorrectly claim the error genuinely IS a timeout in function/category, contradicting "the root cause is different". Options A and B use "such" and "so", neither of which functions as a comparison preposition before a bare noun phrase in this way.
3 / 5
Choose the sentence with the correct use of "as" to introduce a full clause (subject + verb) of comparison:
"As the production environment is configured" is correct: "as" (not "like") is the standard, formally correct choice for introducing a full clause with its own subject and verb in a comparison — "as X is/does" is the traditional grammatical rule, though "like" is increasingly common informally in this position too. In formal technical documentation, "as" remains the more precise and widely accepted choice before a clause. Option A uses "like" before a full clause, which many style guides for formal/technical writing still flag as informal or incorrect. Option C additionally drops the article "the" before "production environment". Option D adds the redundant "same" before "as", which is unnecessary and slightly awkward phrasing not matching a clean comparative clause structure.
4 / 5
Which sentence correctly distinguishes "as" (actual identity/role) from "like" (mere resemblance) across two clauses describing a design pattern?
Option C is fully correct: "functions as a translation layer" (genuine role, not mere resemblance), "as the system requires" (introducing a clause, formally "as" rather than "like"), and "serves as this role" (again, genuine role/identity) are all consistent with the actual-identity meaning throughout, which fits the sentence's own claim that the adapter "genuinely serves" this function. Option A incorrectly starts with "like" (implying mere resemblance) but then contradicts itself by saying it "genuinely serves" the role. Option B incorrectly uses "like" before the clause "the system requires", which should be "as" in formal technical writing. Option D mixes both errors — "like" before a clause and "like" describing what should be an actual identity claim about a translation layer, both of which are inconsistent with the sentence's own conclusion.
5 / 5
A code comment says: "This helper works _____ described in the RFC." Choose the correct word to introduce the following clause.
"As described in the RFC" is the correct, standard, and idiomatic choice: "as" is used before a past participle clause like "described" to mean "in the way that/manner that" — this is a very common fixed pattern ("as specified", "as documented", "as configured", "as required") throughout technical writing. "Like" (option A) is not used in this fixed participial pattern; "like described in the RFC" is not standard/idiomatic English. "Alike" (option C) is a predicate adjective and cannot introduce a clause this way. "Same" (option D) would require additional words ("the same as described") to form a grammatical comparison and cannot stand alone before a participle clause like this.