Exam AI-103 Topic 1 Question 112 Discussion
Actual exam question for Microsoft's AI-103 exam
Question #: 112
Topic #: 1
Question #: 112
Topic #: 1
In Azure AI Studio, you use Completions playground with the GPT-35 Turbo model.
You have a prompt that contains the following code.
function F(n)
{
var f = [0, 1];
for (var i = 2; i < n; i++) f[i] = f[i-1] + f[i-2];
return f;
}
You need the model to create an explanation of the code. The solution must minimize costs.
What should you do?
You have a prompt that contains the following code.
function F(n)
{
var f = [0, 1];
for (var i = 2; i < n; i++) f[i] = f[i-1] + f[i-2];
return f;
}
You need the model to create an explanation of the code. The solution must minimize costs.
What should you do?
Suggested Answer: B Vote an answer
By adding a comment like // what does function F do? to the prompt, you are instructing the GPT model to provide an explanation of the function's behavior. This approach directly asks the model to explain the code, which will help generate an explanation without requiring changes to the model or additional resource-intensive configurations.
by Larry at Aug 21, 2026, 05:12 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).