StudyFox
कीमतेंब्लॉगएक्सटेंशनमुफ़्त टूल
  • कीमतें
  • ब्लॉग
  • एक्सटेंशन
  • मुफ़्त टूल
  • शुरू करेंसाइन इन
StudyFox

अपने नोट्स, PDF और स्लाइड्स को फ़्लैशकार्ड, क्विज़, नोट्स और माइंड मैप में बदलें।

StudyFox खोलें

स्टडी टूल्स

  • होमवर्क हेल्पर
  • नोट मेकर
  • फ़्लैशकार्ड मेकर
  • क्विज़ मेकर
  • माइंड मैप मेकर

प्रोडक्ट

  • कीमतें
  • Chrome एक्सटेंशन
  • मुफ़्त एक्सटेंशन
  • स्टडी सेट देखें
  • ब्लॉग

सहायता

  • सहायता केंद्र
  • संपर्क करें
  • गोपनीयता नीति
  • सेवा की शर्तें

तुलना करें

  • Chegg का विकल्प
  • Course Hero का विकल्प
  • Coursology का विकल्प
  • Photomath का विकल्प
  • Gauthmath का विकल्प
  • PhotoSolve का विकल्प
  • CollegeTools का विकल्प
  • Transcript का विकल्प
  • SmartSolve का विकल्प
  • Homeworkify का विकल्प
  • AnswersAi का विकल्प
  • StudyX का विकल्प
  • Quizlet का विकल्प
  • Anki का विकल्प
  • Knowt का विकल्प
  • Brainscape का विकल्प
  • सभी तुलनाएँ

© 2026 StudyFox AI. सर्वाधिकार सुरक्षित।

  • X
  • Discord
  • Instagram
ExploreEngineering & TechComputer ScienceSoftware Engineering Quiz: Design, Testing, Git and DevOps

Quiz · Hard

Software Engineering Quiz: Design, Testing, Git and DevOps

SOLID, patterns, architecture, test design, Git workflows, CI/CD and secure practices.

by Kill h.20 questionsCreated Nov 20, 2026, 08:26 PM
Computer Science· Software EngineeringTags#design-patterns#testing#git#ci-cd#computer-science#software-engineering

20 questions

  1. 1

    Which SOLID principle says high-level modules should depend on abstractions?

    • A

      Single responsibility

    • B

      Open/closed

    • C

      Liskov substitution

    • Dependency inversion

    Depend on interfaces so implementations can be swapped and tested.

  2. 2

    A class has one method for saving to a database, another for formatting reports and another for emailing. Which principle does it most clearly violate?

    • A

      Interface segregation

    • Single responsibility

    • C

      Liskov substitution

    • D

      DRY

    It has several unrelated reasons to change.

  3. 3

    Which pattern notifies many dependents automatically when an object's state changes?

    • A

      Singleton

    • Observer

    • C

      Facade

    • D

      Builder

    Observer (publish/subscribe) decouples the subject from its listeners.

  4. 4

    A payment service must support card, PayPal and bank transfer chosen at runtime. Which pattern fits best?

    • Strategy

    • B

      Singleton

    • C

      Iterator

    • D

      Facade

    Strategy encapsulates interchangeable algorithms behind one interface.

  5. 5

    Which pattern gives a simple entry point to a complicated subsystem?

    • A

      Adapter

    • B

      Decorator

    • Facade

    • D

      Command

    A facade hides the complexity of many classes behind a simple interface.

  6. 6

    What are the three parts of the MVC pattern?

    • A

      Module, Variable, Class

    • Model, View, Controller

    • C

      Method, Value, Constant

    • D

      Master, Visitor, Client

    Model holds data and logic, View presents it, Controller handles input.

  7. 7

    Which is a major drawback of microservices compared with a monolith?

    • A

      No independent deployment

    • Added distributed-system and operational complexity

    • C

      They cannot scale

    • D

      They require one language

    Network calls, data consistency and operations become harder.

  8. 8

    In TDD, what is the order of the cycle?

    • A

      Green, red, refactor

    • Red, green, refactor

    • C

      Refactor, red, green

    • D

      Red, refactor, green

    Write a failing test, make it pass, then clean up.

  9. 9

    A field accepts ages from 18 to 65. Which set contains the best boundary test values?

    • A

      20, 40, 60

    • 17, 18, 19, 64, 65, 66

    • C

      0, 100

    • D

      18, 65 only

    Boundary value analysis tests at and either side of each edge.

  10. 10

    In the test pyramid, which layer should have the most tests?

    • A

      End-to-end

    • B

      Integration

    • Unit

    • D

      Manual exploratory

    Unit tests are fast and cheap, so they form the broad base.

  11. 11

    What does a mock object do that a simple stub does not?

    • A

      Returns canned values

    • Verifies that expected interactions happened

    • C

      Persists data

    • D

      Runs faster

    Mocks assert on how they were called; stubs only supply responses.

  12. 12

    What does git pull do?

    • A

      Uploads commits

    • Fetches remote changes and merges them into the current branch

    • C

      Creates a branch

    • D

      Deletes remote branches

    pull = fetch + merge (or rebase).

  13. 13

    In the diagram, how many parents does the final commit Z' have?

    • A

      0

    • B

      1

    • 2

    • D

      3

    A merge commit has two parents: Z and D.

  14. 14

    Why should you avoid rebasing commits that others have already pulled?

    • A

      It deletes the repository

    • It rewrites history, causing diverged copies and confusion

    • C

      It is slower

    • D

      It removes tags

    Rebasing creates new commits with new hashes.

  15. 15

    Which version bump signals a backward-incompatible API change under SemVer?

    • A

      PATCH

    • B

      MINOR

    • MAJOR

    • D

      BUILD

    MAJOR increments for breaking changes; MINOR for compatible features; PATCH for fixes.

  16. 16

    In the CI/CD pipeline shown, which practice includes the build and test stages that run on each commit?

    • Continuous integration

    • B

      Continuous monitoring

    • C

      Manual QA

    • D

      Capacity planning

    CI automatically builds and tests every change.

  17. 17

    A new version is released to 5% of users first and then widened if metrics stay healthy. What is this called?

    • A

      Blue-green deployment

    • Canary release

    • C

      Big bang release

    • D

      Rollback

    Canary releases limit the blast radius of a bad release.

  18. 18

    What is the safest way to store user passwords?

    • A

      Plain text in the database

    • B

      Encrypted with a reversible key

    • Salted hash with bcrypt or Argon2

    • D

      Base64 encoded

    Slow salted hashes resist brute force; the original password is never recoverable.

  19. 19

    Which refactoring statement is correct?

    • A

      It adds new features

    • B

      It changes behaviour to fix bugs

    • It improves internal structure without changing external behaviour

    • D

      It removes all tests

    Tests guard that behaviour stays the same.

  20. 20

    Which UML diagram shows messages between objects ordered in time?

    • A

      Class diagram

    • B

      Use case diagram

    • Sequence diagram

    • D

      Component diagram

    Lifelines run vertically and messages are arrows ordered top to bottom.