Module quiz: Introduction to the coding interview :Coding Interview Preparation (Meta iOS Developer Professional Certificate) Answers 2026
Question 1
What should be done when presented with a technical problem where the solution is not immediately obvious?
✅ Ask questions.
❌ Move the conversation along and try not to draw attention.
❌ Ask the interviewer how they would solve the problem.
Explanation:
Asking clarifying questions shows problem-solving skills and good communication.
Question 2
During a technical interview, is it better to rely on the work of others, or code everything yourself?
❌ Use code written by others.
✅ Use the data structures, but don’t use any other external implementation.
❌ Write as much code as you can to show off your skills.
Explanation:
Interviewers want to see your thinking, not copied solutions.
Question 3
Sock colors = [3,3,2,1,1,3,5,1,4,2]. How many pairs exist?
❌ 4
❌ 2
✅ 3
Explanation:
Pairs:
-
Color 3 → one pair
-
Color 1 → one pair
-
Color 2 → one pair
Total = 3 pairs
Question 4
It is best to remain silent when writing code during a technical interview.
❌ True
✅ False
Explanation:
Thinking aloud helps interviewers understand your approach.
Question 5
Should I ask questions in an interview?
❌ To run down the clock
❌ Only when it helps interviewer
✅ Yes. Ask questions for clarity or at an appropriate time.
Explanation:
Good questions show engagement and understanding.
Question 6
What is the STAR method?
✅ A structured approach to answering questions.
❌ A stellar answer
❌ A coding practice
Explanation:
STAR = Situation, Task, Action, Result
Question 7
What is meant by transfer rate in relation to a CPU?
✅ The rate at which memory is transferred into cache.
❌ The rate instructions are processed
❌ The rate terminal input is converted
Explanation:
Transfer rate focuses on data movement, not execution speed.
Question 8
When engaged with a coding interview what tests should you aim to include?
❌ Integration tests
❌ Functional tests
✅ Unit tests
Explanation:
Unit tests are fast, focused, and show correctness.
Question 9
Which memory location is closest to the CPU?
❌ Main memory
❌ Secondary memory
✅ Cache
Explanation:
Cache is fastest and closest to the CPU.
Question 10
When designing a solution it is best to:
❌ Tackle every problem as it arises
✅ Plan an outline, identify obstacles, explore solutions, and review continuously
❌ Do a quick sketch and implement everything immediately
Explanation:
Structured planning leads to cleaner and scalable solutions.
🧾 Summary Table
| Q# | Correct Answer | Key Concept |
|---|---|---|
| 1 | Ask questions | Problem solving |
| 2 | Use structures only | Interview best practice |
| 3 | 3 pairs | Logic / arrays |
| 4 | False | Communication |
| 5 | Ask for clarity | Interview skills |
| 6 | Structured approach | Behavioral interviews |
| 7 | Cache transfer rate | CPU fundamentals |
| 8 | Unit tests | Testing strategy |
| 9 | Cache | Memory hierarchy |
| 10 | Plan & review | System design |