Lesson Thursday

At the end of every course section, we'll take a break from coding to practice interview questions with our partner. These questions will (primarily) revolve around the content we learned in this course section, and, much like a "real" interview, some will be more technical than others.

In addition to learning how to implement the new tools, technologies, and concepts, you want to become comfortable talking about them so you can accurately demonstrate and communicate these skills you've learned to potential employers in an interview.

Take turns answering the questions below with your partner.

Technical Interview Questions


  • Why should we test our code before writing our methods? What is the purpose of having our tests fail before they pass?
  • What is encapsulation? Why is encapsulation so important in object-oriented programming?
  • What is abstraction? How can we use it to help encapsulate our code?
  • What is class inheritance? What are some of its advantages and disadvantages?
  • What is the difference between a module and a class?
  • What is the Enumerable module? What are some of its most useful methods? Demonstrate using a few if possible.
  • What are attr methods? What is the difference between a reader and a writer method? Come up with a few examples of when we wouldn't want to use a writer method.

Stories and Examples


Offering a tangible story or example that highlights your skills usually goes much further in an interview than simply telling your interviewer you're good at something. (i.e.: Telling a story about a time you tracked down a tricky bug versus simply saying "I'm good at problem-solving!").

Review the STAR method, discussed in this lesson on non-technical interviews. Use the STAR method to practice answering non-technical questions with your partner.

Again, if you come up with a story or example you feel good about, jot it down somewhere! It's tough to come up with stories like this in an interview on the spot. Having a few tucked away to review before an interview will be a huge benefit to you later.

Lesson 21 of 22
Last updated more than 3 months ago.