Memory & Performance interview questions

15 real Memory & Performance 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 Escape analysis?

Senior
  1. A.the concurrent tri-color mark-and-sweep subsystem that reclaims unreachable heap memory automatically
  2. B.placing a value in a per-goroutine growable region that is freed cheaply when the function returns
  3. C.a value holding the memory address of another value, dereferenced and taken with the * and & operators
  4. D.the compile-time process that decides whether a value can live on the stack or must be allocated on the heap
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Senior
  1. A.Escape analysis — the compile-time process that decides whether a value can live on the stack or must be allocated on the heap
  2. B.Escape analysis — the concurrent tri-color mark-and-sweep subsystem that reclaims unreachable heap memory automatically
  3. C.Escape analysis — the safety rule that addresses cannot be freely incremented or offset outside the unsafe package
  4. D.Escape analysis — a value holding the memory address of another value, dereferenced and taken with the * and & operators
Reveal the answer + AI explanation — free account

4. What is Garbage collector?

Mid
  1. A.a value holding the memory address of another value, dereferenced and taken with the * and & operators
  2. B.the safety rule that addresses cannot be freely incremented or offset outside the unsafe package
  3. C.placing a value in a per-goroutine growable region that is freed cheaply when the function returns
  4. D.the concurrent tri-color mark-and-sweep subsystem that reclaims unreachable heap memory automatically
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.Garbage collector — the safety rule that addresses cannot be freely incremented or offset outside the unsafe package
  2. B.Garbage collector — the compile-time process that decides whether a value can live on the stack or must be allocated on the heap
  3. C.Garbage collector — the concurrent tri-color mark-and-sweep subsystem that reclaims unreachable heap memory automatically
  4. D.Garbage collector — a value holding the memory address of another value, dereferenced and taken with the * and & operators
Reveal the answer + AI explanation — free account

7. What is Stack allocation?

Mid
  1. A.the safety rule that addresses cannot be freely incremented or offset outside the unsafe package
  2. B.the compile-time process that decides whether a value can live on the stack or must be allocated on the heap
  3. C.placing a value in a per-goroutine growable region that is freed cheaply when the function returns
  4. D.the concurrent tri-color mark-and-sweep subsystem that reclaims unreachable heap memory automatically
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Stack allocation — placing a value in a per-goroutine growable region that is freed cheaply when the function returns
  2. B.Stack allocation — the concurrent tri-color mark-and-sweep subsystem that reclaims unreachable heap memory automatically
  3. C.Stack allocation — the compile-time process that decides whether a value can live on the stack or must be allocated on the heap
  4. D.Stack allocation — a value holding the memory address of another value, dereferenced and taken with the * and & operators
Reveal the answer + AI explanation — free account

10. What is Pointer?

Junior
  1. A.a value holding the memory address of another value, dereferenced and taken with the * and & operators
  2. B.the safety rule that addresses cannot be freely incremented or offset outside the unsafe package
  3. C.placing a value in a per-goroutine growable region that is freed cheaply when the function returns
  4. D.the concurrent tri-color mark-and-sweep subsystem that reclaims unreachable heap memory automatically
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Junior
  1. A.Pointer — a value holding the memory address of another value, dereferenced and taken with the * and & operators
  2. B.Pointer — placing a value in a per-goroutine growable region that is freed cheaply when the function returns
  3. C.Pointer — the compile-time process that decides whether a value can live on the stack or must be allocated on the heap
  4. D.Pointer — the concurrent tri-color mark-and-sweep subsystem that reclaims unreachable heap memory automatically
Reveal the answer + AI explanation — free account

13. What is Pointer arithmetic restriction?

Senior
  1. A.a value holding the memory address of another value, dereferenced and taken with the * and & operators
  2. B.the concurrent tri-color mark-and-sweep subsystem that reclaims unreachable heap memory automatically
  3. C.the compile-time process that decides whether a value can live on the stack or must be allocated on the heap
  4. D.the safety rule that addresses cannot be freely incremented or offset outside the unsafe package
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Senior
  1. A.Pointer arithmetic restriction — a value holding the memory address of another value, dereferenced and taken with the * and & operators
  2. B.Pointer arithmetic restriction — the safety rule that addresses cannot be freely incremented or offset outside the unsafe package
  3. C.Pointer arithmetic restriction — the compile-time process that decides whether a value can live on the stack or must be allocated on the heap
  4. D.Pointer arithmetic restriction — the concurrent tri-color mark-and-sweep subsystem that reclaims unreachable heap memory automatically
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 Memory & Performance free