GATE / CS ARCHIVE

SUBJECT COLLECTION

Engineering Mathematics & Other Topics · Software Engineering

23 questions, newest first

GATE CSE has asked 23 questions on Software Engineering (Engineering Mathematics & Other Topics) from 2004 to 2015, in 11 of the 46 papers; the most recent is in GATE CSE 2015 Set 3. In the last five years it carried 0 marks per 100-mark paper on average, against 0.9 since 2003. Since 2014 the questions have been 8 MCQ and 3 NAT. 2 groups of questions here are solved the same way; “One per method” keeps the newest of each.

Not in the GATE 2027 syllabus. Software engineering is not named.

Browse topics
1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Software Engineering

Question 16, GATE 2015: Match P condition coverage, Q equivalence class partitioning, R volume testing, S alpha testing with i black-box, ii system, iii white-box, iv performance testing. A P-ii Q-iii R-i S-iv; B P-iii Q-iv R-ii S-i; C P-iii Q-i R-iv S-ii; D P-iii Q-i R-ii S-iv.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Condition coverage examines internal Boolean decisions, so it requires code structure. Equivalence partitioning selects representative inputs from behaviorally similar classes without inspecting code. Volume testing studies behavior under large data volumes. Alpha testing evaluates the integrated system in the developer's controlled environment. These distinctions give the paper's intended classification C.

Solution: Condition coverage is white-box, equivalence partitioning is black-box, volume testing concerns performance, and alpha testing is system testing. Hence P-iii, Q-i, R-iv, S-ii, C.

Original paper, page 8 · Answer key

2 marks · NAT
Not in GATE 2027 syllabusReport issue

Software Engineering

Question 38, GATE 2015: Find cyclomatic complexity of: while(first<=last){if(array[middle]<search) first=middle+1; else if(array[middle]==search) found=TRUE; else last=middle-1; middle=(first+last)/2;} if(first>last) notPresent=TRUE;.
Tap to enlarge
Answer & solution

Official answer: 5

For a single connected control-flow graph with binary conditions, McCabe complexity is one plus the number of decisions. Count while, if(<), else-if(==), and the final if(>): four decisions, hence five. An unconditional else is not an additional test; assignments are not branches. The code can fail to terminate after finding the value, but that semantic defect does not remove a syntactic decision from its control-flow graph.

Solution: The control-flow graph has four binary decisions: the while condition, the first if, the else-if, and the final if. For one connected entry/exit graph, cyclomatic complexity is decisions+1=5. This graph count does not require every syntactic path to be feasible or terminating.

Original paper, page 14 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Software Engineering

Question 25, GATE 2015: An SRS should avoid discussing which? A user-interface issues; B nonfunctional requirements; C design specification; D third-party software interfaces.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

An SRS describes required behavior, interfaces and nonfunctional constraints, not the internal design used to implement them. Therefore design specification, C.

Requirements state what externally observable behavior and constraints must be met; design specifies how the implementation will realize them. User-interface behavior, performance or reliability constraints, and required external interfaces can all be legitimate requirements. Selecting internal modules, algorithms or architecture belongs in design rather than being unnecessarily prescribed by the SRS. Thus C is the category to avoid, not all discussion of interfaces.

Original paper, page 34 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Software Engineering

Question 29, GATE 2015: Basic COCOMO uses effort E, development time D, KLOC and constants a_b, b_b, c_b, d_b. Choose formulas: A E=a_b KLOC^b_b, D=c_b E^d_b; B D=a_b KLOC^b_b, E=c_b D^d_b; C E=a_b exp(b_b), D=c_b KLOC^d_b; D E=a_b exp(d_b), D=c_b KLOC^b_b. Source writes “exp” after bases to denote powers; literal exp notation is qualified in solution.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Our answer: A under exponent notation convention

Basic COCOMO uses E=ab·KLOCbb and D=cb·Edb. The source writes exp(bb) and exp(db) after the bases, intending exponentiation; with that convention A. If exp literally denotes e raised to its argument, the printed formulas would not be the standard model.

COCOMO first estimates person-month effort from code size using a calibrated power law E=ab·KLOCb_b. It then estimates calendar duration from effort by D=cb·Ed_b. The constants depend on project mode. Swapping E and D changes the model: effort and elapsed months are different quantities and not interchangeable. The printed exp notation must be read as the intended exponent placement; the conventional exponential function ex would yield different equations.

Original paper, page 36 · Answer key

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Software Engineering

Question 64, GATE 2015: Which statement about code inspection and walkthrough is true? A inspection is carried out once code has been unit tested; B inspection and walkthrough are synonyms; C inspection checks adherence to coding standards; D walkthrough is usually conducted by an independent test team.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Formal code inspection includes checking adherence to coding standards, C. Inspection is static and need not wait until unit testing; a walkthrough is typically author-led and is not synonymous with formal inspection or necessarily performed by an independent test team.

An inspection is a systematic static review against defect classes and a checklist, which can include naming, formatting, safety and other coding standards. It need not wait for execution or unit testing, so A imposes an unnecessary ordering. A walkthrough is usually author-led and less formal, so it is not simply a synonym or necessarily an independent-test-team activity. Therefore C is the defensible general assertion. These are software-engineering concepts retained as supplemental coverage outside the requested subject taxonomy.

Original paper, page 50 · Answer key

1 mark · NAT
Not in GATE 2027 syllabusReport issue

Software Engineering

Question 17, GATE 2015: Calculate the function point metric for a software project with external inputs I=30, external outputs O=60, external inquiries E=23, files F=8, and external interfaces N=2. Their respective complexity weights are 4,5,4,10,7. Of fourteen value-adjustment factors, four are not applicable (value 0), four have value 3, and the remaining six have value 4. Use the standard adjusted function-point formula.
Tap to enlarge
Answer & solution

Official answer: 612 to 613

Our answer: 612.06

1. The method first multiplies each information-domain count by its complexity weight and sums to obtain unadjusted function points. It then multiplies that total by 0.65+0.01 times the sum of the fourteen adjustment ratings. Four plus four factors account for eight ratings, leaving six ratings of value 4.

2. Unadjusted points=30·4+60·5+23·4+8·10+2·7=606. Adjustment sum=4·0+4·3+6·4=36. The factor is 0.65+0.01·36=1.01, giving 606·1.01=612.06, within the official 612 to 613 range.

Original paper, page 59 · Answer key

1 mark · NAT
Not in GATE 2027 syllabusReport issue

Software Engineering

Question 33, GATE 2015: A program is deliberately seeded with 100 artificial faults. Testing detects 159 faults in total, including 75 seeded faults. Assuming real and seeded faults have the same nature and distribution, estimate the number of undetected real faults.
Tap to enlarge
Answer & solution

Official answer: 28

1. The fraction 75/100 estimates the detection probability, not the fraction of detected faults that are artificial. First separate the 159 detected faults into 75 artificial and 84 real, then use the common detection-rate assumption only on the real population.

2. The detected seeded fraction is 75/100=0.75. Detected real faults number 159−75=84. Under equal detectability, estimated total real faults=84/0.75=112, leaving 112−84=28 undetected.

Original paper, page 64 · Answer key

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Software Engineering

Question 58, GATE 2015: Find McCabe cyclomatic complexities of X,Y,Z in that order. Program X:
sumcal(int maxint,int value) {
 int result=0,i=0;
 if(value<0) { value=-value; }
 while((i<value) AND (result<=maxint)) { i=i+1; result=result+1; }
 if(result<=maxint) { printf(result); } else { printf("large"); }
 printf("end of program");
}
The shown control-flow graph Y has eight vertically ordered nodes v1,...,v8, edges vi→v(i+1) for i=1,...,7, and back edges v3→v1, v6→v4, v8→v1. Graph Z is serial composition of the graph of X followed by the graph of Y. Options: (A) 4,4,7; (B) 3,4,7; (C) 4,4,8; (D) 4,3,8. State the convention for counting the compound while condition.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

1. Treat each compound source-level condition as one decision: X has its first if, the while, and the final if, so complexity 4.

