NEW:
Claude Code Security — research preview
→
<Code
Cook
>
Home
Claude Code
Copilot
Cursor
Compare
Practice Exam
NEW
−
16px
+
AI Coding Quiz
Test your knowledge across Claude Code, Copilot, and Cursor
1 / 20
intermediate
Claude Code
In Claude Code's settings.json, what does a `PreToolUse` hook do?
A.
Runs before a tool executes — can block the action
B.
Sets the model for the session
C.
Compacts the conversation context
D.
Runs after every file edit
Score: 0 / 0 answered