hiexam
microsoft · AI-102 · Q270 · code_completion · api_management, microsoft_translator, code_snippet

Complete the code snippet to configure the correct API endpoint and URI for translating text using Microsoft Translator.

Complete the code snippet to configure the correct API endpoint and URI for translating text using Microsoft Translator.
var endpoint = {{slot1}};
var uri = endpoint + {{slot2}};
var client = new HttpClient();
client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", apiKey);
Correct slot values

Answer hidden

Unlock AI-102

First 5 questions of every exam are free. Unlock the rest.

Includes
  • · All — questions
  • · Verified answers + AI explanations
  • · Spaced-repetition mistake notebook
  • · Phone, tablet, laptop sync

One-time payment. Doesn't auto-renew. · Already paid? Sign in