The line written in an imperative programming language is:
for(int i=2; i<=n; i++)
This line is an example of an imperative programming construct that involves a loop, which is characteristic of imperative programming languages. The other options appear to be SQL statements, which are not imperative programming constructs.