CodeHS Communication and Collaboration 2 — Questions and Answers
Question 1: When working in a pair programming setup, what is the primary role of the 'navigator'?
- Types code directly into the editor
- Reviews code, suggests improvements, and thinks about the big picture (Correct answer)
- Manages the project timeline and deadlines
- Tests the finished code for bugs
Correct answer: Reviews code, suggests improvements, and thinks about the big picture
In pair programming, the navigator reviews the code being written, catches errors, and considers the overall strategy while the driver types.
Question 2: Which practice best helps remote team members stay aligned during a software project?
- Working in isolation and sharing code only at project completion
- Holding regular stand-up meetings and using shared task boards (Correct answer)
- Allowing each member to choose their own tools and workflows
- Communicating only through email to keep a written record
Correct answer: Holding regular stand-up meetings and using shared task boards
Regular stand-up meetings and shared task boards keep all remote members informed of progress, blockers, and priorities.
Question 3: A team member submits a pull request with unclear commit messages. What is the BEST response?
- Merge it immediately to avoid slowing the team down
- Reject it permanently and ask them to resubmit from scratch
- Request changes with specific guidance on writing descriptive commit messages (Correct answer)
- Rewrite all the commit messages yourself without notifying them
Correct answer: Request changes with specific guidance on writing descriptive commit messages
Requesting changes with constructive feedback helps the contributor improve while maintaining code quality and team communication norms.
Question 4: Which type of diagram is MOST useful for communicating how different software components interact with each other?
- Gantt chart
- Flowchart
- System architecture diagram (Correct answer)
- Pie chart
Correct answer: System architecture diagram
A system architecture diagram shows the relationships and interactions between software components, services, and external systems.
Question 5: What does 'asynchronous communication' mean in a collaborative coding environment?
- All team members must respond immediately to messages
- Team members communicate without requiring simultaneous participation (Correct answer)
- Code is reviewed only during scheduled live sessions
- Everyone works on the same file at the exact same time
Correct answer: Team members communicate without requiring simultaneous participation
Asynchronous communication allows team members to send messages and responses at different times, enabling collaboration across time zones and schedules.
Question 6: When should you use a comment in collaborative code rather than a commit message?
- To summarize what changes were made in a version control push
- To explain WHY a tricky piece of logic was written a certain way within the code itself (Correct answer)
- To list all contributors who worked on the project
- To document the project's overall goals and objectives
Correct answer: To explain WHY a tricky piece of logic was written a certain way within the code itself
Inline comments are best for explaining non-obvious logic or decisions within the code, while commit messages describe what changed between versions.
Question 7: A teammate disagrees with your approach to solving a coding problem. What is the MOST productive response?
- Ignore their feedback and proceed with your original plan
- Ask them to explain their reasoning and compare both approaches objectively (Correct answer)
- Escalate the disagreement to a teacher or manager immediately
- Switch to their approach without evaluating either option
Correct answer: Ask them to explain their reasoning and compare both approaches objectively
Listening to a teammate's reasoning and objectively comparing approaches promotes better solutions and a healthy collaborative culture.
When working in a pair programming setup, what is the primary role of the 'navigator'?