1. Home
  2. Explore
  3. Computer Science
  4. Software Architecture Interview Questions

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Software Architecture Interview Questions

  • 22Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Architecture Fundamentals
In explaining a project architecture, you should start at the 50,000 ft. level by discussing
and then move to lower levels.

22 questions

  1. 1
    In explaining a project architecture, you should start at the 50,000 ft. level by discussing
    _____
    and then move to lower levels.
    Hint

    Think about the first high-level view of a system's structure.

    Answer

    layers

  2. 2
    An architecture style like REST defines only
    _____
    and principles, not a specific block diagram or code structure.
    Hint

    Consider what an architecture style provides compared to a pattern.

    Answer

    guidelines

  3. 3
    An architecture pattern such as MVC provides a
    _____
    level block diagram defining overall structure but not specific code.
    Hint

    This level sits between guidelines and code-level details.

    Answer

    structure

  4. 4
    Design patterns are
    _____
    tested solutions for recurring architecture problems.
    Hint

    Think of a word that means proven over repeated use.

    Answer

    time

  5. 5
    The three primary categories of design patterns from the Gang of Four are creational, structural, and
    _____
    .
    Hint

    This category deals with communication between objects.

    Answer

    behavioral

  6. 6
    An example of a creational design pattern that ensures a class has only one instance is the
    _____
    pattern.
    Hint

    This pattern is often used for caching or shared configuration.

    Answer

    singleton

  7. 7
    An example of a structural design pattern that allows incompatible interfaces to work together is the
    _____
    pattern.
    Hint

    Think of a real-world power plug adapter.

    Answer

    adapter

  8. 8
    An example of a behavioral design pattern that defines a one-to-many dependency between objects is the
    _____
    pattern (commonly used for event handling).
    Hint

    This pattern is used when changes in one object need to be notified to others.

    Answer

    observer

  9. 9
    In the singleton pattern, the constructor should be
    _____
    to prevent external instantiation.
    Hint

    What access modifier ensures no other class can create instances?

    Answer

    private

  10. 10
    To ensure thread safety in a singleton, you typically use a
    _____
    object to synchronize access during instance creation.
    Hint

    This keyword in C# (or similar constructs in other languages) ensures mutual exclusion.

    Answer

    lock

  11. 11
    The outer null check in a singleton's double null check pattern improves
    _____
    by avoiding unnecessary locking.
    Hint

    Why would you skip the lock if the object is already created?

    Answer

    performance

  12. 12
    Singleton pattern is different from using a static class because a static class loses
    _____
    oriented programming features like inheritance and interface implementation.
    Hint

    Think about the paradigm that includes polymorphism and encapsulation.

    Answer

    object

  13. 13
    In C#, the `
    _____
    ` keyword can be used to simplify singleton implementation by providing built-in lazy initialization and thread safety.
    Hint

    This generic class defers creation until first access.

    Answer

    Lazy

  14. 14
    GUI architecture patterns like MVC, MVP, and MVVM aim to organize the
    _____
    code between the view and the underlying components.
    Hint

    This code handles user inputs and updates the UI.

    Answer

    interaction

  15. 15
    In MVC, the first component to receive a request is the
    _____
    , which then loads the model and invokes the view.
    Hint

    This component acts as the traffic police between model and view.

    Answer

    controller

  16. 16
    In MVP, the view submits itself to the
    _____
    which then handles all UI logic and updates the view.
    Hint

    This component acts as a guru that the view depends on completely.

    Answer

    presenter

  17. 17
    In MVP, the view is often called a
    _____
    view because it does no work and relies entirely on the presenter.
    Hint

    This term describes a view that only forwards events and updates its UI based on directives.

    Answer

    passive

  18. 18
    The importance of the interface in MVP is that it acts as a
    _____
    between the presenter and the view for callbacks.
    Hint

    This allows the presenter to interact with any view that implements the interface.

    Answer

    mediator

  19. 19
    MVVM differs from MVP primarily because it relies on
    _____
    bindings to connect the view and view model.
    Hint

    These bindings are declarative and update automatically.

    Answer

    automated

  20. 20
    A view model class encapsulates the model and provides everything needed for the view, including data, colors, and
    _____
    logic.
    Hint

    This includes visual properties like foreground/background color, enabling/disabling, etc.

    Answer

    aesthetics

  21. 21
    The choice between MVC, MVP, and MVVM is largely
    _____
    by the technology being used.
    Hint

    Think about what forces the decision, such as whether the view loads first or supports bindings.

    Answer

    dictated

  22. 22
    When a candidate answers a question in a way that prompts the interviewer to ask further related questions, it is called a
    _____
    interview question.
    Hint

    This helps control the direction of the interview toward your strengths.

    Answer

    candidate driven

1 of 22
Question 1 of 22

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent