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.ResponseWriterbehaves like a general output stream
What is the difference between go run and go build?
- A.
go runcompiles and executes the program immediately, whilego buildonly produces a binary without running it. - B.
go runproduces a permanent executable, whilego buildruns the code in memory only. - C.
go runskips compilation, whilego buildcompiles the code. - D. There is no difference; they behave the same way.