Core Language interview questions

15 real Core Language 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 Slice?

Junior
  1. A.the behavior where adding to a slice may allocate a new backing array, so the result must be reassigned to the variable to be visible
  2. B.a lightweight descriptor over a backing array holding a pointer, length and capacity
  3. C.the predeclared identifier that auto-increments within a const block to generate successive enumerated values
  4. D.the default initialized value (0, false, "" or nil) given to a declared variable when no explicit value is supplied
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Slice — a lightweight descriptor over a backing array holding a pointer, length and capacity
  2. B.Slice — a fixed-size sequence whose length is part of its type and which is copied by value on assignment
  3. C.Slice — the predeclared identifier that auto-increments within a const block to generate successive enumerated values
  4. D.Slice — the behavior where adding to a slice may allocate a new backing array, so the result must be reassigned to the variable to be visible
Reveal the answer + AI explanation — free account

4. What is Array?

Junior
  1. A.the behavior where adding to a slice may allocate a new backing array, so the result must be reassigned to the variable to be visible
  2. B.a lightweight descriptor over a backing array holding a pointer, length and capacity
  3. C.the default initialized value (0, false, "" or nil) given to a declared variable when no explicit value is supplied
  4. D.a fixed-size sequence whose length is part of its type and which is copied by value on assignment
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Array — the behavior where adding to a slice may allocate a new backing array, so the result must be reassigned to the variable to be visible
  2. B.Array — the default initialized value (0, false, "" or nil) given to a declared variable when no explicit value is supplied
  3. C.Array — a fixed-size sequence whose length is part of its type and which is copied by value on assignment
  4. D.Array — the predeclared identifier that auto-increments within a const block to generate successive enumerated values
Reveal the answer + AI explanation — free account

7. What is Zero value?

Junior
  1. A.the predeclared identifier that auto-increments within a const block to generate successive enumerated values
  2. B.a lightweight descriptor over a backing array holding a pointer, length and capacity
  3. C.the behavior where adding to a slice may allocate a new backing array, so the result must be reassigned to the variable to be visible
  4. D.the default initialized value (0, false, "" or nil) given to a declared variable when no explicit value is supplied
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.Zero value — a lightweight descriptor over a backing array holding a pointer, length and capacity
  2. B.Zero value — a fixed-size sequence whose length is part of its type and which is copied by value on assignment
  3. C.Zero value — the predeclared identifier that auto-increments within a const block to generate successive enumerated values
  4. D.Zero value — the default initialized value (0, false, "" or nil) given to a declared variable when no explicit value is supplied
Reveal the answer + AI explanation — free account

10. What is iota?

Mid
  1. A.the behavior where adding to a slice may allocate a new backing array, so the result must be reassigned to the variable to be visible
  2. B.the default initialized value (0, false, "" or nil) given to a declared variable when no explicit value is supplied
  3. C.the predeclared identifier that auto-increments within a const block to generate successive enumerated values
  4. D.a fixed-size sequence whose length is part of its type and which is copied by value on assignment
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.iota — a fixed-size sequence whose length is part of its type and which is copied by value on assignment
  2. B.iota — the default initialized value (0, false, "" or nil) given to a declared variable when no explicit value is supplied
  3. C.iota — the predeclared identifier that auto-increments within a const block to generate successive enumerated values
  4. D.iota — the behavior where adding to a slice may allocate a new backing array, so the result must be reassigned to the variable to be visible
Reveal the answer + AI explanation — free account

13. What is Append realloc trap?

Senior
  1. A.a lightweight descriptor over a backing array holding a pointer, length and capacity
  2. B.the behavior where adding to a slice may allocate a new backing array, so the result must be reassigned to the variable to be visible
  3. C.a fixed-size sequence whose length is part of its type and which is copied by value on assignment
  4. D.the predeclared identifier that auto-increments within a const block to generate successive enumerated values
Reveal the answer + AI explanation — free account

14. Which term means: "the behavior where adding to a slice may allocate a new backing array, so the result must be reassigned to the variable to be visible"?

Senior
  1. A.Append realloc trap
  2. B.Array
  3. C.Slice
  4. D.Zero value
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Senior
  1. A.Append realloc trap — the default initialized value (0, false, "" or nil) given to a declared variable when no explicit value is supplied
  2. B.Append realloc trap — the behavior where adding to a slice may allocate a new backing array, so the result must be reassigned to the variable to be visible
  3. C.Append realloc trap — a fixed-size sequence whose length is part of its type and which is copied by value on assignment
  4. D.Append realloc trap — a lightweight descriptor over a backing array holding a pointer, length and capacity
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 Core Language free