How the examiner runs a software engineering lab viva
In most software engineering or object-oriented analysis and design labs you take one small system, such as a library management system, an online railway reservation system or an ATM, and prepare its problem statement, SRS, data flow diagrams, ER diagram, UML use case, class, sequence, activity and state chart diagrams, a test plan with test cases, and sometimes a COCOMO estimate and a Gantt chart. Tools are usually StarUML, draw.io, Rational Rose or an open-source UML editor. The viva starts from your system.
- First, your system: 'who are the actors in your use case diagram?', 'why is this an include and not an extend?'
- Then the model: 'which SDLC model fits your project, and why?'
- Then design quality: 'is your design highly cohesive and loosely coupled? Show me where.'
- Then a calculation: COCOMO effort for a given KLOC, or the cyclomatic complexity of a small flow graph.
- Then testing: 'write two black-box test cases for your login screen', 'verification versus validation?'
Answer with your own project
Tie every definition back to your lab system: 'In my library system, Librarian and Member are actors, and Issue Book includes Check Membership.' One concrete example from your own diagram is worth more than a textbook paragraph.
Software process and SDLC models
What is software engineering?
Software engineering is the systematic, disciplined and measurable approach to the development, operation and maintenance of software, applying engineering principles so that software is delivered on time, within budget and with the required quality. It covers process, methods, tools and management, not only coding.
What is the software crisis?
The term came up in the late 1960s, when large software projects regularly ran over budget and schedule, delivered unreliable products and were hard to maintain, because hardware had grown far faster than methods for building software. The NATO conferences of 1968 and 1969 popularised the term software engineering as the response.
What is the software development life cycle?
The SDLC is the sequence of phases a software product goes through: feasibility study, requirements analysis and specification, design, coding and unit testing, integration and system testing, deployment, and maintenance. Process models such as waterfall, spiral and agile differ in how they order and repeat these phases.
Explain the waterfall model and when it fits.
The waterfall model runs the phases in a strict sequence, each finishing with a reviewed document before the next starts. It is simple to manage and suits projects with stable, well-understood requirements, such as a payroll upgrade. Its weakness is that working software appears late and changing requirements are expensive to absorb.
What is the iterative waterfall model?
It is the classical waterfall with feedback paths from each phase to the earlier ones, so errors found later can be corrected in the phase where they were introduced. It is the more realistic form of waterfall used in practice, though it still assumes requirements are mostly known at the start.
What is the V-model?
The V-model pairs each development phase with a testing phase planned at the same time: requirements with acceptance testing, system design with system testing, architectural design with integration testing and module design with unit testing. Coding sits at the bottom of the V. It stresses verification and validation early, and suits safety-critical work.
Explain the prototyping model.
A quick, throwaway working model of the system, often just the user interface, is built and shown to the customer to clarify unclear requirements. Feedback refines the prototype until requirements are agreed, then the real system is built properly. It suits projects where users cannot state requirements clearly up front.
What is the incremental model?
The system is delivered in increments, each adding usable functionality on top of the previous one. The core features come first, for example login and search in a library system, then issue and return, then fines. Customers get working software early and feedback shapes the later increments.
Explain the spiral model.
Proposed by Barry Boehm, the spiral model repeats loops of four activities: determine objectives and alternatives, identify and resolve risks, develop and verify, and plan the next iteration. Each loop is a phase, and risk analysis drives the decisions. It suits large, high-risk projects but needs risk-assessment expertise and is costly for small ones.
What is the RAD model?
Rapid application development builds the system quickly through short time-boxed iterations, heavy use of reusable components and user involvement, often with code generators. It suits projects that can be split into modules and where users are available for constant feedback; it does not suit systems needing high performance tuning or novel technology.
What is agile software development?
Agile is a family of iterative methods based on the Agile Manifesto of 2001, which values individuals and interactions, working software, customer collaboration and responding to change. Work is delivered in short iterations of a few weeks, with continuous customer feedback. Scrum, extreme programming and Kanban are common agile methods.
Explain Scrum in brief.
Scrum organises work into sprints, usually one to four weeks long. The product owner maintains a prioritised product backlog, the team picks items into a sprint backlog during sprint planning, meets in a short daily scrum, and shows the increment at the sprint review, followed by a retrospective. The Scrum Master removes impediments.
What practices does extreme programming use?
Extreme programming uses pair programming, test-driven development, continuous integration, small frequent releases, simple design, refactoring, collective code ownership and an on-site customer. The idea is to take good practices such as reviews and testing to their extreme, doing them continuously.
What is continuous integration?
In continuous integration every developer merges code into the shared main branch frequently, often several times a day, and each merge triggers an automated build and test run. Integration problems show up within minutes instead of at the end of the project. Continuous delivery extends it so that every passing build is ready to release.
Requirements engineering and SRS
What is a feasibility study?
A feasibility study decides whether the project is worth doing before major investment. It checks technical feasibility, whether it can be built with available technology and skills; economic feasibility, whether benefits exceed costs; operational feasibility, whether users will accept it; and schedule feasibility, whether it can finish in time.
What is the difference between functional and non-functional requirements?
Functional requirements state what the system must do: a member can search books by title, the system issues a book and records the due date. Non-functional requirements state how well it must do it: response time, security, availability, usability and portability, such as search results appearing within two seconds.
What is an SRS, and what are its qualities?
The software requirements specification is the document that records the agreed requirements and serves as the contract between customer and developer. A good SRS is correct, complete, unambiguous, consistent, verifiable, modifiable, traceable and ranked for importance. IEEE 830 gave the classic SRS outline, now superseded by ISO/IEC/IEEE 29148.
What are the main sections of your SRS?
Mine follows the IEEE layout: introduction with purpose, scope, definitions and references; overall description with product perspective, functions, user classes, constraints and assumptions; then specific requirements, listing functional requirements, external interfaces, performance requirements, design constraints and quality attributes such as security and reliability.
How are requirements gathered?
Through interviews with stakeholders, questionnaires, observing users at work, studying existing documents and systems, brainstorming and joint application development workshops, and building prototypes. For my library system I listed the tasks the librarian does daily and turned each into a use case.
What is requirements traceability?
Traceability links each requirement forward to the design elements, code and test cases that implement and check it, and backward to its source. A traceability matrix makes sure nothing is missed and shows the impact of a change: if requirement R4 changes, I know which modules and tests to revisit.
Analysis and design: DFD, ER, UML, cohesion and coupling
What is a data flow diagram?
A DFD shows how data moves through a system: external entities, processes that transform data, data stores and data flows between them. It shows what the system does with data, not control or timing. A context diagram, or level 0 DFD, shows the whole system as one process connected to its external entities.
What are the levels of a DFD?
Level 0, the context diagram, shows the system as a single process. Level 1 breaks it into major processes such as Issue Book, Return Book and Search Catalogue. Level 2 breaks each of those further. Each lower level must be balanced: the inputs and outputs of a process must match those of its decomposition.
What is a data dictionary?
A data dictionary defines every data item, data flow and data store in the DFDs: its name, composition, type, size and meaning, for example member id as a string of eight characters. It keeps everyone using the same names and meanings and supports the DFD during design and coding.
What is UML? How many diagram types does it have?
The Unified Modeling Language is the standard visual language for specifying and documenting object-oriented systems, maintained by the Object Management Group. UML 2.5 defines fourteen diagram types: seven structural, such as class, object, component and deployment, and seven behavioural, such as use case, activity, state machine and the interaction diagrams including sequence.
What is a use case diagram?
It shows the system's functionality from the user's view: actors outside the system, use cases inside the system boundary, and associations between them. In my ATM diagram, Customer and Bank are actors and Withdraw Cash, Check Balance and Transfer Funds are use cases.
What is the difference between include and extend in a use case diagram?
Include means the base use case always uses the included one, so common behaviour is factored out: Withdraw Cash includes Authenticate. Extend means the extending use case adds optional behaviour under a condition: Print Receipt extends Withdraw Cash only if the customer asks. The arrow of extend points to the base use case.
What does a class diagram show?
It shows the static structure: classes with attributes and operations, and relationships among them, namely association with multiplicity, aggregation, composition, generalisation and dependency. In my library system, Member has a one-to-many association with Loan, and Book generalises into TextBook and Reference.
What is the difference between aggregation and composition?
Both are whole-part relationships. In aggregation the part can exist independently of the whole, drawn with a hollow diamond, like a Department and its Professors. In composition the part's life depends on the whole, drawn with a filled diamond, like a House and its Rooms; deleting the house deletes the rooms.
What is a sequence diagram?
A sequence diagram shows how objects interact over time for one scenario. Objects sit along the top with vertical lifelines, messages are horizontal arrows in time order, and activation bars show when an object is busy. My Issue Book sequence goes from Librarian to the IssueController, then to Member, Book and Loan objects.
How do activity and state chart diagrams differ?
An activity diagram shows the flow of activities in a process, with decisions, forks and joins for parallel work, like a flowchart; I used it for the book return process. A state chart shows the states of one object and the events that move it between them, such as a Book going from Available to Issued to Overdue.
What are cohesion and coupling?
Cohesion measures how closely the functions inside one module are related to a single purpose. Coupling measures how dependent modules are on each other. A good design has high cohesion and low coupling, so each module can be understood, changed and tested on its own.
Name the types of cohesion from worst to best.
Coincidental, logical, temporal, procedural, communicational, sequential and functional. Coincidental is unrelated tasks thrown together; functional means every part contributes to one well-defined task, such as a module that only calculates the fine for a late return.
Name the types of coupling from best to worst.
Data coupling, where modules share only elementary parameters, is best; then stamp coupling, passing whole structures; control coupling, passing flags that steer the other module's logic; common coupling, sharing global data; and content coupling, where one module changes another's internals, which is worst.
What is the difference between function-oriented and object-oriented design?
Function-oriented design decomposes the system into functions top-down, with data shared between them, using tools like DFDs and structure charts. Object-oriented design groups data with the operations on it into classes and builds the system from interacting objects, using UML. OOD gives better encapsulation and reuse.
What is a structure chart?
A structure chart shows the module hierarchy of a function-oriented design: boxes for modules, arrows for calls, and small arrows for the data and control flags passed between them. It is derived from the DFD by transform or transaction analysis, and it makes coupling visible, because every parameter passed is drawn.
Estimation, metrics and project management
What is COCOMO?
The Constructive Cost Model, published by Barry Boehm in 1981, estimates effort in person-months and development time from the estimated size in thousands of lines of code. It has three levels, basic, intermediate and detailed, and three project classes: organic, semi-detached and embedded. COCOMO II, from the 1990s, updated it for modern practices.
Give the basic COCOMO formulas.
Effort equals a times KLOC to the power b person-months, and development time equals c times effort to the power d months. For organic projects a is 2.4 and b is 1.05; semi-detached, 3.0 and 1.12; embedded, 3.6 and 1.20. The constant c is 2.5 in all three, and d is 0.38, 0.35 and 0.32 respectively.
Estimate the effort for a 10 KLOC organic project.
Effort is 2.4 times 10 to the power 1.05. Ten to the power 1.05 is about 11.2, so the effort is about 26.9 person-months. Development time is 2.5 times 26.9 to the power 0.38, which is about 8.7 months, so on average about three people are needed.
What are organic, semi-detached and embedded projects?
Organic projects are small, with an experienced team and familiar, flexible requirements, like a payroll system. Embedded projects have tight hardware, software and operational constraints, like flight control software. Semi-detached projects fall in between, with a mixed team and moderately rigid requirements, like a new database management system.
What is function point analysis?
Function points measure size from the functionality delivered, independent of language. Count external inputs, external outputs, external inquiries, internal logical files and external interface files, weight each by complexity, and adjust the total by fourteen general system characteristics. It can be done from the SRS, before any code exists.
What is cyclomatic complexity, and how is it calculated?
Cyclomatic complexity, from Thomas McCabe, measures the number of linearly independent paths through a program. From the control flow graph, it is edges minus nodes plus 2 for one connected component; equivalently, the number of decision points plus one. A function with two if statements has complexity 3, so at least three test cases are needed for basis path coverage.
What is risk management in a software project?
It is identifying what could go wrong, analysing each risk's probability and impact, planning to avoid, reduce or accept it, and monitoring it through the project. Typical risks are staff leaving, changing requirements, unrealistic schedules and unproven technology; the spiral model builds this analysis into every loop.
What are Gantt charts, PERT and CPM?
A Gantt chart shows tasks as bars against a calendar, giving the schedule and progress at a glance. PERT uses optimistic, most likely and pessimistic estimates for each task to handle uncertainty in duration. CPM finds the critical path, the longest chain of dependent tasks, which fixes the minimum project duration; a delay on it delays the project.
What is the difference between a project plan and a work breakdown structure?
The work breakdown structure splits the whole project into smaller deliverables and tasks, level by level, until each task can be estimated and assigned. The project plan then uses those tasks to set the schedule, staffing, budget, milestones and risk responses. The WBS answers what has to be done; the plan answers when, by whom and at what cost.
What is software configuration management?
SCM identifies the items of a project, such as code, documents and test scripts, controls changes to them through a defined change process, records their versions and status, and audits that the released baseline is what was approved. Version control tools such as Git support it.
Software testing
What is the difference between verification and validation?
Verification asks whether we are building the product right, checking each phase's output against its specification through reviews, walkthroughs and inspections. Validation asks whether we are building the right product, checking the finished software against the user's actual needs, mainly by testing and acceptance.
What are an error, a fault and a failure?
An error is a human mistake, such as misunderstanding a requirement. It may introduce a fault, also called a defect or bug, in the code or documents. When faulty code runs and the system's behaviour differs from what is required, that observable deviation is a failure.
What are the levels of testing?
Unit testing checks individual modules, usually by developers. Integration testing checks the interfaces between combined modules. System testing checks the complete system against the SRS, including performance and security. Acceptance testing is done by or for the customer to decide whether to accept the software.
What is the difference between black-box and white-box testing?
Black-box testing designs tests from the specification without looking at the code, using techniques like equivalence partitioning and boundary value analysis. White-box testing designs tests from the internal structure, aiming at statement, branch or path coverage. Black-box finds missing functions; white-box finds untested logic.
Explain equivalence partitioning and boundary value analysis with an example.
If an age field accepts 18 to 60, equivalence partitioning makes three classes: below 18, 18 to 60 and above 60, and tests one value from each, say 10, 35 and 70. Boundary value analysis tests at and around the edges, because errors cluster there: 17, 18, 19, 59, 60 and 61.
What are top-down and bottom-up integration?
Top-down integration starts with the main control module and adds lower modules one by one, using stubs to stand in for modules not yet written. Bottom-up starts with the lowest modules and moves up, using drivers to call them. Sandwich integration combines both. Big-bang integration joins everything at once and makes faults hard to locate.
What are stubs and drivers?
A stub is a dummy module that stands in for a called module not yet ready, returning fixed values. A driver is a dummy calling program that feeds test inputs to the module under test and shows its results. Stubs are used in top-down integration and drivers in bottom-up.
What are alpha and beta testing?
Both are forms of acceptance testing. Alpha testing is done by users or internal testers at the developer's site, under the developer's observation. Beta testing is done by a selected group of real users at their own sites, in real conditions, and their feedback is used to fix problems before the general release.
What is regression testing?
Regression testing re-runs earlier tests after a change, such as a bug fix or a new feature, to make sure the change has not broken anything that used to work. Because it is repeated often, it is the first candidate for automation.
What is the difference between smoke testing and sanity testing?
Smoke testing is a quick, broad check that a new build's critical functions work at all, so the build is stable enough for detailed testing. Sanity testing is a narrow, focused check after a small change or fix that the affected functionality now behaves correctly.
Write two test cases for a login screen.
Test case one: enter a registered username and its correct password and click Login; the expected result is the dashboard opening for that user. Test case two: enter a registered username with a wrong password; the expected result is an 'invalid username or password' message, with no login. Each test case records its id, preconditions, steps, input, expected and actual result.
Maintenance, quality and reuse
What are the types of software maintenance?
Corrective maintenance fixes faults reported after delivery. Adaptive maintenance changes the software to work in a new environment, such as a new operating system or tax rule. Perfective maintenance adds or improves features users ask for. Preventive maintenance restructures code to make future maintenance easier and prevent problems.
What is reverse engineering and re-engineering?
Reverse engineering analyses existing software to recover its design and specifications, for example generating class diagrams from old code that has no documents. Re-engineering goes further: after reverse engineering, the system is restructured or rewritten and re-implemented in improved form, keeping its functionality.
What is software quality assurance?
SQA is the set of planned activities that give confidence the process and product meet quality standards: defined processes, reviews and audits, testing, standards compliance, defect tracking and measurement. Quality control checks the product itself; quality assurance improves the process that makes it.
Explain the five levels of the Capability Maturity Model.
CMM, from the Software Engineering Institute, rates process maturity. Level 1, initial: ad hoc and depends on individuals. Level 2, repeatable: basic project management. Level 3, defined: a documented standard process across the organisation. Level 4, managed: the process is measured quantitatively. Level 5, optimising: continuous process improvement. CMMI later replaced it.
What is refactoring?
Refactoring improves the internal structure of code without changing its external behaviour, for example renaming unclear variables, extracting a long method into smaller ones or removing duplicate code. It is done in small steps with tests run after each, so the behaviour is shown to be unchanged.
What is a CASE tool? Which did you use?
Computer-aided software engineering tools support development activities: diagramming, code generation, testing, configuration management and documentation. In our lab I used StarUML to draw the use case, class and sequence diagrams for the library system, and it could generate class skeletons from the class diagram.
SDLC models at a glance
Common mistakes in a software engineering viva
- Drawing include and extend arrows the wrong way, or calling an optional step an include.
- Showing control flow, loops or decisions in a DFD. A DFD shows data movement only.
- Saying high coupling and high cohesion is good. The goal is high cohesion and low coupling.
- Mixing up verification and validation. Verification: built right. Validation: right product.
- Swapping stubs and drivers.
- Quoting COCOMO coefficients for the wrong project class, or forgetting that KLOC is in thousands.
- Using aggregation and composition interchangeably in the class diagram.
What the ExamPilot AI examiner checks when you practise
In a CS/IT lab viva session on ExamPilot you name your SE lab system, for example an online library or railway reservation system, and an AI examiner questions you by voice for about twelve minutes: the process model you would choose and why, your actors and use cases, design quality, a COCOMO or cyclomatic complexity calculation said aloud, and a few test cases. It follows up whenever an answer is vague, and you can answer in English or Hindi.
- Definitions tied to your own system, not recited from a book.
- Diagram reasoning: include versus extend, aggregation versus composition, DFD levels and balancing.
- Calculations said step by step, with the formula and the coefficients named.
- Test cases with input and expected result, including boundary values.
- Brevity and honesty: two or three sentences, and a clean 'I am not sure' rather than a guess.
Start with the CS/IT lab viva mock. If your SE lab is part of a project review, the final-year project viva mock asks about design decisions and testing in the same way.
The night before the software engineering lab exam
- 1
Walk through your own diagrams
For each diagram in your record, say in one sentence what it shows and name every actor, class and relationship. Be ready to redraw the use case and class diagrams from memory.
- 2
Do two calculations
A basic COCOMO estimate for an organic project of 20 KLOC, and the cyclomatic complexity of a function with two conditions and a loop.
- 3
Write five test cases
For one screen of your system, with equivalence classes and boundary values, in the id, input, expected and actual format.
- 4
Run one mock viva
Twelve minutes with the AI examiner on your lab system shows which answers come out clearly and which need work.
If your lab system has a database, revise DBMS viva questions for the ER diagram and normalisation. Object-oriented design questions overlap with Java viva questions, and a full project defence is covered in final-year project viva questions.
Frequently asked questions
- What are the most important software engineering viva questions?
- SDLC and the waterfall, spiral, prototyping, incremental and agile models; functional versus non-functional requirements and the SRS; DFD levels; UML use case, class and sequence diagrams with include, extend, aggregation and composition; cohesion and coupling; COCOMO; cyclomatic complexity; verification versus validation; black-box versus white-box testing; testing levels; and maintenance types.
- Which UML diagrams are asked most in the viva?
- Use case, class and sequence diagrams are asked in almost every SE or OOAD lab viva, followed by activity and state chart diagrams. Be able to explain every relationship on your own diagrams and to redraw the use case and class diagrams quickly. Component and deployment diagrams are asked less often.
- Do I need to remember COCOMO coefficients?
- For basic COCOMO, yes, because examiners often give a KLOC value and ask for effort and time. Remember the effort constants 2.4 and 1.05 for organic, 3.0 and 1.12 for semi-detached, and 3.6 and 1.20 for embedded, with 2.5 times effort to the power 0.38, 0.35 or 0.32 for time.
- Is software engineering asked in placement interviews?
- Yes, in lighter form. Service companies often ask SDLC models, agile and Scrum, the difference between verification and validation, testing types and levels, and what an SRS contains. Product companies ask more about design principles and testing your own code. Explaining your project through its diagrams is a strong answer in both.
- How can I practise software engineering viva questions out loud?
- On ExamPilot you can run a CS/IT lab viva by voice. Name your SE lab system and the AI examiner asks about your process model, diagrams, estimates and test cases, follows up like an external examiner and gives you a transcript with tighter answers to repeat. It is free to start.
Practise out loud
Practise your SE lab viva out loud
The AI examiner asks about your lab system's process model, UML diagrams, COCOMO estimate and test cases, and follows up like an external examiner.
Engineering Viva · CS / IT lab viva
