exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 15 question 1 discussion

Actual exam question from Microsoft's AI-102
Question #: 1
Topic #: 17
[All AI-102 Questions]

HOTSPOT -
You are developing the shopping on-the-go project.
You need to build the Adaptive Card for the chatbot.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: name [language]
Chatbot must support interactions in English, Spanish, and Portuguese.
Box 2: "$when:${stockLevel != 'OK'}"
Product displays must include images and warnings when stock levels are low or out of stock.
Box 3: image.altText[language]

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
KingChuang
Highly Voted 2 years, 1 month ago
on my exam. (2023-01-16 passed) My Answer: 1. name[language] 2. != OK 3. image.altText.[language]
upvoted 30 times
Christian_garcia_martin
3 months, 2 weeks ago
correct but do not forget double quotas ["language"]
upvoted 1 times
...
...
rdemontis
Highly Voted 1 year, 3 months ago
answer seems to be correct
upvoted 7 times
rdemontis
1 year, 3 months ago
although there is probably a typo on the last answer image.altText.[language]. Probably the correct one should be image.altText[language]
upvoted 6 times
...
...
syupwsh
Most Recent 1 week ago
name[language] is CORRECT because this syntax allows you to dynamically reference the appropriate name field based on the language variable. This ensures that the correct localized name is displayed in the Adaptive Card. "$when": "${stockLevel != 'OK'}" is CORRECT because this syntax ensures that the TextBlock for the stock level is only displayed when the stock level is not "OK". This is useful for highlighting issues with stock levels that need attention. image.altText[language] is CORRECT because this syntax allows you to dynamically reference the appropriate alt text based on the language variable. This ensures that the correct localized alt text is displayed in the Adaptive Card.
upvoted 2 times
...
JakeCallham
5 months, 3 weeks ago
Let's evaluate why the other options for answer3 are not valid: image.altText.en: This option hardcodes the language to English (en). image.altText.language: This option assumes language is a property under altText. However, language is a variable representing the selected language (e.g., en, es, pt), not a property within altText. image.altText.[“language”]: This option incorrectly uses quotation marks around language, treating it as a literal string rather than a variable. This would attempt to look for an alt text property with the name "language", which does not exist. Correct Option: image.altText.[language] Explanation: This option correctly uses the language variable to dynamically access the appropriate alt text based on the user's selected language. It ensures that the alt text is in the correct language (English, Spanish, or Portuguese) by referencing the variable directly. This fulfills the requirement for a multilingual customer experience.
upvoted 1 times
...
CellCS
7 months ago
Answer is correct. language is a identifier, could be 'en', ...,
upvoted 1 times
...
takaimomoGcup
9 months ago
Is this question still available on May 21, 2024?
upvoted 1 times
...
AzureJobsTillRetire
1 year, 11 months ago
The correct answers are those that are given in answers to question 3. The correct answer pairs for box1 and box3 could be- 1) name.en and image.altText.en 2) name["language"] and image.altText["language"] Since name["language"] does not exist as an option in box1, we will have to choose the first pair as the correct answer. https://www.w3schools.com/js/js_json_syntax.asp
upvoted 1 times
AzureJobsTillRetire
1 year, 11 months ago
Looking at the given JSON sample for a product again, I actually cannot find either the data for name["language"]/name.language or image.altText["language"]/image.altText.language.
upvoted 2 times
...
AzureJobsTillRetire
1 year, 11 months ago
Since name["language"]/name.language and image.altText["language"]/image.altText.language do not exist, we will have to choose the first pair as the answers
upvoted 1 times
...
...
halfway
2 years, 2 months ago
My last comment was wrong. There is no correct answer for the last question. The correct answers should be: 1. name[language] 2. "$when": "${stockLevel} != 'OK'" 3. image.altText[language]
upvoted 2 times
...
halfway
2 years, 2 months ago
1. name[language] 2. "$when": "${stockLevel} != 'OK'" 3. image.altText.language
upvoted 1 times
...
AdarshKumarKhare
2 years, 2 months ago
Repeat Question. Answers are different. I don't know which one is correct
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago