Skip to content
Codewilds

Lesson 19 of 38 · Slices & Maps

Quiz: Go Slices and Maps

Quizmedium10 XP1 min read

Slices and maps are the two collections you'll use in almost every Go program. In this chapter you learned that an array's size is part of its type while a slice is a flexible view over an array, that append returns the updated slice, how len and cap drive reallocation, and why sub-slices can overwrite each other. On the map side you used the comma-ok idiom to tell missing keys from zero values, sorted keys for a predictable order, and learned why a nil map can be read but never written.

Answer these six questions, then go and face the Hoarding Dragon.

What this quiz covers

The questions check what you learned in the Slices & Maps chapter of Learn Go. Not sure about a topic? Review its lesson first:

Keep learning

Need a quick reminder? The Go cheat sheet has every topic of Learn Go on one page.

Lesson last updated on .

Take the quiz ↓
Quiz+10 XP

Lesson 19 is part of the full course. The first 9 lessons are free.

Premium lesson

Unlock the full Learn Go course

  • All 38 lessons, bosses and quizzes — lifetime access
  • One payment of $35, no subscription
  • Finish within 30 days and claim $10.50 (30%) back
Play the 9 free lessons

Want more than one course?

The All-Access Pass unlocks all 8 courses and every new one we release, for $120 once.