GATE CS 2015 · Set-2 · Numerical Computation & Estimation

NAT · 2 marks · Problem GA-QUAN-0108

If p, q, r, s are distinct integers such that:\(f(p,q,r,s)= max (p,q,r,s)\) \(g(p,q,r,s)= min (p,q,r,s)\) \(h (p, q, r, s) = \text {remainder of } \frac{(p \times q)} {(r \times s)} \text{ if } (p \times q) \gt (r \times s)\) \(\text{ or remainder of } \frac {(r \times s)}{(p \times q)} \text{ if } (r \times s) \gt (p \times q)\)Also a function \(fgh(p,q,r,s)=f(p,q,r,s) \times g(p,q,r,s) \times h(p,q,r,s)\)Also the same operations are valid with two variable functions of the form \(f(p,q)\)What is the value of \(fg(h(2,5,7,3),4,6,8)\)?

Numerical answer (NAT).

Solve it on GATE DA practice →More Section 2: Quantitative Aptitude problems

Show the worked solutionOfficial GATE Answer Key: [8.0, 8.0].See full step-by-step discussion on GateOverflow: https://gateoverflow.in/8040/gate-cse-2015-set-2-question-ga-9

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com