Interview Questions for Software Positions

Interviews are hard. You should not just aimlessly ask questions. You need to have a plan. You need to concentrate on these five areas: Personality fit, software engineering skills, specific technical requirements of the job, a passion for software development, and a history of getting jobs done.

  1. Questions for the five phases of interviewing for software developers
    1. Personality Fit, Warm up and General Background
      1. Tell us a little bit about yourself.
      2. Why are you leaving your current job?
      3. What would you like to do?
      4. What do you like about your current/former job? What don't you like?
      5. How would you rate your current/former management?
      6. What motivates you?
      7. Would you like to be the team leader or team member?
      8. Tell me about a conflict at a previous job and how you resolved it.
      9. Make sure candidate knows the requirements of the job, then ask, "Can you do this job?"
      10. (Summary personality item: Think to yourself, "If we hire this person, would I want to spend four hours driving in a car with them?")
    2. Software Engineering Skills
      1. What are the SOLID principles for Object Oriented Designs?
        1. S – Single-Responsibility Principle

          A class should only do one thing.

        2. O – Open-Closed Principle

          Software should be able to be designed such that it can extended and used by others without having to crack it open and change things.

        3. L – Liskov Substitution Principle

          Objects should be replaceable with their subtypes (e.g., a Sheep should be able to replace a Mammal or Animal).

        4. I – Interface Segregation Principle

          Interfaces should be logically grouped into small cohesive units so objects when implementing an interface don't have a bunch of extraneous empty methods.

        5. D – Dependency Inversion Principle

          Objects and methods should invoke interfaces for dependency objects. The implementation of those interfaces should be given to the object e.g., in the constructor.

      2. What is Object Oriented Design (OOD)?

        Classically, Object-Oriented Design was defined by three characteristics:

        1. Message Passing

          The same message passed to different objects can result in the objects doing object-specific functions. For example a "calculate_area" message sent to a rectangle and triangle use different formulas.

        2. Inheritance

          Objects receive fields and methods from parents.

        3. Encapsulation

          Members and methods are hidden from the outside world and only accessed through public helper methods.

      3. Tell me about Scrum

        Scrum is a lightly prescribed process management system, which can be used for software development.

        1. Scrum has three roles:
          1. ScrumMaster - who removes obstacles from the team and guides process
          2. The Team - who actually do the work
          3. The Product Owner - who guides what needs to be built, prioritizes work, and accepts the sprint product
        2. Four Ceremonies
          1. Backlog Refinement (Optional), aka Grooming - make sure items are complete and actionable
          2. Daily Scrum - what are my obstacles
          3. Sprint Planning Meeting - select items to be implemented this scrum
          4. Sprint Review Meeting - demo to the owner and others the progress made this sprint
          5. Sprint Retrospective - What went well? What did not go well? How to improve our process?
        3. Three Artifacts
          1. Product Backlog
          2. Sprint Backlog
          3. The Product Increment
      4. What are the benefits and drawbacks of Object-Oriented Design (OOD)?

        Benefits are many, but one of the downsides is the code is slower and takes more memory than if it were just written procedurally.

      5. What is the Agile software philosophy?
      6. What is the Lean software philosophy?
      7. Have you looked at "Domain Driven Design"?
      8. What are the benefits of Dependency Injection?
      9. What is the role of interfaces in design?
      10. What books have you read on software engineering that you thought were good?
      11. What are the really important aspects of software development?
      12. Tell me about your philosophy of database design. Database tools?
      13. What are important aspects of GUI design?
      14. What Object Relational Mapping tools have you used?
      15. Tell me about the Model-View-Controller pattern and why it's important?
      16. What is Test Driven Development and Design? Why is it important?
      17. What is the difference between a mock and a stub?
      18. Describe some of the software patterns you have used?
      19. Have you heard the term YAGNI? What does it mean?
      20. How do you design scalable applications?
      21. What is Continuous Integration (CI)?
      22. What is Continuous Delivery? (CD)
      23. What is REST?
      24. How would you design a solution to the following problem....
      25. What metrics, like cyclomatic complexity, do you think are important to track in code?
    3. Specific Technical Requirements
      1. General
        1. What software have you used for bug tracking and version control?
        2. How have you used branching? Branch by release or feature?
        3. What do you use for unit testing? GUI testing?
        4. Describe an interesting class you have designed.
        5. Have you been doing code reviews? What was the format?
        6. When and how do you optimize code?
        7. Describe your favorite build environment.
      2. Technical Questions for Web Developers
        1. What is SQL injection?
        2. Tell me about HTTP. What are the seven HTTP verbs?
        3. What is the difference between GET and POST in web forms? How do you decide which to use?
        4. What is the difference between PUT, PATCH and POST? How do you decide which to use?
        5. How do you make a REST system faster? (better hardware, caching, parallel processing, optimize components like serializers, better network connections, ...)
        6. How to make a REST system more reliable?
        7. What happens behind the scenes when you enter a URL in the browser?
        8. What are micro-services? Advantages and Disadvantages?
        9. How to make a web application more secure? (limit access, audit trail, deserialization protections, sql ingestion , cross-site scripting, ...)
        10. What JavaScript libraries have you used?
        11. What are some of the irritating limitations of CSS?
      3. Very Basic Questions about SQL for Developers
        1. What is the difference between an inner and outer join?
        2. What's the difference between a clustered index and non-cluster index?
        3. What are some aggregate functions?
        4. What does it mean to "normalize" a database?
        5. What is a view and when should you use one?
      4. Technical Questions for C# Developers
        1. Tell me about access modifiers in C#.

          The type or member can be accessed by other code ...

          1. public

            By any class in any assembly

          2. private

            Only from the same class or struct. "private" is the default.

          3. protected

            in the same class or subclasses in its assembly

          4. internal

            in the same assembly

          5. protected internal

            anywhere in the same assembly, or, from the class or a derived class in another assembly

          6. private protected (C# 7.2)

            by the same class or subclasses that are in the same assembly only

        2. What is a delegate?

          A delegate is a pointer (reference type) to a method with particular arguments and return type.

        3. Can you name some predefined delegates?

          1. Action<>

            this takes up to 16 generic arguments and returns void e.g, void Action<T1, T2>.

          2. Func<>

            this takes up to 16 generic arguments and returns a value e.g, TResult <T1, T2, out TResult>.

          3. Predicate<>

            this takes exactly one generic argument and always returns a boolean e.g, bool Predicate<T>.

        4. What's the difference between static and non-static methods?
        5. What is Serializing?
        6. What is a Finalizer? How is it different from Dispose()?

          Most objects with managed resources should implement the IDisposable interface. Dispose() is typically called by the code that created the class to release any resources. The Finalizer, also called Destructor, is called only by the Garbage Collector at the very end of an object's life.

        7. What's the difference between struct and a class?

          A struct is a value type that typically lives in the stack and not the heap. Setting a struct equal to another struct copies all the contents, unlike with a class that only the pointer is copied. structs are typically used to increase performance. DateTime is a struct, as well as int, double, and other primitives.

        8. Difference between an abstract object and an interface?
        9. Tell me about threading.
        10. What LINQ operators have you used?
      5. Common Whiteboard Exercises
        1. Sort an array of ints. Sort an array of T.
        2. Reverse a string programmatically. Now do it recursively.
        3. Reverse a singularly and/or doubly linked list.
        4. Print the Fibonacci numbers from 1 to n.
        5. Write a method to give the nth Fibonacci number recursively.
    4. Passion for Software Development
      1. What are some influential software books you've read lately?
      2. What are your favorite technical web sites, podcasts, and blogs?
      3. Are you doing any interesting personal web projects?
      4. What do you like about software?
    5. A History Of Getting Jobs Done
      1. Tell me about your last project.
      2. Tell me about your part in the release of some important software.

      Even if you are not going to hire the person, you should be kind and encouraging. The universe is a vast unpredictable place. You may meet them at a professional society event. You may be looking for a job one day and be interviewing with this person trying to get a job at their company. Stranger things have happened.

  2. Questions to ask prospective employers

    You want to be learning and moving ahead in your career. When looking at opportunities you need to find companies that are doing software right and so can boost your abilities. You need to look at these areas and make sure the future employer is doing a good job: Software Methodology, Testing, Building and Deploying, Project, and Culture.

    1. Software Methodology
      1. Which methodology do you use: Waterfall, Scrum, Kanban, XP, other?
      2. Do you have daily standups? retrospectives? How is the sprint start meeting run? How are tasks distributed? Do you calculate velocity?
      3. How is estimating done? Story points or hours? Are story points complexity or estimated time? Who estimates? Do you "commit" to stories or "forecast" stories.
      4. What happens when the SCRUM busts and not all the tasks are finished?
      5. Do your programmers do peer programming?
      6. What tools to you use for issue tracking? Jira? TFS?
      7. Tell me about your version control. GIT Branch by release, feature, personal branching?
      8. Tell me about your Quality Assurance.
    2. Testing
      1. Do you do Test Driven Development?
      2. What framework do you use for Unit testing?
      3. What do you use for a mocking framework?
      4. How do you measure code coverage and do you have standards for percentage?
      5. What software metrics do you track?
    3. Building And Deploying
      1. What is your build process?
      2. Do you deploy to a cloud?
      3. What tools do you use for Continuous Integration?
      4. What tools for Continuous Delivery? How frequent are releases?
      5. What happened the last time you had to roll back?
    4. Project
      1. What is the most pressing need you have in the next 3 months?
      2. What are the significant challenges the company faces now?
      3. Tell me about the project you hiring for?
      4. What version of C#/Java/Python are you on?
      5. Is the job mostly adding features to existing code, or new greenfield development?
      6. What technologies do you plan on using?
    5. Culture / General
      1. How many hours per week do people usually work? When was the last time you worked on the weekend?
      2. What is your management style?
      3. What are important traits of your employees?
      4. What motivates your employees?
      5. What do most people do for lunch? (Do they eat the their desk, everyone go out on Fridays?)
      6. Do you have any celebrations? (Birthdays? End of Project?)
      7. Why is there an opening?
      8. What are your distinct advantages in the marketplace?
      9. Is your company making money?

        It's always more fun to work at companies making lots of money.

      10. How do you encourage education in your people?
      11. What is one thing you would change about the company?
      12. What has been the turnover rate in the department?
      13. Can I meet the people who would be my co-workers?
  3. Hints for taking white board programming tests

    These days the interview process typically involves coding a small problem in a whiteboard environment like coderpad.io or through Skype. Here's my hints on taking the tests:

    1. Make sure you understand the problem first. Give sample input and output to make sure you comprehend the task.
    2. Talk, talk, talk. As you are thinking through different options on a solution, talk out loud about the things you are considering.
    3. Think about overflow and underflow conditions. For example, ask the problem presenter if the number of items may be greater than 2 billion, in which case you need to use 'long' instead of 'int'.
    4. When writing methods, be sure to check the validity of incoming arguments. Is an array null, or an incoming count variable negative?
    5. When doing recursion, make sure you include the trivial case.
  4. Mitch's Quick Tips for Being Interviewed
    1. Start and end the interview by thanking the interviewers for their time.
    2. Don't talk too much.

      Make your point and stop. The interviewers will normally be too polite to stop you, but just stop talking after you answer their question.

    3. When you don't know the answer, just say you don't know.

      Few people will know all the answers. It's best not to pretend you know and try to make up things. Just say you don't know, so they can ask you questions about things you do know.

    4. Ask for the right answer.

      If you feel you didn't answer a question to the interviewer's liking, ask them what the answer is they were looking for. You can learn a lot on today's interview for your next one.

    5. Write down all the people's name in a panel.

      It's helpful in followup conversations.

    6. Don't be afraid to let your humor show.

      It's not much fun to interview possible candidates. Don't be too serious. Liven things up. But not too much.

  5. Questions to ask possible future coworkers at a prospective employer
    1. How many training courses did you go to last year?
    2. How many hours per week do people usually work? How many hours do you work?
    3. On a level of 1 to 10, how stressful is it working here?
    4. What is the best thing you like about about working here?
    5. What is the worst thing about about working here?
    6. Why did the last person leave?
  6. Questions to ask references over the phone

    Start by describing the role "Pat" is expected to do in the new job.

    1. What was your professional relationship with Pat?
    2. How were their communication skills?
    3. What three words would describe Pat?
    4. Did you see any growth in them during this time?
    5. How did they work with other people?
    6. Did you ever see them resolve a conflict?
    7. How is their attention to detail?
    8. How did they react to negative feedback?
    9. Based on my earlier description, do you think Pat would do well in this job?
    10. Any other comments?
  7. Salary and Research Sites
    1. www.ziprecruiter.com/Salaries
    2. www.indeed.com/salary
    3. www.payscale.com
    4. salary.com
    5. GlassDoor.com
  8. C# Interview Question Sites
    1. https://www.toptal.com/c-sharp/interview-questions
  9. Recommended book for interviewees:

    Click to read reviews or buy Cracking the Coding Interview Cracking the Coding Interview