Skip to content

Software Development

← Back to all decks

40 cards — 🟢 6 easy | 🟡 14 medium | 🔴 6 hard

🟢 Easy (6)

1. What is Scrum in regards to software development?

Show answer * Scrum is an agile software development framework

* Fixed length iterations
* Requires the team to have roles like scrum master and product owner

Remember: "DRY = Don't Repeat Yourself." Extract repeated logic into functions/modules. But don't over-DRY — some duplication is fine if the contexts differ.

Gotcha: Premature abstraction is worse than duplication. Wait for the third occurrence.

Name origin: "Scrum" comes from rugby — a formation where the team works together to move the ball forward. Coined by Takeuchi and Nonaka (1986).

Number anchor: Sprint length is typically 2 weeks. Daily standup = 15 min max.

2. What are static typed (or simply typed) languages?

Show answer In static typed languages the variable type is known at compile-time instead of at run-time.
Such languages are: C, C++ and Java

Remember: "SOLID = five OOP design principles." S = Single Responsibility, O = Open/Closed, L = Liskov Substitution, I = Interface Segregation, D = Dependency Inversion.

X vs Y: Static typing catches type errors at compile time. Dynamic typing catches them at runtime. Trade-off: safety vs. flexibility.

Example: Go, Rust, TypeScript are modern statically typed languages. Python, Ruby, JavaScript are dynamically typed.

3. What is DRY? What is your opinion on it?

Show answer DRY - Don't repeat yourself. Actually it means that you shouldn't duplicate logic and use functions/classes instead. But this must be done smartly and pay attention to the domain logic. Same code lines don't always mean duplication

Gotcha: Over-applying DRY creates tight coupling. The rule of three: wait until you see the same pattern three times before abstracting.

Remember: "WET = Write Everything Twice (acceptable). DRY = Don\'t Repeat Yourself (ideal). AHA = Avoid Hasty Abstractions (pragmatic)."

4. What is Object Oriented Programming? Why is it important?

Show answer [educative.io](https://www.educative.io/blog/object-oriented-programming) "Object-Oriented Programming (OOP) is a programming paradigm in computer science that relies on the concept of classes and objects. It is used to structure a software program into simple, reusable pieces of code blueprints (usually called classes), which are used to create individual instances of objects."

OOP is the mainstream paradigm today. Most of the big services are wrote with OOP

Name origin: OOP was pioneered by Alan Kay at Xerox PARC with Smalltalk (1972). He later said "I made up the term object-oriented and I did not have C++ in mind."

5. What is a compiler and interpreter?

Show answer [bzfar.org](https://www.bzfar.org/publ/algorithms_programming/programming_languages/translators_compiler_vs_interpetator/42-1-0-50)

Compiler:

"A compiler is a translator used to convert high-level programming language to low-level programming language. It converts the whole program in one session and reports errors detected after the conversion. Compiler takes time to do its work as it translates high-level code to lower-level code all at once and then saves it to memory."

Interpreter:
\

6. What is YAGNI? What is your opinion on it?

Show answer YAGNI - You aren't gonna need it. You must add functionality that will be used. No need to add functionality that is not directly needed

Remember: "API versioning prevents breaking clients." Use URL path (/v1/users) or headers.

Gotcha: Never remove fields from an API response without a major version bump.

Name origin: YAGNI = "You Ain\'t Gonna Need It." From Extreme Programming (XP). Don\'t build features until they\'re actually needed.

🟡 Medium (14)

1. Explain Dependency Injection (DI)

Show answer Dependency Injection - design pattern, used with IoC. Our object fields (dependencies) must be configurated by external objects

Remember: "Code review catches bugs, shares knowledge, enforces standards." Review the code, not the person.

Example: Instead of `class Service { db = new Database() }`, inject: `class Service { constructor(db) { this.db = db } }`. Now you can swap implementations for testing.

Analogy: DI is like a restaurant where you bring your own ingredients — the chef (class) doesn\'t decide what to cook with.

2. Explain expressions and statements

Show answer An expression is anything that results in a value (even if the value is None). Basically, any sequence of literals so, you can say that a string, integer, list, ... are all expressions.

Statements are instructions executed by the interpreter like variable assignments, for loops and conditionals (if-else).

Example: `x = 5` is a statement (no value). `5 + 3` is an expression (returns 8). In Python, `x = (y := 5)` is a walrus operator — expression inside a statement.

3. What is Kanban in regards to software development?

Show answer * Kanban is an agile software development framework

* It focuses on having flexible and fluid process - no deadlines, fewer meetings, less formal roles
* While arguable, Kanban seems to fit better small teams rather than big teams who might benefit more from structurized process

Under the hood: Kanban\'s key metric is lead time (time from request to done). WIP (Work In Progress) limits prevent multitasking overhead.

4. Tell me everything you know about Linked Lists

Show answer * A linked list is a data structure
* It consists of a collection of nodes. Together these nodes represent a sequence
* Useful for use cases where you need to insert or remove an element from any position of the linked list
* Some programming languages don't have linked lists as a built-in data type (like Python for example) but it can be easily implemented

5. What is "Duck Typing"?

Show answer When I see a bird that walks like a duck and swims like a duck and quacks like a duck, I call that bird a duck.

This is direction in programming, where we are checking properties of object, but not it's type

Name origin: From the phrase "If it walks like a duck and quacks like a duck, it must be a duck." Used in Python, Ruby, and JavaScript.

Example: In Python, any object with a `.read()` method can be used where a file is expected — it doesn\'t need to inherit from a File class.

6. What programming language do you prefer to use for DevOps related tasks? Why specifically this one?

Show answer For example, Python. It's multipurpose, easy-to-learn, continuously-evolving, and open-source. And it's very popular today

Remember: "Refactoring = changing structure without changing behavior." Always have tests before refactoring.

Example: Extract method, rename variable, split class — small, safe steps.

Interview tip: Name 2-3 specific projects where you used the language. Generic answers like "it\'s popular" are weak.

7. Explain Inversion of Control (IoC)

Show answer Inversion of Control - design principle, used to achieve loose coupling. You must use some abstraction layer to access some functionality (similar to SOLID Dependency Inversion)

Remember: "Pair programming = two devs, one machine." Driver types, navigator reviews. Switch roles frequently.

Example: A web framework is IoC — you register handlers, and the framework calls them. You don\'t control the execution flow, the framework does.

8. Explain what are design patterns

Show answer [refactoring.guru](https://refactoring.guru/): "Design patterns are typical solutions to commonly occurring problems in software design. They are like pre-made blueprints that you can customize to solve a recurring design problem in your code."

Remember: "TDD cycle: Red (write failing test) → Green (make it pass) → Refactor (clean up)." Repeat.

Example: Singleton (one instance), Factory (create objects), Observer (pub/sub), Strategy (swappable algorithms). The Gang of Four book (1994) cataloged 23 patterns.

9. Explain string interpolation

Show answer String interpolation - process of evaluating of string literal. For example (JS):
```js\nconst messages = 5;\nconsole.log(`You have ${messages} new messages`); // You have 5 new messages \n```

Remember: "Feature flags = deploy ≠ release." Ship code behind flags, enable for a subset of users, then roll out gradually.

Gotcha: Stale flags are tech debt. Clean up flags after full rollout.

Example: Python: f"Hello {name}". Ruby: "Hello #{name}". Bash: "Hello ${name}". Each language has its own syntax but the concept is universal.

10. What is Agile in regards to software development?

Show answer [Atlassian](https://www.atlassian.com/agile/kanban/kanban-vs-scrum): "is a structured and iterative approach to project management and product development. It recognizes the volatility of product development, and provides a methodology for self-organizing teams to respond to change without going off the rails."

Timeline: The Agile Manifesto was published in 2001 by 17 software developers in Snowbird, Utah. It values individuals, working software, collaboration, and responding to change.

11. What is recursion and when is it useful in programming?

Show answer Recursion - process (or strategy), when function calls itself. It has recursive case and exit case. In recursive case we call function again, in exit case we finish function without calling it again. If we don't have exit case - function will work infinite, until memory overload or call stack limit

Remember: "Microservices = independently deployable services." Each service owns its data and API. The trade-off: operational complexity.

Gotcha: Don't start with microservices — start monolith, extract when needed.

Gotcha: Every recursive function must have a base case (exit condition) or it will cause a stack overflow. Python\'s default recursion limit is 1000.

12. What is Composition in the context of infrastructure or OOP?

Show answer Composition - ability to build a complex object from other objects

Example: A Car HAS-A Engine (composition) vs. a Car IS-A Vehicle (inheritance). Composition is more flexible because you can swap the engine.

Remember: "Favor composition over inheritance" — GoF Design Patterns. Inheritance creates rigid hierarchies; composition creates flexible assemblies.

13. What are the four pillars of object oriented programming?

Show answer * Abstraction - you don't need to know how this class implemented. You need to know what functionality does it provide (interface) and how to use it
* Encapsulation - keep fields for class purposes private (or protected) and provide public methods if needed. We must keep the data and code safe within the class itself
* Inheritance - gives ability to create class that shares some of attributes of existing classes
* Polymorphism - same methods in different contexts can do different things. Method overloading and overriding are some forms of polymorphism

Remember: "12-Factor App = methodology for building SaaS." Key factors: config in env vars, stateless processes, port binding, disposability.

14. Given an array/list of integers, find 3 integers which are adding up to 0 (in any language you would like)

Show answer ```\ndef find_triplets_sum_to_zero(li):\n li = sorted(li)\n for i, val in enumerate(li):\n low, up = 0, len(li)-1\n while low < i < up:\n tmp = var + li[low] + li[up]\n if tmp > 0:\n up -= 1\n elif tmp < 0:\n low += 1\n else:\n yield li[low], val, li[up]\n low += 1\n up -= 1\n```

🔴 Hard (6)

1. Can you compare between Kanban and Scrum?

Show answer * Kanban is continuous, fluid and visualized process whereas Scrum is short and structured, where work is shipped during fixed intervals known as sprints


* Kanban is less structured compared to other frameworks like scrum
* Kanban is more visualized way of managing the development process
* Kanban has fewer meetings and formal roles compared to other frameworks like scrum

2. What is binary search and what is its time complexity?

Show answer It's a search algorithm used with sorted arrays/lists to find a target value by dividing the array each iteration and comparing the middle value to the target value. If the middle value is smaller than target value, then the target value is searched in the right part of the divided array, else in the left side. This continues until the value is found (or the array divided max times)

Python implementation: use bisect module or a simple while loop halving the search range.

The average performance of the above algorithm is O(log n). Best performance can be O(1) and worst O(log n).

3. Describe (no need to implement) how to detect a loop in a Linked List

Show answer There are multiple ways to detect a loop in a linked list. I'll mention three here:

Worst solution:
Two pointers where one points to the head and one points to the last node. Each time you advance the last pointer by one and check whether the distance between head pointer to the moved pointer is bigger than the last time you measured the same distance (if not, you have a loop).
The reason it's probably the worst solution, is because time complexity here is O(n^2)

Decent solution:

Create an hash table and start traversing the linked list.

4. Are you familiar with SOLID design principles?

Show answer SOLID design principles are about:

* Make it easier to extend the functionality of the system
* Make the code more readable and easier to maintain

SOLID is:

* Single Responsibility - A class* should have one ~responsibility~ reason to change. It was edited by Robert Martin due to wrong understanding of principle
* Open-Closed - A class should be open for extension, but closed for modification. What this practically means is that you should extend functionality by adding a new code and not by modifying it.

5. Describe what would be the time complexity of the operations access, search insert and remove for the following data structures:

Show answer * Stack
* Queue
* Linked List
* Binary Search Tree

Remember: "Technical debt = shortcuts that must be repaid." Interest accrues as maintenance cost. Track it explicitly, don't ignore it.

Gotcha: Not all debt is bad — conscious debt with a payoff plan is a valid strategy.

6. Explain big O notation

Show answer [habr.com](https://habr.com/ru/post/559518/) "We can use Big O notation to compare and search different solutions to find which solution is best. The best solution is one that consumes less amount of time and space. Generally, time and space are two parameters that determine the efficiency of the algorithm.

Big O Notation tells accurately how long an algorithm takes to run. It is a basic analysis of algorithm efficiency. It describes the execution time required. It depends on the size of input data that essentially passes in.