CS FundamentalsVery hardGATE CS

Match each module with its type of cohesion. P: computes the mean, maximum and histogram of the same input array. Q: performs one of several unrelated I/O operations chosen by a flag argument. R: reads a record, then increments an unrelated counter, then prints a banner, because that is the order of control flow. S: validates a record and passes the validated record to the step that formats it. 1. Logical 2. Communicational 3. Sequential 4. Procedural

  1. A. P-2, Q-1, R-4, S-3
  2. B. P-3, Q-1, R-4, S-2
  3. C. P-2, Q-4, R-1, S-3
  4. D. P-2, Q-1, R-3, S-4

Correct answer: A. P-2, Q-1, R-4, S-3

Operating on the same data is communicational; a flag selecting unrelated actions is logical; steps grouped only by order of execution are procedural; the output of one step feeding the next is sequential.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic