Skills101
← All practice quizzes

Quiz: Software Architecture Styles

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Architecture is the big-picture structure of a system — its main parts and how they talk. The common architectural styles, what each is good and bad at, and a small MVC example in Python.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    In a strict layered architecture, which layer may the presentation layer call directly?

  2. Question 2

    In MVC, where should the rule "a student with less than 33 in any subject fails" be written?

  3. Question 3

    What does this print?

    class Model:
        def __init__(self):
            self.data = {'a': 3, 'b': 0}
        def stock(self, item):
            return self.data.get(item)
    
    def view(item, qty):
        return f'{item}: in stock' if qty else f'{item}: out of stock'
    
    def controller(m, item):
        q = m.stock(item)
        return 'unknown item' if q is None else view(item, q)
    
    m = Model()
    print(controller(m, 'b'), '|', controller(m, 'z'))
    
  4. Question 4

    What is the difference between a layer and a tier?

  5. Question 5

    cat marks.txt | grep CSE | sort | head -3 is an example of which style?

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →