exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 2 question 1 discussion

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

HOTSPOT -
You are developing an application that will use the Computer Vision client library. The application has the following code.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: No -

Box 2: Yes -
The ComputerVision.analyzeImageInStreamAsync operation extracts a rich set of visual features based on the image content.

Box 3: No -
Images will be read from a stream.
Reference:
https://docs.microsoft.com/en-us/java/api/com.microsoft.azure.cognitiveservices.vision.computervision.computervision.analyzeimageinstreamasync

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
motu
Highly Voted 3 years, 6 months ago
Box 3 is Yes, the stream will be generated from a local image!
upvoted 88 times
anto69
3 months, 3 weeks ago
Agree with this man
upvoted 4 times
...
...
Adedoyin_Simeon
Highly Voted 3 years, 5 months ago
Box 3 should be Yes, a stream is only a pathway for data. and in this case the data actually comes from a local file. The correct answer would be No, Yes, Yes.
upvoted 36 times
...
MostafaAbdellahAhmed
Most Recent 3 months ago
1. **The code will perform face recognition.** **Answer:** No The code uses the `ComputerVisionClient` to analyze an image for visual features such as `Description` and `Tags`, not for face recognition. 2. **The code will list tags and their associated confidence.** **Answer:** Yes The code retrieves tags and their confidence scores from the `results.Tags` property and outputs them. 3. **The code will read a file from the local file system.** **Answer:** Yes The code uses `File.OpenRead(localImage)` to read an image file from the local file system.
upvoted 1 times
...
anto69
5 months, 1 week ago
N - Y - Y
upvoted 1 times
...
gary_cooper
5 months, 3 weeks ago
The code will perform face recognition --> No The code will list tags and their associated confidence --> Yes The code will read a file from the local file system --> Yes
upvoted 7 times
...
ARM360
6 months ago
The code will perform face recognition. No. The code is set to analyze image descriptions and tags (VisualFeatureTypes.Description, VisualFeatureTypes.Tags), but it does not include face recognition. The code will list tags and their associated confidence. Yes. The code includes a loop that iterates through results.Tags and prints each tag's name and confidence. The code will read a file from the local file system. Yes. The code uses File.OpenRead(localImage) to open and read an image file from the local file system. So, the answers are: The code will perform face recognition. No The code will list tags and their associated confidence. Yes The code will read a file from the local file system. Yes
upvoted 3 times
...
p2006
6 months ago
https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/quickstarts-sdk/image-analysis-client-library?tabs=windows%2Cvisual-studio&pivots=programming-language-csharp#analyze-image
upvoted 1 times
...
hatanaoki
6 months, 1 week ago
No Yes Yes
upvoted 2 times
...
anntv252
7 months, 1 week ago
No Yes Yes Image analysis Return the category and confident score Read local video streaming or streaming source
upvoted 3 times
...
michaelmorar
7 months, 3 weeks ago
The fact that the parameter is named 'local', might be misleading - it could be anything. HOWEVER, I'm not a C# expert, but File.OpenRead tells us that the file is on a filesystem to which the device has access. SO my vote is NYY
upvoted 1 times
...
varinder82
8 months, 2 weeks ago
Final Answer: N Y Y
upvoted 1 times
...
rdemontis
1 year, 1 month ago
To me correct answers are NYY. localImage parameter is a string, that's a file path
upvoted 3 times
...
zellck
1 year, 5 months ago
NYY is the answer. https://learn.microsoft.com/en-us/java/api/com.microsoft.azure.cognitiveservices.vision.computervision.computervision?view=azure-java-legacy#com-microsoft-azure-cognitiveservices-vision-computervision-computervision-analyzeimageinstreamasync(byte-()-analyzeimageinstreamoptionalparameter) his operation extracts a rich set of visual features based on the image content. Two input methods are supported (1) Uploading an image or (2) specifying an image URL.
upvoted 11 times
Lion007
1 year, 1 month ago
NYN Box 3: No.... because the image (whether uploaded or a URL), the CODE will read it as a An image STEAM. Please continue reading the same URL you shared.
upvoted 1 times
propanther
1 year, 1 month ago
File.OpenRead is a System.IO method and reads file from the local storage path provided as a parameter hence last one is Y as it reads file from local storage https://learn.microsoft.com/en-us/dotnet/api/system.io.file.openread?view=net-7.0
upvoted 5 times
...
...
...
ninjia
2 years, 3 months ago
Box 1: No. The code generates description and tags. See line 3,4 Box 2: Yes. The code displays tag.Name and tag.Confidence Box 3: Yes. File.OpenRead reads a local file. See https://docs.microsoft.com/en-us/dotnet/api/system.io.file.openread?view=net-6.0
upvoted 6 times
...
Eltooth
2 years, 4 months ago
No Yes Yes
upvoted 2 times
...
mohamedba
2 years, 5 months ago
Answer is NYY
upvoted 3 times
...
gursimran_s
2 years, 7 months ago
https://docs.microsoft.com/en-us/java/api/com.microsoft.azure.cognitiveservices.vision.computervision.computervision.analyzeimageinstreamasync?view=azure-java-legacy
upvoted 1 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 ...