Packages & Tooling interview questions

15 real Packages & Tooling questions from the Go bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Exported identifier?

Junior
  1. A.a name beginning with an uppercase letter, making it visible to code in other packages
  2. B.a versioned collection of packages defined by a go.mod file that records the import path and dependencies
  3. C.the command that compiles and runs functions prefixed with Test in files ending _test.go
  4. D.an import with an underscore name used solely to trigger a package's side effects without referencing it
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Exported identifier — a versioned collection of packages defined by a go.mod file that records the import path and dependencies
  2. B.Exported identifier — a parameterless, non-callable setup routine that runs automatically once when its package is first loaded
  3. C.Exported identifier — a name beginning with an uppercase letter, making it visible to code in other packages
  4. D.Exported identifier — the command that compiles and runs functions prefixed with Test in files ending _test.go
Reveal the answer + AI explanation — free account

4. What is Go module?

Junior
  1. A.a versioned collection of packages defined by a go.mod file that records the import path and dependencies
  2. B.a parameterless, non-callable setup routine that runs automatically once when its package is first loaded
  3. C.a name beginning with an uppercase letter, making it visible to code in other packages
  4. D.an import with an underscore name used solely to trigger a package's side effects without referencing it
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Go module — a versioned collection of packages defined by a go.mod file that records the import path and dependencies
  2. B.Go module — a name beginning with an uppercase letter, making it visible to code in other packages
  3. C.Go module — an import with an underscore name used solely to trigger a package's side effects without referencing it
  4. D.Go module — a parameterless, non-callable setup routine that runs automatically once when its package is first loaded
Reveal the answer + AI explanation — free account

7. What is init function?

Mid
  1. A.a parameterless, non-callable setup routine that runs automatically once when its package is first loaded
  2. B.a versioned collection of packages defined by a go.mod file that records the import path and dependencies
  3. C.a name beginning with an uppercase letter, making it visible to code in other packages
  4. D.an import with an underscore name used solely to trigger a package's side effects without referencing it
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.init function — an import with an underscore name used solely to trigger a package's side effects without referencing it
  2. B.init function — a parameterless, non-callable setup routine that runs automatically once when its package is first loaded
  3. C.init function — a name beginning with an uppercase letter, making it visible to code in other packages
  4. D.init function — the command that compiles and runs functions prefixed with Test in files ending _test.go
Reveal the answer + AI explanation — free account

10. What is go test?

Junior
  1. A.a parameterless, non-callable setup routine that runs automatically once when its package is first loaded
  2. B.a versioned collection of packages defined by a go.mod file that records the import path and dependencies
  3. C.the command that compiles and runs functions prefixed with Test in files ending _test.go
  4. D.a name beginning with an uppercase letter, making it visible to code in other packages
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Junior
  1. A.go test — a name beginning with an uppercase letter, making it visible to code in other packages
  2. B.go test — the command that compiles and runs functions prefixed with Test in files ending _test.go
  3. C.go test — a versioned collection of packages defined by a go.mod file that records the import path and dependencies
  4. D.go test — a parameterless, non-callable setup routine that runs automatically once when its package is first loaded
Reveal the answer + AI explanation — free account

13. What is Blank import?

Mid
  1. A.an import with an underscore name used solely to trigger a package's side effects without referencing it
  2. B.a name beginning with an uppercase letter, making it visible to code in other packages
  3. C.the command that compiles and runs functions prefixed with Test in files ending _test.go
  4. D.a parameterless, non-callable setup routine that runs automatically once when its package is first loaded
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.Blank import — a parameterless, non-callable setup routine that runs automatically once when its package is first loaded
  2. B.Blank import — a versioned collection of packages defined by a go.mod file that records the import path and dependencies
  3. C.Blank import — the command that compiles and runs functions prefixed with Test in files ending _test.go
  4. D.Blank import — an import with an underscore name used solely to trigger a package's side effects without referencing it
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Packages & Tooling free