2. The shown Y graph has 8 vertices and 10 edges, giving E−N+2=4. Serial composition adds complexities minus 1, so Z=4+4−1=7. Thus A. Expanding the short-circuit AND into separate predicate nodes would increase X to 5 and Z to 8; the official answer uses source-statement predicate counting rather than that expanded control-flow model.

Original paper, page 76 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Software Engineering

Question 18, GATE 2014: Match models 1 waterfall, 2 evolutionary, 3 component-based software engineering, 4 spiral development to features a incremental specifications, b unavoidable requirement compromises, c explicit recognition of risk, d inflexible project stages. A: 1-a,2-b,3-c,4-d. B: 1-d,2-a,3-b,4-c. C: 1-d,2-b,3-a,4-c. D: 1-c,2-a,3-b,4-d.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

1. Method and setup. Anchor the distinctive matches first: the spiral model organizes work around risk, whereas waterfall divides work into fixed sequential phases. Evolutionary development permits specifications to grow with successive versions. Component reuse may require adapting desired requirements to available components.

2. Work through the result and its assumptions. Waterfall fixes sequential stages(d); evolution permits incremental specifications(a); reusable components can force requirement compromises(b); spiral development explicitly treats risk(c). The mapping 1-d, 2-a, 3-b, 4-c is B.

Original paper, page 11 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Software Engineering

Question 19, GATE 2014: Which requirements-engineering statement is true? A A requirements document also describes efficient implementation of its listed requirements. B Functional requirements are always consistent and complete in practice. C Prototyping is a requirements-validation method. D A requirements review is conducted to find errors in system design.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

1. Set up the reasoning. Requirements validation asks whether the proposed requirements reflect users' actual needs. A prototype allows users to try representative behavior before committing to the full implementation.

2. Derive the result. Prototypes let users and developers test whether proposed requirements match needs, so they are a validation technique. Requirements specify what is wanted, not efficient implementation details; completeness is not guaranteed, and requirement reviews are not primarily design-error reviews. Thus C.

3. Check the interpretation. A confuses requirements with design, B makes an unrealistic guarantee, and D confuses review of requirements with review of a later design. C identifies a practical validation technique without claiming it proves all requirements correct.

Original paper, page 33 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Software Engineering

Question 19, GATE 2014: For modular software design, which combination is desirable? A high cohesion/high coupling; B high cohesion/low coupling; C low cohesion/high coupling; D low cohesion/low coupling.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step 1: Cohesion measures how closely a module's internal responsibilities belong together. High cohesion makes its purpose focused and understandable. Step 2: Coupling measures dependencies between modules. Low coupling limits the effect of one module's changes on others and facilitates independent testing. Step 3: The desirable combination is therefore high cohesion and low coupling, B. “High” is not universally good: the two measures describe different relationships.

Original paper, page 57 · Answer key

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Moving a method between modules

Software Engineering

Question 38, GATE 2013: Two access-graph modules each have 4attribute nodes. M1 has 4 methods and M2 has 3; each method accesses 2 attributes of its own module. Method m in M1 additionally accesses 2 attributes in M2. Move m to M2, keeping attributes fixed. Under access-density cohesion and cross-module access coupling, what changes? A neither; B cohesion rises, coupling falls; C both fall; D both rise. Filled circles in the source are methods, unfilled circles attributes.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

The diagram shows m accessing two attributes in its own module and two in the other. Moving m exchanges two internal accesses for two external ones in each direction, so the number of cross-module accesses remains 2. Every method accesses two of the four attributes of its current module; internal access densities stay 8/16=.5 and 6/12=.5 before the move, then 6/12=.5 and 8/16=.5 after. Thus average cohesion and coupling are unchanged under this access-based measure, A.

Before moving m, internal accesses total 4×2=8in M1 and 3×2=6in M2; possible method-attribute pairs are 4×4=16and3×4=12. Both densities are 1/2. After moving m, the method counts exchange, so the two densities remain 6/12and8/16. The two accesses from m to M2 become internal, but its two accesses to its old M1 attributes become external. Thus cross-module accesses stay 2. The conclusion is tied to this access-graph measure, rather than every possible software cohesion metric.

Original paper, page 8 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Equal development and maintenance costs

Software Engineering

Question 5, GATE 2011: Software can be developed in L1 or L2. L2 needs twice as many lines of code as L1. For either language development effort is LOC/10000 man-years. Development cost per man-year is Rs 1000000 for L1 and Rs 750000 for L2. Maintenance lasts five years, at Rs 100000 per year for L1 and Rs 50000 per year for L2. For what L1 LOC do total development plus maintenance costs agree?

(A) 4000
(B) 5000
(C) 4333
(D) 4667
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Let L1 require x lines and L2 require 2x. Their development costs are 100x and 150x rupees, respectively. Five-year maintenance costs are 500000 and 250000. Equating100x+500000=150x+250000 gives x=5000, B.

The LOC-to-effort conversion must be done separately for each language: x/10000 man-years for L1 versus 2x/10000 for L2. Multiplying by their respective annual development rates produces 100x and 150x. L2 is dearer to develop by 50x but cheaper to maintain by Rs 250000 over five years. Equality therefore occurs when that extra development cost exactly cancels the maintenance saving. At x=5000 both totals are Rs 1000000.

Original paper, page 2 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Basic COCOMO effort

Software Engineering

Question 7, GATE 2011: Digital-signal-processing software is expected to contain 40000 lines of code. In basic COCOMO, the multiplicative effort factor is 2.8 and the exponent is 1.20. Estimate development effort in person-months.

(A) 234.25
(B) 932.50
(C) 287.80
(D) 122.40
Tap to enlarge
Your answer
Answer & solution

Official answer: A

The basic effort formula is a(KLOC)b. Here KLOC=40000/1000=40, so effort=2.8×401.20≈234.23 person-months, approximately the listed 234.25, A.

COCOMO uses thousands of lines, not raw LOC, as its size input. Substituting 40000 directly would overestimate effort by a factor 10001.2. With the correct input, 401.2=40×400.2≈83.65, and multiplying by 2.8 gives about 234.2. Person-months measure total labor effort, not elapsed calendar months: assigning several people does not make this a schedule estimate without an additional scheduling model.

Original paper, page 3 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Requirements versus implementation design

Software Engineering

Question 10, GATE 2011: Which item is NOT desired in a good Software Requirements Specification document?

(A) Functional requirements
(B) Non-functional requirements
(C) Goals of implementation
(D) Algorithms for software implementation
Tap to enlarge
Your answer
Answer & solution

Official answer: D

An SRS specifies required behavior, quality constraints and goals. Particular algorithms for implementing those requirements belong to design/implementation, not the requirements specification itself. Thus D.

Functional requirements describe what services the system must provide. Non-functional requirements describe qualities or constraints, such as response time or reliability. Goals clarify the intended outcome. Choosing a sorting algorithm or a particular implementation procedure generally prescribes how to build the system, so it belongs in design rather than the requested requirements specification. This is the standard separation tested here, not a claim that a real contract can never impose an implementation constraint.

Original paper, page 3 · Answer key

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Equivalence partitioning for quadratic-root tests

Software Engineering

Question 47, GATE 2011: A quadratic-root function for ax²+bx+c=0 specifies four cases: a=0 (regardless of discriminant); otherwise discriminant positive, zero or negative. Only positive/zero cases yield valid real roots, ordered root1≥root2, and return 0; invalid cases store two zeros and return -1. Test rows list (a,b,c;root1,root2;return): T1=(0,0,7;0,0;-1), T2=(0,1,3;0,0;-1), T3=(1,2,1;-1,-1;0), T4=(4,-12,9;1.5,1.5;0), T5=(1,-2,-3;3,-1;0), T6=(1,1,4;0,0;-1). Which set is nonredundant and covers the input equivalence classes?

(A) T1,T2,T3,T6
(B) T1,T3,T4,T5
(C) T2,T4,T5,T6
(D) T2,T3,T4,T5
Tap to enlarge
Your answer
Answer & solution

Official answer: C

The specification defines four input equivalence classes: a=0 regardless of discriminant, and, for a≠0, discriminant positive, zero or negative. T1 and T2 cover the first class. T3 and T4 both have zero discriminant. T5 has discriminant 16>0, and T6 has discriminant −15<0. A nonredundant representative set must choose one of {T1, T2}, one of {T3, T4}, and both T5 and T6. Among the supplied choices, only {T2, T4, T5, T6} does so, option C.

Compute discriminants b²-4ac only after recognizing the special a=0 class. T3 gives 4-4=0 and T4 gives 144-144=0, so they are redundant for this partition despite different numerical roots. T5 gives 4+12=16; T6 gives 1-16=-15. A repeats the a=0 class and omits positive discriminant. B and D repeat the zero-discriminant class and omit negative discriminant. C contains exactly one representative of each stated category.

Original paper, page 13 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Cyclomatic complexity of sequential composition

Software Engineering

Question 21, GATE 2010: Modules A and B each have cyclomatic complexity 10. The combined flow executes A and then B in sequence, with no additional branch between them. What is the cyclomatic complexity of this sequential integration?
Options: (A) 19; (B) 21; (C) 20; (D) 10.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

For a connected single-entry/single-exit flow graph, cyclomatic complexity is the number of decision points plus one. Complexity 10 in each component means nine independent decisions each. Sequentially composing them adds their decision counts but introduces only one overall baseline path: 9+9+1=19. Equivalently V(A;B)=V(A)+V(B)−1, so A.

The flow-graph formula gives the same result. Connecting A’s exit to B’s entry adds one edge while leaving N_A+N_B vertices. Thus E−N+2=(E_A−N_A+2)+(E_B−N_B+2)−1=19. Simply adding 10+10 counts the straight-through baseline path twice.

Original paper, page 5

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Matching software lifecycle activities

Software Engineering

Question 22, GATE 2010: Match software-life-cycle activities P Requirements capture, Q Design, R Implementation, S Maintenance with: 1 Module development and integration; 2 Domain analysis; 3 Structural and behavioral modeling; 4 Performance tuning.
Options: (A) P–3,Q–2,R–4,S–1; (B) P–2,Q–3,R–1,S–4; (C) P–3,Q–2,R–1,S–4; (D) P–2,Q–3,R–4,S–1.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Requirements capture includes domain analysis (P–2); design includes structural and behavioral modeling (Q–3); implementation covers module development and integration (R–1); and maintenance includes performance tuning (S–4). Thus the matching is P–2,Q–3,R–1,S–4, option B.

The pairing follows what each phase produces: requirements establish the domain problem; design models the proposed system; implementation creates and combines executable modules; maintenance improves or repairs an existing system. Performance tuning may occur elsewhere in practice, but among these offered one-to-one mappings its intended lifecycle association is maintenance.

Original paper, page 5

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Statement-coverage test suite

Software Engineering

Question 44, GATE 2010: Find a test suite covering statements S1,S2,S3,S4 in:
begin
 if(a==b) { S1; exit; }
 else if(c==d) { S2; }
 else { S3; exit; }
 S4;
end
Available test properties: T1: a,b,c,d all equal; T2: all distinct; T3: a=b and c≠d; T4: a≠b and c=d.
Options: (A) T1,T2,T3; (B) T2,T4; (C) T3,T4; (D) T1,T2,T4.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

T1 and T3 both take a==b, execute S1, then exit. T2 takes a!=b and c!=d, executes S3, then exits. T4 takes a!=b and c==d, executes S2 and then S4. Full statement coverage therefore needs T2, T4 and either T1 or T3. Of the offered suites only T1,T2,T4 meets this condition, option D.

The crucial control-flow feature is exit: neither the S1 branch nor the S3 branch reaches S4. Only T4 covers S2 and S4 together. T2 is indispensable for S3, and one of T1/T3 is indispensable for S1. Thus three tests suffice and two cannot cover all three mutually exclusive branch outcomes.

Original paper, page 11

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Ranking software coupling

Software Engineering

Question 19, GATE 2009: Rank coupling strongest to weakest: I content, II common, III control, IV stamp, V data. A I-II-III-IV-V; B V-IV-III-II-I; C I-III-V-II-IV; D IV-II-V-III-I.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

