← Questions

Implement the Linux cp command, then explain what happens underneath

0
MicrosoftCodingLast asked Sep 2026

A coding interview question asked in Microsoft's coding round, last asked Sep 2026. It tests operating systems, file i/o and c++.

Write a C++ program that behaves like cp SOURCE DEST for a regular file. Then expect the discussion to go deep into the operating system and C++ concepts under your code: system calls, the kernel's caches, faster copying, and resource…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Microsoft · Coding · Last asked Sep 202660 min · Ten to fifteen minutes of behavioral questions, then coding in HackerRank where you write a main and make the tests pass; usually three rounds · No AI unless the interviewer invites it; some 2026 loops add a round where you bring your own AI agent

What it tests

operating systems · file i/o · c++

Your code and the AI tutor open when you unlock this question.