Interop interview questions

15 real Interop questions from the .NET 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 Platform Invoke?

Junior
  1. A.a construct that temporarily pins a managed object in place so the collector will not move it while a pointer references it
  2. B.a region explicitly permitted to use pointers and direct memory addressing, bypassing the usual safety guarantees
  3. C.the mechanism that calls functions exported from native shared libraries directly from managed code
  4. D.the automatic conversion of data representations as values cross the boundary between managed and native code
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Platform Invoke — a region explicitly permitted to use pointers and direct memory addressing, bypassing the usual safety guarantees
  2. B.Platform Invoke — the mechanism that calls functions exported from native shared libraries directly from managed code
  3. C.Platform Invoke — a construct that temporarily pins a managed object in place so the collector will not move it while a pointer references it
  4. D.Platform Invoke — the bridge that lets managed code consume and expose Component Object Model components, primarily on Windows
Reveal the answer + AI explanation — free account

4. What is Marshaling?

Mid
  1. A.the mechanism that calls functions exported from native shared libraries directly from managed code
  2. B.the automatic conversion of data representations as values cross the boundary between managed and native code
  3. C.a construct that temporarily pins a managed object in place so the collector will not move it while a pointer references it
  4. D.the bridge that lets managed code consume and expose Component Object Model components, primarily on Windows
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.Marshaling — the automatic conversion of data representations as values cross the boundary between managed and native code
  2. B.Marshaling — the mechanism that calls functions exported from native shared libraries directly from managed code
  3. C.Marshaling — a region explicitly permitted to use pointers and direct memory addressing, bypassing the usual safety guarantees
  4. D.Marshaling — the bridge that lets managed code consume and expose Component Object Model components, primarily on Windows
Reveal the answer + AI explanation — free account

7. What is Unsafe code?

Mid
  1. A.a construct that temporarily pins a managed object in place so the collector will not move it while a pointer references it
  2. B.the bridge that lets managed code consume and expose Component Object Model components, primarily on Windows
  3. C.a region explicitly permitted to use pointers and direct memory addressing, bypassing the usual safety guarantees
  4. D.the mechanism that calls functions exported from native shared libraries directly from managed code
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Unsafe code — a region explicitly permitted to use pointers and direct memory addressing, bypassing the usual safety guarantees
  2. B.Unsafe code — a construct that temporarily pins a managed object in place so the collector will not move it while a pointer references it
  3. C.Unsafe code — the bridge that lets managed code consume and expose Component Object Model components, primarily on Windows
  4. D.Unsafe code — the automatic conversion of data representations as values cross the boundary between managed and native code
Reveal the answer + AI explanation — free account

10. What is Fixed statement?

Senior
  1. A.a region explicitly permitted to use pointers and direct memory addressing, bypassing the usual safety guarantees
  2. B.a construct that temporarily pins a managed object in place so the collector will not move it while a pointer references it
  3. C.the automatic conversion of data representations as values cross the boundary between managed and native code
  4. D.the bridge that lets managed code consume and expose Component Object Model components, primarily on Windows
Reveal the answer + AI explanation — free account

11. Which term means: "a construct that temporarily pins a managed object in place so the collector will not move it while a pointer references it"?

Senior
  1. A.Platform Invoke
  2. B.Fixed statement
  3. C.Marshaling
  4. D.COM interop
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Senior
  1. A.Fixed statement — the bridge that lets managed code consume and expose Component Object Model components, primarily on Windows
  2. B.Fixed statement — a construct that temporarily pins a managed object in place so the collector will not move it while a pointer references it
  3. C.Fixed statement — a region explicitly permitted to use pointers and direct memory addressing, bypassing the usual safety guarantees
  4. D.Fixed statement — the mechanism that calls functions exported from native shared libraries directly from managed code
Reveal the answer + AI explanation — free account

13. What is COM interop?

Senior
  1. A.the bridge that lets managed code consume and expose Component Object Model components, primarily on Windows
  2. B.the automatic conversion of data representations as values cross the boundary between managed and native code
  3. C.the mechanism that calls functions exported from native shared libraries directly from managed code
  4. D.a construct that temporarily pins a managed object in place so the collector will not move it while a pointer references it
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Senior
  1. A.COM interop — the bridge that lets managed code consume and expose Component Object Model components, primarily on Windows
  2. B.COM interop — a region explicitly permitted to use pointers and direct memory addressing, bypassing the usual safety guarantees
  3. C.COM interop — the mechanism that calls functions exported from native shared libraries directly from managed code
  4. D.COM interop — a construct that temporarily pins a managed object in place so the collector will not move it while a pointer references 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 Interop free