From strongest to weakest, content coupling reaches into another module’s internals; common coupling shares global state; control coupling passes control flags; stamp coupling passes a larger composite record; data coupling passes only needed data values. Thus I, II, III, IV, V, option A.

The ordering measures how much one module relies on another’s implementation. Content coupling directly accesses internals and is most intrusive. Common coupling shares globals; control coupling tells another module which action to take; stamp coupling passes a composite structure with more fields than needed; data coupling passes only the required values. Thus I-II-III-IV-V is the conventional ranking, A. This software-engineering topic is retained as supplemental coverage.

Original paper, page 4

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Data-flow diagram conventions

Software Engineering

Question 49, GATE 2009: DFD assertions: I context diagram represents system as one bubble; II external entities must be identified at every level; III control information should not appear; IV stores may connect directly to another store or external entity. A II/III; B I/II/IV; C I/III; D I/II/III.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

I is true: the context diagram represents the entire system as a single process or bubble and shows its boundary interactions. II is false: external entities need not be repeated at every decomposition level; lower-level DFDs elaborate relevant processes and flows. III is true in conventional DFD notation: a DFD models data transformation and movement, not execution-control information. IV is false: a data store cannot directly exchange data with another store or an external entity; a process must intervene. Therefore I and III, option C. Supplemental topic: software engineering / structured analysis, outside the collection’s twelve core subject buckets.

A context diagram deliberately hides internal decomposition behind one process, so I describes its purpose. Lower-level diagrams refine relevant flows and need not duplicate every external entity, refuting II. Ordinary DFD arrows describe data rather than the temporal order or branching control of execution, supporting III. Data must pass through a transforming process between a store and another store/entity, refuting IV. These conventions select C; real-time DFD extensions require additional notation.

Original paper, page 11

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Cyclomatic complexity interpretations

Software Engineering

Question 50, GATE 2009: Cyclomatic complexity assertions: I equals maximum independent circuits; II equals decisions+1; III gives independent paths for basis-path tests. A I/II; B II/III; C I/III; D all. Interpret circuit augmentation and binary-decision conventions explicitly.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Under the standard software-testing convention all three statements are true, option D. For a connected module with E control-flow edges and N nodes, V(G)=E−N+2. Adding a virtual exit-to-entry edge gives a strongly connected/closed flow graph whose cycle-space dimension is (E+1)−N+1=E−N+2, explaining statement I’s independent-circuit interpretation. For binary predicates V(G)=number of decisions+1 (II), and V(G) gives the number of independent paths in a basis-path test set (III). The circuit wording presupposes this conventional augmentation; the raw unaugmented graph has ordinary undirected cycle rank E−N+1. Likewise a multiway branch contributes outdegree−1 rather than one unless reduced to binary decisions. Supplemental topic: software engineering / testing, outside the twelve core subject buckets.

For a connected single-entry/single-exit module, V=E−N+2. The independent-cycle interpretation uses a virtual edge from exit back to entry; omitting that augmentation gives cycle rank E−N+1 instead. Each binary predicate adds one independent alternative, yielding decisions+1, and those alternatives form a basis of test paths. Thus all three hold under the intended testing convention. Multiway decisions contribute more than one unless decomposed into binary predicates, so the wording is not an unrestricted graph theorem.

Original paper, page 11

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Purpose of structured programming

Software Engineering

Question 1, GATE 2004: What is the goal of structured programming?
Options:
(A) Have well-indented programs
(B) Infer the flow of control from compiled code
(C) Infer the flow of control from program text
(D) Avoid using GOTO statements
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Structured control constructs make the program’s control flow understandable from its source text, C. Indentation helps readability but is not the defining goal, and eliminating every GOTO is a technique rather than the underlying purpose.

2. This general programming-methodology item is retained as supplemental.

3. Teaching check: Sequence, selection and iteration expose control structure directly in the source. Indentation is cosmetic: a well-indented unstructured jump sequence still requires reconstructing its control-flow graph. Conversely, the educational goal is understandability, not a syntactic ban treated as an end in itself.

Original paper, page 1