Skip to content

08 - Quiz

  • Your name:

  • Your VT email:


What do the GIF generator and the web server examples have most strongly in common?

  • A. They rely on external frameworks for core functionality
  • B. They hide most logic behind configuration files
  • C. They require concurrency to work correctly
  • D. They use the Go standard library to build complete, useful programs

Why is io.Writer an important design choice in the GIF generator?

  • A. It improves rendering performance
  • B. It allows the same function to write to files, standard output, or HTTP responses
  • C. It ensures thread safety
  • D. It enables automatic buffering

Why does the web server handler feel similar to writing a command-line program?

  • A. HTTP responses are converted into files
  • B. The handler runs in the terminal
  • C. Go automatically converts output to HTML
  • D. http.ResponseWriter behaves like a general output stream

What is the difference between go run and go build?

  • A. go run compiles and executes the program immediately, while go build only produces a binary without running it.
  • B. go run produces a permanent executable, while go build runs the code in memory only.
  • C. go run skips compilation, while go build compiles the code.
  • D. There is no difference; they behave the same way.