Midterm Study Guide - Fall 2026
The exam will be held on October 12 during class (10:15 am - 11:30 am). Attendance at exams is MANDATORY. No make-ups will be given without documentation of an excused absence.
Exam Instructions
You will have 1 hour and 15 minutes to complete this exam.
- Write your Unity ID at the top of each page.
- Collaboration between students is forbidden on this exam. You must work alone.
- You may bring ONE 8.5” by 11” sheet of paper with notes. The notes must be handwritten. You must turn in these notes with your exam. If you want your notes back, please put your name on the notes (in a really obvious location). The instructor will bring the notes to lectures later in the semester.
- Computers, cell phones, calculators, music players, smart watches, and other personal electronic devices may NOT be out during the exam for any reason. There will be a clock on the projector for exam time.
- Please be quiet during the exam. If you have a question, please raise your hand.
- Corrections or clarifications to the exam will be projected at the front of the room.
- You may ask for scratch paper if you need it. The scratch paper must be returned with the exam.
- Use pen or dark pencil.
- Your exam must be placed in the designated location at the front of the classroom before the specified end time of the exam. If your exam has not been turned-in to the designated location by the end of the exam time, your exam will not be graded, and you will receive a 0%. No exams will be allowed to be placed in the designated location after the end time of the exam.
- If you violate the University Code of Conduct during the exam, you will receive a 0 for the exam and will be reported to the Office of Student Conduct.
By submitting this exam, you affirm that you followed the rules of this exam and the honor pledge: “I have neither given nor received unauthorized aid on this exam.”
Late Policy
Be on time for the exam! The exam starts promptly at the beginning of class. Any student who arrives to the exam after another student has already turned-in the exam and left the classroom will not be allowed to take the exam and will automatically receive a 0%.
Exam Format
The exam will consist of the following:
- Multiple Choice and True/False Questions
- Short Answer Questions
- Long Answer Questions
- Requirements Questions
- Design/Diagram Questions
- Inspection/Comprehension Questions
- Extra Credit
Exam Study Guide
The following sections are suggestions for areas to study. Please note that the list of things to study is not exhaustive. Resources for studying are lecture notes, exercises, project write up, and linked resources.
Course Technologies
You will not be expected to write code that is specific to any course technologies other than Java and JUnit for unit level tests and MySQL queries. However, we do expect you to know high-level things about the technologies and architectures/patterns used in CoffeeMaker.
- What are the purposes of each of the course technologies? (GitHub, GitHub Actions, Maven, REST APIs, Hibernate, Spring, React, Bootstrap, JavaScript, CSS, HTML)
- Know how to write basic MySQL queries given one or two tables and a description of what the results should be. This would be at the same level as the queries that we talked about in class (e.g.,
SELECTwithWHERE, joins,DISTINCT,ORDER BY, andCOUNTwithGROUP BY). - What is Maven? What are the main sections of a POM file (project information, dependencies, properties, build plugins, repositories), and what is each for?
- How do HTML, CSS, and JavaScript work together in a web page? What is client-side validation?
Backend and Persistence
- What are the ways to store data (flat files, key-value stores, relational databases)? What are the tradeoffs of each, and how do you choose between them?
- Know the relational database terms: table, row/tuple, column/attribute, primary key, and foreign key.
- How is a many-to-many relationship represented in a relational database? What is a join table?
- What is an ER diagram? How does it relate to a class diagram when an ORM like Hibernate is used?
- How do you test code that uses a database? Why use a separate test database, reset it between tests, or mock it?
REST API Design
- How do the HTTP verbs (GET, POST, PUT, DELETE) map to CRUD operations?
- How do you design resource URLs? What is the difference between a collection and an element? How do you represent associations (e.g.,
/owners/5678/dogs) and use query parameters for states and attributes? - Be able to write the REST calls (verb, URL, and request body) for a scenario.
- What do the common HTTP status codes mean (e.g., 200, 400, 404, 409, 500)? When should an API return each?
- What are the principles of good API design (do one thing well, don’t leak implementation details, minimize accessibility, names matter, don’t make the client do the API’s work)?
Frontend Design and HCI
- What is the lifecycle of a diagram? What is the difference between UI and UX?
- What is a wireframe? Know how to create a wireframe from requirements and trace it back to those requirements.
- What is a flow (navigation) map? Know how to draw one for a set of wireframes.
- What is paper prototyping, and how is it used to check usability?
- What is concept design? What is a task flow, and how does it separate user steps, system tasks, and design considerations?
- What is human-computer interaction (HCI)? What are its benefits (usability, financial savings, safety)?
- What are the physical, cognitive, and social perspectives on computing? Give examples of design considerations from each (e.g., anthropometrics, perception, Gestalt grouping, motivation).
Accessibility
- What is universal design?
- What laws require accessible software (Rehabilitation Act Sections 504 and 508, ADA)?
- What categories of needs should you design for?
- What are assistive technologies (screen readers, speech recognition, screen magnification, braille displays)? How do they affect the way you build a user interface?
- How do you test for accessibility? Compare manual and automated accessibility testing. Be able to identify accessibility problems in a design (e.g., missing keyboard equivalents, illogical tab order, color as the only cue).
Requirements Engineering
- What is a requirement? What is requirements engineering?
- Why is it important to find errors during requirements? How does the relative cost to fix an error change across the phases of development?
- What are the seven tasks of requirements engineering (inception, elicitation, elaboration, negotiation, specification, validation, management)? What happens during each?
- What questions are asked during inception?
- What makes elicitation difficult (problems of scope, understanding, and volatility)?
- What are the elicitation techniques (background reading, brainstorming, interviews, surveys, observation, ethnography)? What are the strengths and weaknesses of each? When would you choose each?
- What kinds of conflicts can arise between requirements or stakeholders? How are they resolved through negotiation? What is a win-win result?
- What problems do you look for when analyzing requirements (premature design, combined requirements, gold plating, ambiguity, unrealistic or untestable requirements)?
- What is the difference between a requirement and a specification? What are the qualities of a good specification?
- What is the difference between requirements analysis and requirements validation? What are the inputs and outputs of validation?
- Why do requirements change? What is requirements traceability, and how is a traceability table used to manage change?
Requirements
- When you read a requirements statement, how do you begin to identify what classes you will need?
- What are typical stakeholders for a system?
- What are functional and nonfunctional requirements? What are constraints? Be able to identify requirements as functional, nonfunctional, or constraints.
-
Create acceptance tests from scenarios for a functional requirement.
- Compare use cases and user stories, including their format and content. What is a scenario? What is the relationship between a scenario and a use case?
- What are the parts of an SRS? What is the purpose of each part of the SRS?
- What are the criteria for requirements validation?
- What is the difference between requirements analysis and modeling?
- Beyond functional and nonfunctional, what are business, user, product, and process requirements?
- How do you translate a nonfunctional requirement into a measurable one?
- What do shall, should, may, and can mean in a traditional requirement? Be able to write requirements with the “When/If/While/Where … the system shall …” templates.
- What are the parts of a use case’s flow of events (preconditions, main flow, subflows, alternative flows)? Be able to write one.
- What are the parts of a use case diagram? What is the difference between «include» and «extend»?
- What are the principles of Use-Case 2.0? What is a use-case slice?
- What are the INVEST criteria for a good user story? Be able to evaluate a user story against them.
- How do themes, epics, stories, and the product backlog relate? How are nonfunctional requirements and constraints captured in an agile process?
- When would you choose traditional requirements or use cases over user stories, and the reverse?
- Be able to write an acceptance test using the Given/When/Then template. How do Given, When, and Then map to the environment, input, and expected output?
Design/Architecture
- What is software architecture? How is architecture different from design?
- What are the desirable properties of an architecture (functionality, quality attributes, elegance)?
- What are coupling and cohesion? What are the forms of each (e.g., message, subclass, global, and content coupling; functional, sequential, data, temporal, and coincidental cohesion), and which are more desirable?
- What is information hiding, and why does it matter?
- What is the 4+1 view model? What does each view (logical, development, dynamic, deployment, and scenarios) show, and who is its audience?
- Be able to draw a high-level architecture for a system like CoffeeMaker (browser, application, database, protocols, and ports).
- Why document an architecture? How do you keep an architecture diagram from being ambiguous (e.g., a legend and a rationale)?
- What is the purpose for the architectural patterns discussed (layered, shared data, observer, publish-subscribe, MVC, pipe-and-filter/dataflow, client-server, broker)? What are the strengths and weaknesses of each pattern? What are specific examples of the architectural patterns? When would it be good to use each type of architectural pattern?
- What are the three parts of a class’ representation in a UML class diagram? Which of the three parts are mandatory? Know the syntax for an attribute (visibility, name, type, multiplicity, default value).
- Be able to show the following relationships in a UML class diagram: generalization, dependency, association, aggregation, and composition. Understand the meaning of multiplicity: 1; 0..1; 1..; 0... Know how to name an association and its roles.
- When should something be modeled as an attribute, and when as an association?
- How do you evaluate a class (intention-revealing names, a single responsibility)?
- Be able to interpret a class diagram and abstract if the diagram can satisfy requirements.
- How are scenarios used when drawing sequence diagrams?
- What are the parts of a sequence diagram? Know how to draw a sequence diagram from a scenario. Understand that a sequence diagram typically describes a single scenario, a sequence diagram could be used to describe conditional logic that show multiple scenarios.
- What are the parts of a state diagram? Know how to draw a state diagram from a scenario.
- How are sequence diagrams used for debugging and for deriving integration tests?
Testing
While testing hasn’t been covered in depth, the concepts have been 1) covered in earlier coursework; 2) used in practice in the class; and 3) covered in the textbook. So you just need to know these things.
- What is validation? What is verification?
- Know the different types of testing: unit, integration, functional/system, regression, acceptance, and beta testing. Is each closed box testing, open box testing, or both? Who write and runs the tests (developers, independent testers, customers)?
- What is the difference between a fault and a failure? What underlies a fault?
- What are the four things required of all test cases?
- What does the system test case template look like? Know how to write system test cases given a problem description.
- What strategies do you need to consider when devising a thorough set of system test cases? A thorough set of unit and integration test cases? Know how to write test cases that demonstrate these strategies.
- Understand the terms equivalence class partitioning, boundary value analysis, cyclomatic complexity, stub, driver, basis set, and oracle.
- Know how to draw a control flow graph and calculate the cyclomatic complexity from a control flow graph or from a provided method.
- Understand method, statement, decision/branch, and condition unit test coverage. Know how to calculate the coverage from tests that you write.
- Identify the minimum number of tests for statement (node coverage) and branch (edge coverage) given a control flow diagram.
- Be able to write JUnit test cases given some code (e.g. understand the various types of asserts, fail, setUp, tearDown).
- Which types of testing are verification and which are validation?
- What are a fault, an error, and a failure? What is program state? Given a method, identify the fault, an input that causes a failure, and an input that causes an error but not a failure.
- Why should test cases be traceable and repeatable?
- What is modified condition/decision coverage (MC/DC)? What makes two tests an MC/DC pair for a condition? Be able to build a pairs table and identify a minimal MC/DC test set.
- What are path, class, and requirements coverage?
- What are the benefits and limits of code coverage? Why doesn’t high coverage mean the code is correct? Why can a full set of requirements-based system tests still leave coverage low?
- What are decision table testing and diabolical testing? When would you use each?
Process Models
- What is a software process? Know the terms process model, framework, practice, values, culture, and method.
- What are the build-and-fix, waterfall, and V-model processes? When is waterfall a good choice? How does the V-model pair each specification level with a level of testing?
- Compare agile and plan-driven processes, including their values. What kind of risk does each manage?
- What are the Scrum roles (Product Owner, Developers, Scrum Master)? What are the Scrum events and their timeboxes, and the Scrum artifacts (product backlog, sprint backlog, increment)? When is the product backlog updated? How does Scrum scale (Scrum of Scrums)?
- What are the basic activities of XP? What is the test-driven XP cycle? What are simplicity, pair programming, and refactoring, and why does XP use them?
- How can Scrum and XP be combined?
- How do product complexity and requirements stability affect how much design to do up front?
Planning and Management
- What are the three phases of project management (planning, execution, monitoring)?
- Be able to break a requirement into tasks.
- How is a story-point scale built (an anchor story, and a scale such as 0, 1, 2, 3, 5, 8, 13, 20, 40, 100)? What are the pros and cons of story points and of ideal days?
- What are the estimation techniques (expert opinion, analogy/triangulation, disaggregation)? How does planning poker work, and what are its benefits beyond the estimate?
- How are requirements prioritized? What drives priority?
- What is velocity? How does the idea of “yesterday’s weather” work with a team’s velocity?
- Compare feature-driven and date-driven release planning. How is a release burndown chart read? What do you do when velocity falls short of the plan?
- What are the tradeoffs of shorter and longer iterations? What are Iteration 0 and a stabilization iteration?
- What are “done” criteria, and why does a team need them?
- What is technical debt? How does it accumulate, and how is it paid down?
Processes and Practices
- Describe processes and practices used in Onboarding Project. Provide strengths and weaknesses of processes and practices. (Pull-request development; issue trackers; continuous integration; automated unit, integration, and system tests, etc.)
- What are the differences in story points, ideal time/days, elapsed time/days in estimation?
- Justify estimates for requirements.
- What are things to consider when writing a bug report? Why are they important to a high quality bug report?
- What do reproduce, isolate, and generalize mean when investigating a bug? How are isolating and generalizing different?
- Why are defects inevitable?
- What are the purposes of code review? What should you write in a review, including a review of AI-generated code?
- Why fix bugs and develop features on a branch (e.g., GitHub Flow)?
- What are the purposes of presentations? What do you want to keep in mind as you plan a presentation?
Metrics (if we make it through this material before the midterm)
- What are the common design metrics (LOC, number of classes, number of methods, WMC, LCOM, afferent and efferent coupling, instability, coupling factor, attribute and method hiding factors, depth of inheritance tree, number of children)? What does each measure? Is a high or low value desirable?
- What are process metrics (velocity, burndown, fault slippage, test-to-source ratio)? What does each tell a team?
- What are code smells (e.g., duplicated code, long method, message chains)? How can static analysis tools help find them?
