Interop interview questions

15 Interop questions from the .NET bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

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

Answer + AI explanation with Pro

2. Which term means: "the mechanism that calls functions exported from native shared libraries directly from managed code"?

Junior
  1. A.COM interop
  2. B.Marshaling
  3. C.Platform Invoke
  4. D.Unsafe code

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

5. Which term means: "the automatic conversion of data representations as values cross the boundary between managed and native code"?

Mid
  1. A.Unsafe code
  2. B.COM interop
  3. C.Platform Invoke
  4. D.Marshaling

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

8. Which term means: "a region explicitly permitted to use pointers and direct memory addressing, bypassing the usual safety guarantees"?

Mid
  1. A.COM interop
  2. B.Fixed statement
  3. C.Unsafe code
  4. D.Marshaling

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

14. Which term means: "the bridge that lets managed code consume and expose Component Object Model components, primarily on Windows"?

Senior
  1. A.COM interop
  2. B.Platform Invoke
  3. C.Marshaling
  4. D.Unsafe code

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Interop question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers