📖 Lesson content
Your score:
7 of 8 Correct (87%)
Elapsed time:
2 minutes
Show Answers
Hide Answers
Question 1: Correct answer
You want to send a request to Claude's API. What's the minimum information you must include?
Only the API key and your question
Just your message text
API key, model name, messages, and max tokens
Your name, email, and message
Question 2: Correct answer
You ask Claude "What is pizza?" and it answers. Then you ask "What toppings are popular?" but Claude doesn't understand what you're referring to. What's the problem?
Your internet connection is slow
Claude is broken
You asked too quickly
Claude doesn't remember previous messages
Question 3: Correct answer
When Claude processes your text, what's the first thing it does?
Generates a response immediately
Checks if it's appropriate content
Breaks it into smaller chunks called tokens
Translates it to another language
Question 4: Correct answer
Users complain your chat app feels slow because they wait 20 seconds staring at a loading spinner, then all the generated text appears at once. What can fix this?
Asking shorter questions
Using a faster internet connection
Enabling response streaming
Using a different web browser
Question 5: Correct answer
You're building a web app that talks to Claude. Where should you store your API key?
In your mobile app that users install
In a text file on the user's computer
On your server that users can't access
In your JavaScript code that users download
Question 6: Correct answer
You're building a math tutor bot. You want Claude to give hints instead of direct answers. What should you use?
Setting a very low word limit
Using all capital letters in your messages
A system prompt explaining the tutor role
Asking users to be more specific
Question 7: Correct answer
You want Claude to give very predictable, consistent answers for a factual Q&A app. What temperature setting should you use?
Temperature doesn't matter for facts
Low temperature (near 0.0)
Medium temperature (around 0.5)
High temperature (near 1.0)
Question 8: Incorrect answer
You're building an app that needs clean JSON from Claude with no extra text or formatting. How do you get just the raw JSON?
Send the request multiple times and pick the best one
Ask Claude very nicely to only return JSON
Combine prefilled messages and stop sequences
Use a very high temperature setting
Take this again
🔁 Related lessons
- Next: Prompt evaluation
- Previous: Structured data exercise
- Same section: Making a request · Multi-Turn conversations · Chat exercise
- Part of paths: Path C
- Reference docs: Glossary · Skills atlas · By use-case
📚 Source & attribution
- Original Anthropic Academy lesson: https://anthropic.skilljar.com/claude-with-the-anthropic-api/289117
- © 2025 Anthropic. Educational fair-use only.