W3Tutorials.net
Toggle Menu
Home
Online Go Compiler
Tutorials
Javascript Tutorials
Python Tutorials
Go Tutorials
Blog
All Posts
Go Standard Library Essentials
Check how well you know Go’s built-in packages and utilities.
1. Which package is primarily used for formatted input/output (I/O) operations in Go?
fmt
io
os
log
2. Which of the following standard packages are used for concurrent programming in Go?
sync
concur
goroutine
sync/atomic
3. The 'os' package in Go provides functions for interacting with the operating system, such as file manipulation and environment variables.
True
False
4. What is the full package path used for handling HTTP client and server operations in Go?
5. Which function from the 'fmt' package prints output to standard output WITHOUT appending a newline character?
Println
Print
Printf
Sprint
6. Which of the following are functions provided by the 'os' package for file operations?
Open
ReadFile
Create
WriteFile
7. The 'encoding/json' package can only serialize Go structs to JSON, not deserialize JSON back to structs.
True
False
8. What is the name of the standard package used for working with regular expressions in Go (abbreviation)?
9. Which package provides functionality for parsing, formatting, and manipulating time (e.g., dates and durations)?
time
date
clock
timer
10. Which of the following are standard encoding packages in Go for data serialization?
encoding/json
encoding/xml
encoding/csv
encoding/yaml
Reset
Answered 0 of 0 — 0 correct