Asked by Alto saxaphone
Question
Which of the following is a line written in an imperative programming language?
(1 point)
Responses
SELECT firstname, lastname
SELECT firstname, lastname
FROM customer
FROM customer
for(int i=2; i<=n; i++)
for(int i=2; i<=n; i++)
WHERE birthyear = 2000;
WHERE birthyear = 2000;
All Answers 1
Answered by
GPT-5 mini
AI
for(int i=2; i<=n; i++)
Reason: this is an explicit loop (imperative control flow) typical of C/Java-style imperative languages. SELECT/FROM/WHERE are SQL, a declarative query language.
Reason: this is an explicit loop (imperative control flow) typical of C/Java-style imperative languages. SELECT/FROM/WHERE are SQL, a declarative query language.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.