가이드 연계 퀴즈 · 중간 레벨
AI 퀴즈로 코드 문서를 작성하는 방법
Check how to prompt AI for code docs, validate examples against implementation, and keep generated explanations accurate.
질문 1 의 8
어시스턴트가 파일 경로를 검증하는 함수의 docstring을 초안했습니다. 개발자가 먼저 확인해야 할 것은 무엇인가요?
모든 질문 미리보기8 질문
퀴즈를 풀면 정답과 설명이 나타납니다.
- 어시스턴트가 파일 경로를 검증하는 함수의 docstring을 초안했습니다. 개발자가 먼저 확인해야 할 것은 무엇인가요?
- The described inputs, return value, side effects and edge cases against the code and tests
- Whether the prose uses the most technical vocabulary
- Whether the comment is longer than the function
- Whether the model sounds confident
- README에 AI가 생성한 설정 명령을 실행하라고 적혀 있습니다. 강력한 검증 단계는 무엇일까요?
- Assume it works because the command is familiar
- Remove all installation steps
- Run it in a clean environment and confirm it matches the project scripts and configuration
- Ask the assistant to repeat the command with more confidence
- 어떤 인라인 주석이 가장 유용할까요?
- A paraphrase of the next line with no added context
- A note explaining a non-obvious invariant or reason for the code
- A claim that the function is secure without evidence
- A list of unrelated TODOs
- 생성된 API 예시는 저장소에 사용되지 않은 가상의 패키지 이름을 가져옵니다. 이 경우 어떻게 해야 할까요?
- Keep it because the package name looks conventional
- Change the dependency file to match the example without review
- Delete the API documentation
- Check the import against actual dependencies and run the example
- 개발자는 승인되지 않은 코딩 어시스턴트에게 비밀을 보내지 않아야 하는 이유는 무엇인가요?
- The code or context may be processed under data-handling terms that have not been approved
- Secrets make comments harder to read
- The assistant needs every credential to understand a function
- A README cannot describe a credential safely
- A performance paragraph claims an algorithm is O(n), but no analysis or test supports it. What is the responsible edit?
- Keep it because asymptotic notation sounds precise
- Ask the model to invent a benchmark
- Remove or qualify the claim until it is verified
- Replace it with a security guarantee
- A new CLI flag changes behavior. When should its documentation be updated?
- Only after users report that the README is wrong
- With the code change and review, including a checked example
- Never, because flags are discoverable from source
- After deleting the tests
- Why might a code assistant describe an incorrect design reason even when it reads the function?
- Source code contains every team decision automatically
- Tests always explain product intent completely
- Documentation never needs human input
- The rationale or operational context may not be inferable from source code alone