hiexam
microsoft · AI-102 · Q664 · code_completion · chatbot_responses, code_completion, python

HOTSPOT - You have a chatbot. You need to ensure that the bot conversation resets if a user fails to respond for 10 m…

HOTSPOT - You have a chatbot. You need to ensure that the bot conversation resets if a user fails to respond for 10 minutes. How should you complete the code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. //IMG//
if now_seconds != last_access and (now_seconds - last_access >= self.expire_after_seconds):
    await {{slot1}}

    "Welcome back! Let's start over from the beginning."
)
    await self.conversation_state.{{slot2}}
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