Sample questions
Question 1Easy
What is a project memory or rules file for an AI agent?
- A backup of your database
- A file that stores the model's weights inside your repository for faster loading
- A file of instructions and conventions it reads at the start of a session
- A list of employee salaries
Answer: C. A file of instructions and conventions it reads at the start of a session
Explanation
Tools such as Claude Code (CLAUDE.md) and Cursor (project rules) read these files so every session follows the same guidance.
Step-by-step solution
- A project memory or rules file is a text file of instructions, not data or model weights.
- Tools such as Claude Code read CLAUDE.md at the start of a session.
- So the file holds instructions and conventions. The correct answer is C.
Why the other options are wrong
- A. A database backup is a different thing.
- B. Model weights are not stored in a rules file.
- D. Employee salaries do not belong in a rules file.
Tip: Put coding conventions and common commands in the rules file so every session follows them.
Question 2Easy
What is the typical loop an agentic coding tool follows?
- Download the whole internet, then compile everything from scratch
- Edit, deploy, delete failing tests, then finish
- Guess once and stop
- Plan, edit, run tests, read results, iterate
Answer: D. Plan, edit, run tests, read results, iterate
Explanation
Agents gather context, make changes, run checks and use the feedback to correct themselves until the goal is met.
Step-by-step solution
- Agents first plan their approach to solve the problem.
- They then edit code based on the plan.
- Next, they run tests to check if the code works.
- After running tests, they read results to find any errors.
- Finally, they iterate by repeating the process until everything is correct.
Why the other options are wrong
- A. Downloading the whole internet is not part of an agent loop; the loop works on the task and the repository.
- B. Deleting failing tests is cheating the loop; tests should be read and the code fixed, not removed.
- C. Guessing once and stopping gives no test or feedback, so it is not the agent loop.
Tip: Think of it as a feedback loop that keeps refining the solution.
Question 3Easy
Why commit your work (or use a separate branch) before letting an agent make big edits?
- Agents refuse to work on any repository that has uncommitted changes
- So you can easily review the diff or roll back
- Commits make the agent smarter
- It deletes the agent's history
Answer: B. So you can easily review the diff or roll back
Explanation
Version control gives a safe checkpoint; you can inspect exactly what changed and revert if needed.
Step-by-step solution
- Committing saves a snapshot of your work before edits.
- This lets you see changes clearly with diff tools.
- You can undo changes easily if something goes wrong.
- Reviewing diffs helps catch errors early.
- Rolling back is simple with version control.
- Final answer: So you can easily review the diff or roll back.
Why the other options are wrong
- A. Agents do not refuse repositories with uncommitted changes; the commit is for your safety.
- C. Commits do not make the agent smarter; they only save a snapshot you can review.
- D. A commit keeps history; it does not delete the agent's history or the repository's history.
Tip: Always commit before major edits to track changes and undo if needed.
Question 4Easy
Which is the human's responsibility when code written by an agent is merged?
- The developer who merged it is accountable for it
- Nobody; AI wrote it
- The AI vendor is responsible for every bug the generated code contains
- The end user who finds the bug
Answer: A. The developer who merged it is accountable for it
Explanation
Tools do not take ownership; the engineer and team that ship the code remain accountable for its quality.
Step-by-step solution
- Code merged by an agent still needs human review.
- Developer who merges code is responsible for checking it.
- Merging does not transfer accountability to AI or users.
- Final check and approval rest with the developer.
- The developer who merged it is accountable for it.
Why the other options are wrong
- B. AI does not carry responsibility; the developer who merges the code is accountable for it.
- C. The AI vendor does not take responsibility for each bug; the merging developer owns the code.
- D. The end user is not responsible for a bug in merged code; the developer who merged it is accountable.
Tip: Always review AI-generated code before merging; accountability stays with humans.
Question 5Medium
An agent repeatedly tries the same failing fix five times. What should you do?
- Stop it, give new information or a different approach, or take over
- Let it run overnight; with enough attempts it will eventually work
- Increase the number of retries to 500
- Delete the failing tests so that the agent can finish the task and stop
Answer: A. Stop it, give new information or a different approach, or take over
Explanation
Loops without new information rarely converge; human guidance or a reset with better context is needed.
Step-by-step solution
- Repeating the same failed fix wastes effort.
- Step in: give new information, change approach, or take over.
Why the other options are wrong
- B. Same attempts rarely succeed.
- C. More retries repeat the same loop.
- D. Deleting tests hides the problem.
Tip: Break loops early.
Question 6Medium
An agent says it fixed a bug but you can't reproduce the fix. What is the most useful request?
- Ask it to make its summary longer and more confident so it is convincing
- Tell it to try harder without giving details
- Uninstall the test framework
- Ask it to show the exact commands it ran and their output
Answer: D. Ask it to show the exact commands it ran and their output
Explanation
Concrete evidence (commands and output) lets you see whether the claimed verification really happened.
Step-by-step solution
- Ask it to show exact commands ran and outputs for proof of action.
- Commands and outputs prove if the fix was actually applied.
- This lets you verify the process without relying on claims alone.
- Without concrete data, you can't confirm the bug was fixed.
- Exact logs help identify where the issue might still exist.
- Final answer: Ask it to show the exact commands it ran and their output.
Why the other options are wrong
- A. A longer, more confident summary is not evidence; it makes the claim harder to check.
- B. Trying harder without details gives no proof and no way to check the fix.
- C. Uninstalling the test framework removes the way to check the fix and does not help.
Tip: Always ask for concrete evidence like logs and outputs when verifying fixes or actions.
Question 7Medium
Claude Code reads a CLAUDE.md file in the repository. What is such a file typically used for?
- Project instructions and conventions the agent should follow
- Compiled binaries of the project
- The agent's billing and subscription information for the account
- Storing API keys and passwords so the agent can log in
Answer: A. Project instructions and conventions the agent should follow
Explanation
Project memory or rules files hold build commands, style rules and gotchas so every session starts with the same context; secrets don't belong there.
Step-by-step solution
- CLAUDE.md stores project guidelines for consistent setup.
- It includes build commands and coding standards.
- This ensures all sessions start with the same rules.
- Secrets like passwords are not stored here.
- Final answer: Project instructions and conventions the agent should follow.
Why the other options are wrong
- B. CLAUDE.md is a text file of instructions, not compiled binaries of the project.
- C. Billing and subscription data is not stored in a project's CLAUDE.md file.
- D. API keys and passwords should not be stored in a project file; secrets belong in a safe store.
Tip: Remember, CLAUDE.md is for guidelines, not secrets or binaries.
Question 8Medium
Why do agentic tools often ask for permission before running shell commands?
- Permissions make the model smarter
- Commands can have side effects like deleting files or calling external services
- Shell commands always cost money for every character typed
- The agent cannot read command output
Answer: B. Commands can have side effects like deleting files or calling external services
Explanation
Permission prompts are a safety control so a human can block risky or unintended actions.
Step-by-step solution
- Shell commands can change files or call outside services.
- Such side effects can delete data or cause changes nobody meant.
- Asking permission lets a human block risky actions. The correct answer is B.
Why the other options are wrong
- A. Permissions do not make the model smarter.
- C. Shell commands do not cost money for each character typed.
- D. Agents can read command output; that is how they act on results.
Tip: Read each shell command before approving it, especially deletes and network calls.
Question 9Hard
Why are small, frequent commits during an agent session valuable?
- Git requires a commit at least once every few minutes during active work
- They hide changes from reviewers
- They make the agent use fewer tokens per word
- Each step can be reviewed and individually reverted
Answer: D. Each step can be reviewed and individually reverted
Explanation
Granular history makes it easy to find where things went wrong and roll back a single bad step.
Step-by-step solution
- Small commits are checkpoints.
- Each step can be reviewed and rolled back separately.
Why the other options are wrong
- A. Git has no such requirement.
- B. They make changes more visible.
- C. Token use is not tied to commit size.
Tip: Commit small, revert easily.
Question 10Hard
An agent finishes a task and reports "All tests pass." What should a careful developer still do?
- Trust the summary since it came from the agent
- Merge immediately
- Read the diff and run the tests themselves
- Delete the tests to save CI time
Answer: C. Read the diff and run the tests themselves
Explanation
Agent summaries can be wrong or incomplete; reviewing the diff and reproducing results is the human's responsibility.
Step-by-step solution
- Agent reports all tests pass but may miss errors.
- Developer must check actual test output for accuracy.
- Reading diff shows code changes that could affect tests.
- Running tests manually confirms results are correct.
- Only by verifying can developer be sure no issues exist.
Why the other options are wrong
- A. An agent's summary can be wrong or miss errors, so it must be checked before you trust it.
- B. Merging straight away skips the check that the agent's claim is actually true.
- D. Deleting tests to save CI time removes the checks and hides real failures.
Tip: Never trust automated reports alone; always verify manually.
Practise all 25 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →