📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

πŸ“š .NET Interview Questions

1325 questions for senior .NET engineer interviews, each with a 30-second answer, the full answer, a deep dive, the follow-ups interviewers ask next, and real-world production problems.

AI-Assisted Development

AI coding assistants such as GitHub Copilot: how they work, prompting for code, AI for code review, tests and documentation, refactoring support, limitations, hallucinations and security risks, and rolling them out to a team.

  1. How do you prompt an AI coding assistant well for code? What context, constraints and examples do you give it, how do you ask for tests and edge cases, and how do you iterate when the first answer is wrong?

    Prompting AI assistants for code: goal, context, constraints and examples, instruction files, asking for edge cases and tests first, decomposing work, and iterating on concrete failures.

    Intermediate Theory AI-Assisted Development Β· πŸ”— 2 follow-ups
  2. What are the security risks of AI-generated code, such as insecure patterns, hallucinated packages, licence issues and secrets leaking into prompts, and how do you control them in a .NET team?

    Security risks of AI-generated code and AI coding tools: insecure patterns from training data, hallucinated packages and slopsquatting, licence exposure, secrets and personal data in prompts, poisoned instruction files, and the .NET controls for each.

    Mid-Level Security AI-Assisted Development Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  3. How do AI coding assistants such as GitHub Copilot actually work? Explain the LLM underneath, what context it sees, the difference between inline completion, chat and agent mode, and what these tools are good and bad at for a .NET developer.

    How AI coding assistants work: next-token prediction by an LLM, the context window and what the IDE sends, completion vs chat vs agent mode vs cloud coding agent, and their strengths and limits.

    Junior Theory AI-Assisted Development Β· πŸ”— 2 follow-ups
  4. How do you use AI for code review, test generation and documentation? Where does it genuinely save time, where does it waste it, and how do you check its output before trusting it?

    Using AI assistants for code review, unit test generation and documentation: where they help, where they mislead, and how to verify AI tests (mutation testing, breaking the code), AI review comments and generated docs.

    Mid-Level Theory AI-Assisted Development Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  5. How would you introduce AI coding tools to a .NET team? Talk me through the guidelines you'd set, what must still be reviewed by a human, how you'd handle sceptics and over-enthusiasts, and how you'd measure whether it actually helped.

    Leading an AI-tools rollout: pilot, usage and data guidelines, human review rules, training, handling different attitudes in the team, and measuring impact with delivery and quality metrics rather than acceptance rates.

    Senior Behavioral AI-Assisted Development Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  6. Code review: an AI coding agent opened a PR adding a CSV price-import endpoint to an ASP.NET Core API. It compiles, CI is green and the agent's own tests pass, but it pins an old Newtonsoft.Json version and has subtle bugs. Walk me through what you find, how you rank it, and how you close the review.

    Reviewing an AI-generated pull request: missing authorisation, fire-and-forget work, culture-dependent parsing, partial writes, a vulnerable pinned dependency and self-confirming tests, ranked by severity with a rewrite and review-closing policy.

    Senior CodeReview AI-Assisted Development Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world

🌐 Sangam's Webring

βͺ Previous 🏠 Main Next ⏩
πŸ’¬ Chat with me