nerdexam
Microsoft

AI-102 · Question #445

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

Sign in or unlock AI-102 to reveal the answer and full explanation for question #445. The question stem and answer options stay visible for context.

Submitted by wei.xz· Mar 30, 2026Implement an Azure AI solution

Question

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?

Options

  • AChange the model to GPT-4-32k.
  • BAdd // what does function F do? to the prompt.
  • CAdd function F(explanation) to the prompt.
  • DSet the temperature parameter to 1.

Unlock AI-102 to see the answer

You've previewed enough free AI-102 questions. Unlock AI-102 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Azure AI Studio#Azure OpenAI models#Prompt engineering#Cost management
Full AI-102 Practice