Profit-maximizing production
Algebra, Equations & Number Patterns

Answer & solution
Official answer: A
Revenue is 50q and cost is 5q², so profit is 50q−5q²=125−5(q−5)². Its maximum occurs at q=5, which is also a feasible integer quantity. Thus A.
Check: At q=0 profit is zero, whereas q=5 gives revenue 250 and cost 125, hence profit 125. Maximizing revenue alone would ignore the quadratic cost; π′(q)=50−10q and π″(q)=−10 independently verify the unique maximum.

















![Question 9, GATE 2012: Consider the function f(x) = sin(x) in the interval x ∈ [π/4, 7π/4]. The number and location(s) of the
local minima of this function are
(A) One, at π/2
(B) One, at 3π/2
(C) Two, at π/2 and 3π/2
(D) Two, at π/4 and 3π/2](../../assets/questions/CS-2012-Q19-1.webp)

![Question 11, GATE 2012: Let A=[[1,1],[1,−1]]. Find the eigenvalues of A^19.
(A) ±1024 (B) ±1024√2 (C) ±4√2 (D) ±512√2.](../../assets/questions/CS-2012-Q21-1.webp)
















![Question 28, GATE 2012: The bisection method is applied to compute a zero of the function f(x) = x⁴ – x³ – x² – 4 in the
interval [1,9]. The method converges to a solution after ––––– iterations.
(A) 1 (B) 3 (C) 5 (D) 7](../../assets/questions/CS-2012-Q38-1.webp)

![Question 30, GATE 2012: Minimize the following four-variable Karnaugh map. Columns ab are 00,01,11,10; rows cd are 00,01,11,10. In that order the rows are [1,X,X,1], [X,0,0,1], [0,0,0,0], [1,0,0,X]. X denotes a don’t-care; blank cells in the source denote zero. A bar denotes complement.
(A) b̄d̄ (B) b̄d̄+b̄c̄ (C) b̄d̄+ab̄c̄d (D) b̄d̄+b̄c̄+c̄d̄.](../../assets/questions/CS-2012-Q40-1.webp)

























![Question 52, GATE 2012: Grammar: S→aAbB | bAaB | ε; A→S; B→S. S is the start symbol. The partial predictive table has columns a,b,$: S row=[E1,E2,S→ε]; A row=[A→S,A→S,error]; B row=[B→S,B→S,E3]. ε is empty and $ is the input-end marker.
Find FIRST and FOLLOW of A and B.
(A) FIRST(A)=FIRST(B)={a,b,ε}; FOLLOW(A)={a,b}; FOLLOW(B)={a,b,$}.
(B) FIRST(A)={a,b,$}; FIRST(B)={a,b,ε}; FOLLOW(A)={a,b}; FOLLOW(B)={$}.
(C) FIRST(A)=FIRST(B)={a,b,ε}; FOLLOW(A)={a,b}; FOLLOW(B)=∅.
(D) FIRST(A)=FIRST(B)={a,b}; FOLLOW(A)=FOLLOW(B)={a,b}.](../../assets/questions/CS-2012-Q62-1.webp)
![Question 52, GATE 2012: Grammar: S→aAbB | bAaB | ε; A→S; B→S. S is the start symbol. The partial predictive table has columns a,b,$: S row=[E1,E2,S→ε]; A row=[A→S,A→S,error]; B row=[B→S,B→S,E3]. ε is empty and $ is the input-end marker.
Find FIRST and FOLLOW of A and B.
(A) FIRST(A)=FIRST(B)={a,b,ε}; FOLLOW(A)={a,b}; FOLLOW(B)={a,b,$}.
(B) FIRST(A)={a,b,$}; FIRST(B)={a,b,ε}; FOLLOW(A)={a,b}; FOLLOW(B)={$}.
(C) FIRST(A)=FIRST(B)={a,b,ε}; FOLLOW(A)={a,b}; FOLLOW(B)=∅.
(D) FIRST(A)=FIRST(B)={a,b}; FOLLOW(A)=FOLLOW(B)={a,b}.](../../assets/questions/CS-2012-Q62-2.webp)
![Question 53, GATE 2012: Grammar: S→aAbB | bAaB | ε; A→S; B→S. S is the start symbol. The partial predictive table has columns a,b,$: S row=[E1,E2,S→ε]; A row=[A→S,A→S,error]; B row=[B→S,B→S,E3]. ε is empty and $ is the input-end marker.
Fill E1,E2,E3.
(A) E1={S→aAbB,A→S}; E2={S→bAaB,B→S}; E3={B→S}.
(B) E1={S→aAbB,S→ε}; E2={S→bAaB,S→ε}; E3={S→ε}.
(C) E1={S→aAbB,S→ε}; E2={S→bAaB,S→ε}; E3={B→S}.
(D) E1={A→S,S→ε}; E2={B→S,S→ε}; E3={B→S}.](../../assets/questions/CS-2012-Q63-1.webp)
![Question 53, GATE 2012: Grammar: S→aAbB | bAaB | ε; A→S; B→S. S is the start symbol. The partial predictive table has columns a,b,$: S row=[E1,E2,S→ε]; A row=[A→S,A→S,error]; B row=[B→S,B→S,E3]. ε is empty and $ is the input-end marker.
Fill E1,E2,E3.
(A) E1={S→aAbB,A→S}; E2={S→bAaB,B→S}; E3={B→S}.
(B) E1={S→aAbB,S→ε}; E2={S→bAaB,S→ε}; E3={S→ε}.
(C) E1={S→aAbB,S→ε}; E2={S→bAaB,S→ε}; E3={B→S}.
(D) E1={A→S,S→ε}; E2={B→S,S→ε}; E3={B→S}.](../../assets/questions/CS-2012-Q63-2.webp)



