An urn starts with one red and one blue ball. Each step selects a ball uniformly, then returns it together with one additional ball of its color. Find the probability of equal red and blue counts after two steps. Options: 1/4, 1/3, 1/2, 2/3.
Your answer
Answer & solution
Official answer: B
Our answer: 1/3
Givens and goal
An urn starts with one red and one blue ball. Each step selects a ball uniformly, then returns it together with one additional ball of its color. Find the probability of equal red and blue counts after two steps. Options: 1/4, 1/3, 1/2, 2/3.
Approach
Track the changing composition after the first draw; the two draws are not independent.
Step-by-step solution
1. Each step adds exactly one ball, so after two steps there are four balls. Equal color counts mean two red and two blue, which requires adding one ball of each color. 2. Thus the selected colors must be RB or BR. For RB, the first red has probability 1/2. The urn then contains two red and one blue, so the conditional probability of blue is 1/3. Therefore Pr(RB)=(1/2)(1/3)=1/6. 3. Symmetrically, Pr(BR)=(1/2)(1/3)=1/6. These ordered events are disjoint, giving total probability 1/6+1/6=1/3, option B. 4. As a check, RR has probability (1/2)(2/3)=1/3 and BB has the same probability. The four sequence probabilities sum to 1. The tempting result 1/2 comes from incorrectly retaining a 1/2 chance for each color on the second draw.
For n>1, find the largest possible multiplicity of one eigenvalue of a real n-by-n matrix. Options: n, n−1, 1, n+1.
Your answer
Answer & solution
Official answer: A
Our answer: n
Givens and goal
For n>1, find the largest possible multiplicity of one eigenvalue of a real n-by-n matrix. Options: n, n−1, 1, n+1.
Approach
Prove an upper bound from the characteristic polynomial, then exhibit a matrix attaining it.
Step-by-step solution
1. The characteristic polynomial det(λI−M) has degree n. Algebraic multiplicity counts how many times a root occurs in that polynomial, so no eigenvalue can have algebraic multiplicity larger than n. 2. The identity matrix In attains this bound: det(λI−In)=(λ−1)n. Its eigenvalue 1 occurs with multiplicity n. 3. Therefore n is both an upper bound and achievable, giving option A. The choices n−1 and 1 are too small for In; n+1 is impossible for a degree-n polynomial. 4. If “multiplicity” were read as geometric multiplicity, the maximum is still n: the eigenspace {v:I_nv=v} is all of Rn and has dimension n. The algebraic/geometric distinction matters for some matrices, but not for this maximum.
An n-by-n real matrix M, n>1, has e₂=(0,1,0,…,0) in its null space. Decide which claims must hold: A det(M)=1; B det(M)=0; C rank(M)=1; D its null space contains at least two nonzero vectors.
Select all that apply
Answer & solution
Official answer: B, D
Our answer: Singular matrix; at least two nonzero null vectors
Givens and goal
An n-by-n real matrix M, n>1, has e₂=(0,1,0,…,0) in its null space. Decide which claims must hold: A det(M)=1; B det(M)=0; C rank(M)=1; D its null space contains at least two nonzero vectors.
Approach
Use Me₂=0 to infer singularity, then use closure of a vector space under scalar multiplication.
Step-by-step solution
1. Multiplication by e₂ selects M’s second column. Since Me₂=0, that column is the zero vector. In particular, M maps a nonzero input to zero and cannot be invertible. 2. A square matrix is singular exactly when its determinant is zero, so B is true and A is false. Equivalently, a zero column immediately forces determinant zero. 3. Null spaces are vector spaces. Since e₂ is in the null space, M(2e₂)=2Me₂=0 as well. The vectors e₂ and 2e₂ are distinct and nonzero, proving D. They need not be linearly independent; the statement asks only for two vectors. 4. Rank is not fixed by this information. The zero matrix satisfies the premise and has rank 0. The diagonal matrix diag(1,0,1,…,1) has rank n−1 and also satisfies it. Therefore C is not always true. 5. The guaranteed conclusion is rank(M)≤n−1 and nullity(M)≥1, with infinitely many nonzero null vectors over R. Select B and D.
For x>0, f(x)=c₁e^x−c₂ln(1/x); for x≤0, f(x)=3. The constants are real. Continuity at zero is required. Find c₁+c₂ as an integer.
Answer & solution
Official answer: 3
Givens and goal
For x>0, f(x)=c₁ex−c₂ln(1/x); for x≤0, f(x)=3. The constants are real. Continuity at zero is required. Find c₁+c₂ as an integer.
Approach
Compare the right-hand limit with f(0), first eliminating any divergent contribution.
Step-by-step solution
1. Since f(0)=3 and f is constant 3 on the negative half-line, the value and left-hand limit already agree. Only the limit as x→0+ needs to be imposed. 2. Use ln(1/x)=−ln x to rewrite the positive branch as c₁ex+c₂ln x. As x→0+, ex→1 while ln x→−∞. 3. If c₂>0, the logarithmic term tends to −∞; if c₂<0, it tends to +∞. The exponential term has finite limit c₁ and cannot cancel either divergence. A finite right-hand limit therefore requires c₂=0. 4. With c₂=0, the right-hand limit is c₁. Continuity requires c₁=3, so c₁+c₂=3. 5. Checking the resulting function confirms it: its right branch is 3ex and tends to 3 at zero. There is no need for the derivatives on the two sides to agree because the question asks only for continuity.
For real x, f(x)=(|x|/2−x)(x−|x|/2). Determine which are true: A f has a local maximum; B f has a local minimum; C f′ is continuous on R; D f′ is not differentiable everywhere on R.
Select all that apply
Answer & solution
Official answer: A, C, D
Givens and goal
For real x, f(x)=(|x|/2−x)(x−|x|/2). Determine which are true: A f has a local maximum; B f has a local minimum; C f′ is continuous on R; D f′ is not differentiable everywhere on R.
Approach
Remove the absolute value separately on each side of zero, then inspect the function, its derivative, and the derivative’s one-sided slopes at zero.
Step-by-step solution
1. The two factors are negatives, so f(x)=−(x−|x|/2)2. If x≥0, |x|=x and f(x)=−x²/4. If x<0, |x|=−x and f(x)=−9x²/4. 2. Both branches are negative away from zero and f(0)=0. Thus zero is a strict local and global maximum, making A true. The negative branch is strictly increasing toward zero, and the positive branch strictly decreases away from zero. No point is a local minimum, so B is false. 3. For x<0, f′(x)=−9x/2; for x>0, f′(x)=−x/2. At zero compute the difference quotient: f(h)/h equals −9h/4 from the left and −h/4 from the right. Both tend to 0, so f′(0)=0. 4. The one-sided limits of f′ at zero are also 0, and each branch is continuous elsewhere. Therefore f′ is continuous over all R, proving C. 5. To differentiate f′ at zero, divide f′(h)−f′(0) by h. The left limit is −9/2 and the right limit is −1/2. These differ, so f′ is not differentiable at zero. D is true. 6. Select A, C and D. Continuity of a derivative does not imply that derivative is itself differentiable. Here f is continuously differentiable but not twice differentiable at the joining point.
X takes values 1,…,8. Values 1,2,5,7 each have probability 1/6; values 3,4,6,8 each have probability 1/12. Find E[X] rounded to two decimals.
Answer & solution
Official answer: 4.24 to 4.26
Our answer: 4.25
Givens and goal
X takes values 1,…,8. Values 1,2,5,7 each have probability 1/6; values 3,4,6,8 each have probability 1/12. Find E[X] rounded to two decimals.
Approach
Check normalization and evaluate the probability-weighted sum, grouping equal-probability outcomes.
Step-by-step solution
1. There are four values in each probability group. Their total mass is 4(1/6)+4(1/12)=2/3+1/3=1, so the stated distribution is normalized. 2. By definition E[X]=Σ_x x·Pr(X=x). The first group contributes (1+2+5+7)/6=15/6=2.5. 3. The second group contributes (3+4+6+8)/12=21/12=1.75. 4. Summing gives E[X]=2.5+1.75=4.25. This is already exact to two decimal places. 5. The unweighted average of 1 through 8 is 4.5, but that would assume equal probabilities of 1/8. Here the lower-sum first group carries twice the probability per value, so 4.25 is consistent with the extra weight on that group.
Result: 4.25. The published accepted numerical interval is 4.24 to 4.26, which is broader than the exact computed central value.
For every real x, f(x)=[1/(3√(2π))]exp(−x²/18) is a probability density. Is X A exponential, B normal, C Poisson, or D uniform?
Your answer
Answer & solution
Official answer: B
Givens and goal
For every real x, f(x)=[1/(3√(2π))]exp(−x²/18) is a probability density. Is X A exponential, B normal, C Poisson, or D uniform?
Approach
Match both the exponent and the normalization factor to a standard density.
Step-by-step solution
1. The normal density with mean μ and standard deviation σ is [1/(σ√(2π))]exp(−(x−μ)²/(2σ²)). The given coefficient implies σ=3. 2. The exponent has x² rather than (x−μ)² with a nonzero shift, so μ=0. Its denominator is 18=2×9=2σ², independently confirming σ²=9. 3. Thus X is N(0,9), a normal random variable, option B. The scale parameter 3 is the standard deviation, not the variance. 4. A uniform density is constant on its support; an exponential density has a linear exponent on a one-sided support; a Poisson law assigns discrete masses to nonnegative integers. None matches this smooth two-sided Gaussian density.
For real a, I(a)=integral from −1 to 1 of (3x²−ax+1) dx. Select true statements: A independent of a; B can vary with a; C positive for some a; D negative for some a.
Select all that apply
Answer & solution
Official answer: A, C
Givens and goal
For real a, I(a)=integral from −1 to 1 of (3x²−ax+1) dx. Select true statements: A independent of a; B can vary with a; C positive for some a; D negative for some a.
Approach
Exploit symmetry and verify by an antiderivative.
Step-by-step solution
1. The only parameter-dependent term is −ax. It is odd in x, so its integral over the symmetric interval [−1,1] is zero for every fixed a. 2. The other contributions are ∫(−1 to 1)3x² dx=[x³] from −1 to 1=2, and ∫1 dx=2. Therefore I(a)=2+0+2=4. 3. Alternatively an antiderivative is x³−ax²/2+x. Its endpoint values are 2−a/2 and −2−a/2; their difference is again 4, making the parameter cancellation explicit. 4. A is true and B false because the result never changes with a. C is true, indeed for every a rather than merely some a. D is false because 4 cannot be negative. Select A,C. The integrand itself need not be positive everywhere for this conclusion.
The system ax+y=b and 16x+ay=24 has multiple solutions for chosen real a,b. Find ab.
Answer & solution
Official answer: 24
Givens and goal
The system ax+y=b and 16x+ay=24 has multiple solutions for chosen real a,b. Find ab.
Approach
Require both singular coefficients and compatible right-hand sides.
Step-by-step solution
1. The coefficient matrix is [[a,1],[16,a]], with determinant a²−16. A nonzero determinant would give a unique solution; multiple solutions therefore require a²=16, or a=4 or a=−4. 2. Multiply the first equation by a: a²x+ay=ab. Under a²=16 its left side is identical to the second equation’s left side. Consistency then requires ab=24. 3. For a=4, choose b=6. The second equation is four times the first, leaving one free variable and infinitely many solutions. For a=−4, b=−6 likewise makes it −4 times the first. 4. Both admissible cases give ab=24. Setting only the determinant to zero is insufficient: for example a=4,b=5 would make the equations inconsistent, with no solutions rather than multiple solutions.
Apply determinant multilinearity once for each row.
Step-by-step solution
1. Multiplying a single row by a scalar c multiplies the determinant by c. This is one of the multilinearity properties of the determinant. 2. The matrix 2A multiplies every entry by 2, which is equivalent to multiplying each of its four rows by 2. Factoring a 2 out of each row therefore gives det(2A)=2×2×2×2×det(A). 3. Substitute det(A)=3: det(2A)=2⁴×3=16×3=48. 4. The tempting value 2×3=6 would be appropriate for scaling only one row, not the whole matrix. One can also verify using 2A=(2I₄)A and det(2I₄)=16, followed by determinant multiplicativity.
Six independent fair coin tosses define E1: at least two heads among tosses 2,4,6; E2: exactly two heads among tosses 1,2,3,5. Find P(E1|E2) to one decimal place.
Answer & solution
Official answer: 0.5
Givens and goal
Six independent fair coin tosses define E1: at least two heads among tosses 2,4,6; E2: exactly two heads among tosses 1,2,3,5. Find P(E1|E2) to one decimal place.
Approach
Condition on the shared toss 2, leaving tosses 4 and 6 independent.
Step-by-step solution
1. E2 concerns four positions and permits C(4,2)=6 equally likely arrangements of their two heads. Of these, C(3,1)=3 have toss 2 as a head and C(3,2)=3 have it as a tail. Therefore P(H2|E2)=P(T2|E2)=1/2. 2. Tosses 4 and 6 are not constrained by E2, so conditional on E2 they remain independent fair tosses and independent of the constrained four positions. 3. If toss 2 is a head, E1 requires at least one head among 4 and 6. Its probability is 1−P(T4T6)=1−1/4=3/4. If toss 2 is a tail, E1 requires both remaining tosses to be heads, probability 1/4. 4. By total probability, P(E1|E2)=(1/2)(3/4)+(1/2)(1/4)=1/2=0.5. 5. A direct counting check gives 6×4=24 full six-toss outcomes satisfying E2. Favorable outcomes number 3×3+3×1=12, again 12/24=0.5. The events share toss 2, so conditional reasoning should not be replaced by an unsupported assertion of independence.
For r in (0,1), f(r)=1 if the second decimal digit is 2,3,6,or 7, and 0 otherwise. Count discontinuities, using the customary decimal representation not ending in recurring nines.
Answer & solution
Official answer: 40
Givens and goal
For r in (0,1), f(r)=1 if the second decimal digit is 2,3,6,or 7, and 0 otherwise. Count discontinuities, using the customary decimal representation not ending in recurring nines.
Approach
Group neighboring hundredth intervals with the same output and count only actual changes.
Step-by-step solution
1. Fix a tenth interval with index k∈{0,…,9}. Write r=k/10+u with 0≤u<0.1, restricted to the open domain at the endpoints. Within this interval the second digit is j on u∈[j/100,(j+1)/100). 2. The output is 1 on u∈[0.02,0.04) and u∈[0.06,0.08), and 0 on the remaining parts. Adjacent digit bands 2 and 3 merge into one constant segment; bands 6 and 7 likewise merge. 3. The one-sided limits differ at exactly u=0.02,0.04,0.06,0.08. Each tenth interval therefore contributes four jumps at r=k/10+d/100, d∈{2,4,6,8}. 4. At the boundary between successive tenths, the output is 0 immediately to both sides: digit 9 on the left and digit 0 on the right. Hence those boundaries add no discontinuities. The domain excludes 0 and 1. 5. There are 10×4=40 distinct jump points. At every other point a small enough neighborhood stays in a constant-output region, establishing continuity there. 6. Terminating decimals also have recurring-nine representations. Without a convention the digit-based definition is ambiguous at some points. The standard non-recurring-nine convention makes f single-valued; at the jump points the alternative representation can change the assigned value but cannot equalize the unequal one-sided limits.
For real k, consider x+ky=1 and kx+y=−1. Select true claims: A exactly one k gives no solution; B infinitely many k give no solution; C exactly one k gives a unique solution; D exactly one k gives infinitely many solutions.
Select all that apply
Answer & solution
Official answer: A, D
Approach: Use the determinant to locate exceptional parameter values, then test consistency at those values. The coefficient matrix is [[1,k],[k,1]], with determinant 1−k². For every k other than 1 or −1, this determinant is nonzero, so the system has a unique solution. There are infinitely many such k, which disproves C. At k=1, the equations become x+y=1 and x+y=−1. Their left sides agree but their right sides do not, so no solution exists. At k=−1, the equations become x−y=1 and −x+y=−1. The second is the first multiplied by −1, leaving one equation in two variables. All pairs (x,y)=(1+t,t) solve it, so there are infinitely many solutions. There is exactly one inconsistent value and exactly one infinitely-solvable value, giving A and D. The record remains in its existing supplemental/excluded subject classification; the mathematics is included for paper completeness.
Let f(x)=ax+b for x<1 and f(x)=x³+x²+1 for x≥1. If f is differentiable everywhere, find b to one decimal place.
Answer & solution
Official answer: -2.1 to -1.9
Our answer: -2.0
Approach: Both pieces are polynomials, so only the join x=1 can cause a problem. Differentiability requires both continuity and matching one-sided derivatives there. The right-hand value is f(1)=1+1+1=3. The left-hand limit is a+b. Continuity therefore requires a+b=3. The derivative on the left is a. The derivative on the right is 3x²+2x, whose value at 1 is 5. Matching the slopes gives a=5. Substituting into the continuity equation yields b=3−5=−2. Thus enter −2.0. Matching derivatives alone would determine a but leave b undetermined; the continuity condition is essential. Once both conditions hold, the polynomial pieces join differentiably and there are no other problematic points. The official accepted interval −2.1 to −1.9 remains unchanged. This supplemental calculus item retains its existing excluded subject label.
A box contains four fair coins and one coin that always produces heads. Choose one of the five coins uniformly and toss that same coin twice. Given two heads, find the probability the chosen coin is the fake coin, to two decimal places.
Answer & solution
Official answer: 0.49 to 0.51
Our answer: 0.50
Approach: Use Bayes’ rule because observing heads changes the relative plausibility of the two kinds of coin. Let F denote the fake coin and H denote the observed pair of heads. Before tossing, P(F)=1/5 and P(not F)=4/5. The fake always gives heads, so P(H|F)=1. With a fair coin, independent tosses give P(H|not F)=(1/2)²=1/4. The total probability of two heads is P(H)=(1/5)×1+(4/5)×(1/4)=2/5. Consequently P(F|H)=P(F and H)/P(H)=(1/5)/(2/5)=1/2=0.50. Two heads do not prove that the coin is fake: the combined four-coin fair alternative has exactly as much probability mass for this observation as the fake alternative. The official range 0.49–0.51 and the existing supplemental/excluded classification are retained.
Similar questions1 more → · asked again: GATE 2012, Q11
Finding eigenvalues of a matrix power
Linear Algebra
Tap to enlarge
Let A=[[1,1],[1,−1]]. What are the eigenvalues of A^13? A 1,−1; B 2√2,−2√2; C 4√2,−4√2; D 64√2,−64√2.
Your answer
Answer & solution
Official answer: D
Approach: Look for a simple low power of the matrix before attempting thirteen multiplications. Multiplying A by itself gives [[2,0],[0,2]]=2I. Therefore A13=(A²)6A=(2I)6A=64A. The characteristic equation of A is det(A−λI)=(1−λ)(−1−λ)−1=λ²−2=0, so its eigenvalues are √2 and −√2. Multiplying a matrix by 64 multiplies each eigenvalue by 64, giving 64√2 and −64√2 for A13. Thus D is correct. Equivalently, the eigenvalues of A13 are (±√2)13=±26√2. The negative eigenvalue remains negative because the exponent is odd. This gives a useful check on both sign and magnitude. Their sum is zero, consistent with trace(A13)=64 trace(A)=0. The linear-algebra question remains in the existing supplemental/excluded subject classification.
A continuous random variable has density p(x)=Cx² for 1≤x≤4 and p(x)=0 elsewhere. Find P(2≤X≤3) rounded to three decimal places.
Answer & solution
Official answer: 0.300 to 0.302
Our answer: 0.302
Approach: First determine C by total probability one, then integrate the normalized density over the desired interval. Normalization requires 1=∫₁⁴Cx² dx=C[x³/3]₁⁴=C(64−1)/3=21C, hence C=1/21. This positive constant also ensures that the density is non-negative throughout its support. Therefore P(2≤X≤3)=∫₂³x²/21 dx=[x³/63]₂³=(27−8)/63=19/63≈0.3015873016. To three decimal places this is 0.302, within the preserved official interval 0.300–0.302. Because this is a continuous distribution, including or excluding either endpoint does not change the probability. The density is not uniform, so dividing interval lengths, (3−2)/(4−1)=1/3, would be incorrect. The density weights larger x more heavily. This calculus/probability item is retained for paper completeness while preserving its existing supplemental/excluded subject classification.
Powers of the same matrix associate, so A8=(A²)4=(5I)4=54 I=625I. Thus the diagonal entries are both 625 and the off-diagonal entries are zero. Notice that squaring 5I four times is not what is required: (A²)4 means four factors of 5I. The other listed scalar multiples are neighboring powers of 5 but correspond to different even powers of A. Answer: C.
Find x>1 satisfying ∫ from 1 to x of t ln(t) dt = 1/4. Options: A. √e; B. e; C. e²; D. e−1.
Your answer
Answer & solution
Official answer: A
Use integration by parts with u=ln t and dv=t dt. Then du=dt/t and v=t²/2, giving ∫t ln t dt=(t²/2)ln t−(1/2)∫t dt=(t²/2)ln t−t²/4. At t=1, this antiderivative equals −1/4. Therefore the definite integral is (x²/2)ln x−x²/4+1/4.
Set this expression equal to 1/4 and cancel the constants: x²(2 ln x−1)/4=0. The requirement x>1 rules out x=0 and gives ln x=1/2, hence x=e1/2=√e. It satisfies x>1. The integrand t ln t is positive for t>1, so the definite integral is strictly increasing on the allowed interval, making this solution unique. D is e−1, which is greater than 1, so it does not violate the domain restriction. However, e−1>√e, so strict increase of the integral shows that D also gives a value larger than 1/4, as do B and C. Answer: A.
Nonsingular 3×3 matrices L,M,N satisfy L²=L^(−1), M=L^8, and N=L². Find det(M−N). Options: A. 0; B. 1; C. 2; D. 3.
Your answer
Answer & solution
Official answer: A
Because L is invertible, multiply L²=L−1 by L to obtain L³=I. Its powers therefore repeat with period dividing three. Reduce the exponent 8 modulo 3: L8=(L³)² L²=I²L²=L². Thus M=N, and M−N is the 3×3 zero matrix. Its determinant is zero, giving A.
Do not replace det(M−N) by det M−det N: determinants are not additive in that way. Also, the fact that M and N individually are nonsingular does not make their difference nonsingular. In this problem their difference is the clearest possible singular matrix, even though both original matrices have inverses.
A real 3×3 system PX=Q has an LU factorization P=LU. L is unit lower triangular, L=[[1,0,0],[l21,1,0],[l31,l32,1]], and U is upper triangular with diagonal u11,u22,u33. Select true statements. A. Solve LY=Q first, then UX=Y, to solve PX=Q. B. If P is invertible, both L and U are invertible. C. If P is singular, some diagonal entry of U is zero. D. If P is symmetric, both L and U are symmetric.
Select all that apply
Answer & solution
Official answer: A, B, C
Since PX=LU X, introduce Y=UX. The system becomes LY=Q followed by UX=Y, so A is valid. L has diagonal ones and is always invertible, making the first system solvable by forward substitution. The second is solved by backward substitution when U is nonsingular; if U is singular, its equations instead determine consistency and any free variables. A does not imply every original system has a unique solution.
The determinant of a triangular matrix is the product of its diagonal entries. Thus det L=1 and det P=det L·det U=u11u22u33. If P is invertible, this product is nonzero and both factors are invertible, proving B. If P is singular, the product is zero, so at least one diagonal entry of U is zero, proving C.
For D, take L=[[1,0,0],[1,1,0],[0,0,1]] and U=[[1,1,0],[0,1,0],[0,0,1]]. Their product P=[[1,1,0],[1,2,0],[0,0,1]] is symmetric, but L and U are not symmetric. Symmetry may relate suitable factors to each other's transposes; it does not make each triangular factor symmetric. Select A,B,C.
A monic quadratic over the complex numbers is called square-invariant when (x−α)(x−β)=(x−α²)(x−β²). Choose uniformly from all distinct such polynomials. What is the probability that its two roots are equal? Give one decimal place.
Answer & solution
Official answer: 0.5
Equality of monic polynomials implies equality of their root multisets, including multiplicity: {α,β}={α²,β²}. Squaring must therefore either fix both roots or swap them.
If it fixes each root, α²=α and β²=β, so each root is 0 or 1. Ignoring order, the possible multisets are {0,0},{0,1},{1,1}, giving x², x²−x, and (x−1)².
If it swaps two distinct roots, α²=β and β²=α. Substitute to get α4=α, or α(α³−1)=0. The values α=0 or 1 would force β=α and do not give a distinct swapped pair. The remaining choices are the two nontrivial cube roots of unity ω,ω², which swap under squaring. Together they give one polynomial, (x−ω)(x−ω²)=x²+x+1, because ω+ω²=−1 and ω³=1.
There are therefore four distinct eligible polynomials, not four ordered root pairs. Exactly two, x² and (x−1)², have equal roots. Under uniform choice from these four polynomials, the probability is 2/4=0.5. The complex domain is essential for including x²+x+1. Answer: 0.5.
Choose a cut point U uniformly in (0,1), splitting the unit interval into two pieces. Let L be the length of the piece that contains the fixed point 0.4. Find E[L], to two decimal places. The event U=0.4 has probability zero.
Answer & solution
Official answer: 0.70 to 0.80
Our answer: 0.74
Condition on which side of 0.4 the random cut falls. If 0<U<0.4, the point 0.4 belongs to the right piece (U,1), whose length is 1−U. If 0.4<U<1, it belongs to the left piece (0,U), whose length is U. Since U has uniform density 1, E[L]=∫_00.4(1−u)du + ∫_0.41 u du.
The first integral is [u−u²/2]_00.4=0.4−0.08=0.32. The second is [u²/2]_0.41=0.5−0.08=0.42. Adding them gives 0.74.
Alternatively, conditional means are E[1−U | U<0.4]=1−0.2=0.8 and E[U | U>0.4]=(0.4+1)/2=0.7. Weight by probabilities 0.4 and 0.6 to obtain 0.4·0.8+0.6·0.7=0.74. Do not average the two lengths with equal probability: the containing piece is selected by a fixed location, not by a fair choice between the pieces. The result is within the official range 0.70–0.80. Answer: 0.74.
Let f(x)=max{x,x³} for every real x. At exactly which points is f not differentiable? A {−1,1,2}; B {−2,−1,1}; C {0,1}; D {−1,0,1}.
Your answer
Answer & solution
Official answer: D
Approach: A maximum of smooth branches can have a corner where the winning branch changes. Find the crossings, then compare one-sided derivatives. 1. Solve x³=x: x(x−1)(x+1)=0, giving candidates −1, 0 and 1. Away from these points the larger expression is one fixed polynomial and is differentiable. 2. Testing the intervals gives f(x)=x for x<−1, f(x)=x³ for −1<x<0, f(x)=x for 0<x<1, and f(x)=x³ for x>1. 3. At −1, the left derivative is 1 and the right derivative is 3(−1)²=3. They differ. 4. At 0, the left derivative is 0 and the right derivative is 1. At 1, the left derivative is 1 and the right derivative is 3. These also differ. Answer: D, {−1,0,1}. Equal function values at a crossing ensure continuity here, but do not ensure equal slopes.
Find the product of all eigenvalues of the matrix with rows (1,2,3), (4,5,6), (7,8,9). Options: A −1; B 0; C 1; D 2.
Your answer
Answer & solution
Official answer: B
Approach: The product of a square matrix's eigenvalues, counting algebraic multiplicities, equals its determinant. There is no need to solve its characteristic cubic. 1. Denote the rows by R1, R2 and R3. Observe R2−R1=(3,3,3) and R3−R2=(3,3,3). 2. Therefore R1−2R2+R3=0. This is a nontrivial linear dependence among the rows, so the matrix is singular and its determinant is zero. 3. Hence at least one eigenvalue is zero, making their product zero. Answer: B. A direct determinant check gives 1(45−48)−2(36−42)+3(32−35)=−3+12−9=0. The sum of eigenvalues would instead be the trace 1+5+9=15; that is a different quantity.
A permutation of {1,2,…,n}, n≥4, is chosen uniformly. X means 1 occurs before 2; Y means 3 occurs before 4. Which statement is true? A X and Y are mutually exclusive. B They are independent. C At least one must occur. D X is more likely than Y.
Your answer
Answer & solution
Official answer: B
Approach: Use symmetry of label swaps; other elements and their positions do not affect the two order comparisons. 1. Swapping labels 1 and 2 pairs every permutation satisfying X with one not satisfying X. Thus P(X)=1/2. Similarly, swapping 3 and 4 shows P(Y)=1/2. 2. The first swap does not change Y, and the second does not change X. Starting from any permutation, independently applying these swaps produces all four truth combinations (X,Y), (X,not Y), (not X,Y), and (not X,not Y), each equally often. 3. Therefore P(X∩Y)=1/4=P(X)P(Y), proving independence. Answer: B. The order 1,2,3,4 shows both events can occur, disproving mutual exclusivity. The order 2,1,4,3 shows both can fail, disproving C. Their equal probabilities disprove D.
P(A)=0.3, P(B)=0.5 and P(A∩B)=0.1. Select all true claims: A A and B are independent; B P(A∪B)=0.7; C P(A∩Bᶜ)=0.2; D P(Aᶜ∩Bᶜ)=0.4.
Select all that apply
Answer & solution
Official answer: B, C
Approach: Compute the four disjoint regions of the probability space and check independence separately. 1. The overlap A∩B has probability 0.1. The part only in A has probability 0.3−0.1=0.2. This is A∩Bᶜ, so C is true. 2. The part only in B has probability 0.5−0.1=0.4. Adding the two exclusive parts and the overlap gives P(A∪B)=0.2+0.4+0.1=0.7, so B is true. 3. The region in neither event has probability 1−0.7=0.3, not 0.4. Hence D is false. The value 0.4 belongs to B without A, not to the complement of the union. 4. Independence would require P(A∩B)=P(A)P(B)=0.3×0.5=0.15. The supplied overlap is 0.1, so A is false. Answer: B and C. As a check, the four disjoint probabilities 0.1, 0.2, 0.4 and 0.3 sum to 1.
Nullity bounds and counterexamples to stronger claims
Linear Algebra
Tap to enlarge
For every n×m matrix A with m>n, which statements about Ax=0 are true? A There are at least m−n linearly independent solutions. B Exactly m−n independent vectors can span every solution. C Some nonzero solution has at least m−n zero coordinates. D Some solution has at least n nonzero coordinates.
Select all that apply
Answer & solution
Official answer: A
Approach: Rank-nullity gives the universal dimension guarantee, but it does not directly guarantee particular zero/nonzero coordinate patterns. 1. Let r=rank(A). Then r≤n, and dim ker(A)=m−r≥m−n. A nullspace basis therefore contains at least m−n independent solution vectors. A is true. 2. B demands a spanning set of only m−n independent vectors. If A is the zero matrix, its nullspace has dimension m, which is larger than m−n for n>0. Thus B is not universal. 3. For C, take n=2,m=3 and rows (1,0,1),(0,1,1). Solutions are x=(−t,−t,t). Every nonzero solution has all three coordinates nonzero, whereas m−n=1 zero coordinate is required. C is false. 4. For D, instead take rows (1,0,0),(0,1,0). Solutions are (0,0,t), with at most one nonzero coordinate, less than n=2. D is false. Answer: A only. The counterexamples use different matrices because each universal statement may be refuted independently.
A bag contains 10 red and 15 blue balls. Two are drawn uniformly without replacement. Given that the first draw is red, find the probability that both draws are red, rounded to three decimals.
Answer & solution
Official answer: 0.370 to 0.380
Our answer: 0.375
Approach: The first red draw is already known. Update the bag after that draw and compute only the remaining uncertainty. 1. Initially there are 25 balls. After the given red draw, one red ball has been removed, leaving 9 red and 15 blue balls, 24 in total. 2. Under this condition, “both balls are red” is equivalent to “the second ball is red”. Its probability is therefore 9/24=3/8=0.375. 3. A conditional-probability check gives P(first red and second red)/P(first red)=[(10/25)(9/24)]/(10/25)=9/24, confirming that the first-draw factor cancels. Answer: 0.375, already expressed to three decimal places and within the official accepted interval 0.370–0.380. Multiplying by 10/25 without dividing by the conditioning probability would instead calculate the unconditional probability of two red draws.
A continuous real function satisfies f(x)=1−f(2−x) for every real x. Find the integral of f(x) from 0 to 2. A 0; B 1; C 2; D −1.
Your answer
Answer & solution
Official answer: B
Approach: Pair each point x with its reflection 2−x across the midpoint 1.
1. Derivation. Let I=∫₀²f(x)dx. Substitution u=2−x gives∫₀²f(2−x)dx=I. Integrating f(x)+f(2−x)=1 therefore gives 2I=2, hence I=1, option B. Continuity ensures the integrals exist.
2. Explanation and checks. For the reflected integral let u=2−x, so dx=−du. The limits x=0 and x=2 become u=2 and u=0; reversing them cancels the minus sign. Thus both integrals have the same value although f itself need not be constant. The relation fixes f(1)=1/2 and fixes the interval average at 1/2, yielding area 2×1/2=1. Solving for a particular function is unnecessary. For example, f(x)=x/2 satisfies the identity and integrates to one, illustrating that the required value does not depend on f being constant.
Six independent unbiased dice are rolled. What is the probability all six face values are different? A 1/324; B 5/324; C 7/324; D 11/324.
Your answer
Answer & solution
Official answer: B
Approach: Count outcomes for distinguishable dice, or expose the dice one at a time.
1. Derivation. There are 6⁶ equally likely outcomes for six labelled fair dice. All six faces are distinct exactly when the outcome is a permutation of 1 through 6, giving 6! possibilities. Probability=720/46656=5/324, option B.
2. Explanation and checks. The sequential calculation is (6/6)(5/6)(4/6)(3/6)(2/6)(1/6), because every new die must avoid all previously observed faces. This equals 6!/66. The dice may be rolled simultaneously, but labeling them for counting does not change their probabilities. There is only one unordered multiset containing all six faces, yet it corresponds to 720 ordered outcomes, so using 1/66 would undercount favorable outcomes.
Random variables x,y lie in [0,1], may be dependent, and z=xy. Which always holds? A E[z]=E[x]E[y]; B E[z]≤E[x]E[y]; C E[z]≥E[x]E[y]; D E[z]≤E[x].
Your answer
Answer & solution
Official answer: D
Approach: Use a bound true for each outcome, which remains true after taking an expectation.
1. Derivation. Since0≤y≤1 and x≥0, pointwise xy≤x. Taking expectations preserves the inequality, giving E[xy]≤E[x], option D. No independence is assumed. If x=y is a fair 0/1 variable, E[xy]=1/2>E[x]E[y]=1/4; if y=1−x, E[xy]=0<1/4. These examples rule out universal equality and both fixed comparisons with the product of means.
2. Explanation and checks. Multiplication by a number between zero and one cannot increase a nonnegative quantity, so xy≤x in every outcome; similarly xy≤y. No factorization of expectation is needed. To test the other answers take x equal to 0 or 1 with probability one half each. Choosing y=x makes the variables positively associated, while y=1−x makes them mutually exclusive. Their means remain one half in both examples, yet their product means differ, ruling out any universal product-of-means comparison.
B is obtained by swapping two rows of a real n×n matrix A. Select true statements: A det(B)=−det(A); B invertibility of A implies invertibility of B; C symmetry of A implies symmetry of B; D zero trace of A implies zero trace of B.
Select all that apply
Answer & solution
Official answer: A, B
Approach: Use the determinant rule for the positive claims and small explicit matrices to refute universal claims.
1. Derivation. A single row swap negates the determinant, proving A. If det(A) is nonzero then det(B)=−det(A) is nonzero as well, proving B. Symmetry is not preserved: swapping rows of diag(1, 2) gives[[0, 2],[1, 0]], which is not symmetric. Zero trace is not preserved: A=[[1, 2],[3,−1]] has trace 0, but its row-swapped matrix has trace 5. Answer A, B.
2. Explanation and checks. A row swap is multiplication on the left by an invertible permutation matrix P, so B=PA and B−1=A−1 P−1 whenever A is invertible. This supplies another proof of B. In contrast symmetry would naturally be preserved by applying the same permutation to rows and columns, PAPT, not by a row permutation alone. Trace invariance also applies to similarity transformations, not arbitrary independent row operations. The two counterexamples in the derivation make these distinctions concrete.
Let A have rows (1,2,3,4),(4,1,2,3),(3,4,1,2),(2,3,4,1). Let B have rows (3,4,1,2),(4,1,2,3),(1,2,3,4),(2,3,4,1). Which holds? A det A=det B; B det B=−det A; C det A=0; D det(AB)=det A+det B.
Your answer
Answer & solution
Official answer: B
B is obtained from A by exchanging rows 1 and 3, which negates the determinant. Direct elimination gives det(A)=−160 and det(B)=160, so neither is zero or equal. Also det(AB)=det(A)det(B)=−25600, not their sum 0. Thus only B.
Teaching detail. A row swap reverses the alternating sign in the determinant definition. It does not depend on the actual values of the other rows, so the visible swap gives the answer immediately. To confirm the exclusions, subtract suitable multiples of row 1 to reduce the determinant to a 3×3 determinant: rows (−7,−10,−13),(−2,−8,−10),(−1,−2,−7) give −160. Determinants multiply under matrix multiplication; they do not add. The explicit nonzero check prevents mistakenly treating A as another true statement.
For f(x)=x³+15x²−33x−36, select true statements: A no local maximum; B a local maximum exists; C no local minimum; D a local minimum exists.
Select all that apply
Answer & solution
Official answer: B, D
Differentiate: f′(x)=3x²+30x−33=3(x−1)(x+11). The derivative changes from positive to negative at−11 and from negative to positive at 1, giving a local maximum and minimum respectively. Equivalently f″(−11)=−36 and f″(1)=36. Therefore B, D.
Teaching detail. A stationary point alone need not be an extremum, so the sign change or second derivative must be checked. Here f′ is positive for x<−11, negative for −11<x<1, and positive for x>1. Therefore the curve rises then falls at −11 and falls then rises at 1. The second derivative gives the same conclusion since neither value is zero. These are local extrema; an odd-degree cubic is unbounded in both directions and has no global maximum or minimum over all real numbers.
Evaluate the triple integral of 4x²y−z³ over −3≤x≤3, −2≤y≤2, −1≤z≤1, in the order dz dy dx, rounded to the nearest integer.
Answer & solution
Official answer: 0
The integral is over the symmetric box x∈[−3, 3], y∈[−2, 2], z∈[−1, 1]. The term 4x²y is odd in y and integrates to 0 over its symmetric limits. The term−z³ is odd in z and also integrates to 0. Their sum therefore has integral 0, already an integer.
Teaching detail. One can integrate in the stated order to verify the symmetry shortcut. The z integral of −z³ is zero, while integrating 4x²y over a z-interval of length 2 gives 8x²y. Integrating this over y from −2 to 2 gives zero for every fixed x, and the remaining x integration stays zero. Oddness is used in the variable whose bounds are symmetric; the fact that x² is even causes no problem. No rounding uncertainty remains because the value is exactly zero.
Two fair coins are tossed independently. A={HH}, B={HH,HT} (first head), C={HH,TH} (second head). Select true claims: A events A,B independent; B events A,C independent; C events B,C independent; D P(B|C)=P(B).
Select all that apply
Answer & solution
Official answer: C, D
The four outcomes HH, HT, TH, TT are equally likely. P(A)=1/4, P(B)=P(C)=1/2. Since A is a subset of B and of C, P(A intersection B)=P(A intersection C)=1/4, whereas P(A)P(B)=P(A)P(C)=1/8; neither pair is independent. But P(B intersection C)=1/4=P(B)P(C), and P(B given C)=1/2=P(B). Hence C and D.
Teaching detail. Independence asks whether learning one event changes the other's probability, not whether the events overlap. Knowing C leaves the first coin fair, so the two equally likely remaining outcomes HH,TH give P(B|C)=1/2. By contrast, learning A guarantees B, giving P(B|A)=1 rather than P(B)=1/2. The same reasoning applies to C. The direct product checks in the solution are valid because all four outcomes have probability 1/4 under the standard independent fair-coin experiment.
For A of size m×n, B n×m, and C,D n×n, assess 1: tr(AB)=tr(BA), and 2: tr(CD)=tr(DC). A only 1; B only 2; C both; D neither.
Your answer
Answer & solution
Official answer: C
For A of size m×n and B of size n×m, trace(AB)=Σ_iΣ_j A_ij B_ji=Σ_jΣ_i B_ji A_ij=trace(BA). Both products are square even when their sizes differ. Hence both stated equalities hold, C.
Trace only sums diagonal entries, not all entries. (AB)ii=Σj AijBji. Finite sums may be exchanged, and scalar factors commute, giving the diagonal sum of BA. This cyclic identity does not assert AB=BA.
At x=0 numerator and denominator both vanish. Using e2x=1+2x+O(x²), x/(1−e2x)=x/(−2x+O(x²)) tends to −1/2. Thus −0.5.
Alternatively l’Hôpital gives numerator derivative 1 and denominator derivative −2e2x, yielding −1/2. For small positive x, e2x>1, so the quotient is negative, consistent with the answer.
Solve x1+x2−2x3=4, x1+3x2−x3=7, 2x1+x2−5x3=7 using A=LU, lower/upper triangular L/U. Which tuple (L32,U33,x1) is intended? A (2,−1/2,−1); B (2,2,−1); C (−1/2,2,0); D (−1/2,−1/2,0). No diagonal normalization is explicitly stated in the source.
Your answer
Answer & solution
Official answer: D
Our answer: D for unit-diagonal L; C also possible without normalization
Gaussian elimination with unit diagonal L gives L=[[1, 0, 0],[1, 1, 0],[2,−1/2, 1]] and U=[[1, 1,−2],[0, 2, 1],[0, 0,−1/2]]. Solving gives (x1, x2, x3)=(0, 2,−1), so L32=−1/2, U33=−1/2, x1=0, official D. However the source does not specify a unit diagonal for L. Replacing L33 by −1/4 and U33 by 2 keeps LU equal to the original coefficient matrix and leaves L32=−1/2, x1=0. That realizes option C as well. Thus uniqueness depends on the unstated Doolittle normalization; the key is retained with that ambiguity open.
Elimination details: R2←R2−R1 gives [0,2,1|3]; R3←R3−2R1 gives [0,−1,−1|−1]. Then R3←R3+(1/2)R2 gives [0,0,−1/2|1/2]. Back substitution yields x3=−1, x2=2, x1=0. The multipliers 1,2,−1/2 populate a unit-diagonal L only if that convention is imposed.
Which vectors are eigenvectors of M=[[-9,-6,-2,-4],[-8,-6,-3,-1],[20,15,8,5],[32,21,7,12]]? A (−1,1,0,1); B (1,0,−1,0); C (−1,0,2,2); D (0,1,−3,0).
Select all that apply
Answer & solution
Official answer: A,C,D
Multiply each offered vector by the displayed matrix. For A, the result is (-1, 1, 0, 1), equal to the original vector (eigenvalue 1). For B, the result is (-7,-5, 12, 25), not proportional to (1, 0,-1, 0), so B fails. For C the result is (-3, 0, 6, 6)=3(-1, 0, 2, 2), and for D it is (0, 3,-9, 0)=3(0, 1,-3, 0). Thus A, C, D are eigenvectors.
For example, multiplying C row by row gives 9−4−8=−3; 8−6−2=0; −20+16+10=6; −32+14+24=6. Zero coordinates must remain zero in any scalar multiple, so B is immediately ruled out by its second coordinate −5 and fourth coordinate 25.
A component lifetime X is exponentially distributed with parameter 2. Find P(X>E[X]), rounded to two decimal places.
Answer & solution
Official answer: 0.35 to 0.39
Our answer: 0.37
For an exponential lifetime with rateλ, E[X]=1/λ and P(X>t)=e−λt. Therefore P(X>E[X])=e−1≈0.367879, rounding to 0.37, within the official 0.35–0.39 range. The result is the same if parameter2 is expressed as a scale rather than rate.
With rate λ=2 the mean is 1/2, so integrate the density: ∫_(1/2)^∞ 2e−2xdx=e−1. Equivalently use the survival function. If the printed 'parameter 2' were interpreted as scale θ=2, the mean would be 2 and survival at that mean would still be e−2/2=e−1. This invariant removes the rate-versus-scale convention issue for this particular question.
Evaluate lim(x→−3) (√(2x+22)−4)/(x+3), rounded to two decimal places.
Answer & solution
Official answer: 0.25
Rationalize the numerator: (√(2x+22)−4)/(x+3)=2/(√(2x+22)+4) for x≠−3. Taking x→−3 gives 2/(4+4)=1/4=0.25.
Direct substitution yields 0/0, an indeterminate form rather than an answer. Multiply numerator and denominator by √(2x+22)+4. The numerator becomes 2x+22−16=2(x+3), which cancels for x≠−3 in a punctured neighborhood. The remaining expression is continuous at −3. The derivative interpretation also works: the numerator is f(x)−f(−3) for f(x)=√(2x+22), so the limit is f'(−3)=1/4.
S1: There exist random variables X,Y for which (E[(X−E[X])(Y−E[Y])])²>Var[X]Var[Y]. S2: For all X,Y, Cov[X,Y]=E[|X−E[X]| |Y−E[Y]|]. Which is correct? A both true; B S1 true/S2 false; C S1 false/S2 true; D both false. Variances/covariances are understood to exist.
Your answer
Answer & solution
Official answer: D
For finite second moments, Cauchy–Schwarz gives Cov(X, Y)²≤Var(X)Var(Y), contradicting S1’s strict greater-than claim. S2 incorrectly inserts absolute values. For a nonconstant mean-zero random variable X and Y=−X, covariance is−Var(X), while the proposed expectation of absolute deviations is+Var(X). Both statements are false, D.
Let U=X−E[X], V=Y−E[Y]. Cauchy–Schwarz says |E[UV]|≤√(E[U²]E[V²]); squaring establishes the opposite of S1's strict inequality. For S2 take X equally likely ±1 and Y=−X. Means are zero, Cov(X,Y)=E[−X²]=−1, while E[|X||Y|]=1. The sign information removed by absolute values is essential to covariance.
Find the largest eigenvalue of the 4×4 matrix whose diagonal entries are 0 and all off-diagonal entries are 1: rows (0,1,1,1),(1,0,1,1),(1,1,0,1),(1,1,1,0).
Answer & solution
Official answer: 3
The matrix is J-I, where J is the 4-by-4 all-ones matrix. The all-ones vector has eigenvalue 4 for J and therefore eigenvalue 3 for J-I. Every vector whose coordinates sum to zero has eigenvalue 0 for J and -1 for J-I; that subspace has dimension three. The full spectrum is 3,-1,-1,-1, so the largest eigenvalue is 3.
For any vector v, Jv is the vector whose four entries are sum(v). Thus v=(1,1,1,1) gives (J−I)v=3v. Every zero-sum vector gives (J−I)v=−v; examples (1,−1,0,0),(0,1,−1,0),(0,0,1,−1) form a basis for that three-dimensional subspace. These four independent eigenvectors account for the whole 4×4 matrix. The trace check 3−1−1−1=0 matches the zero diagonal.
A sender transmits H with probability .1 and L with probability .9. Channel edge probabilities are P(received H|sent H)=.3, P(received L|sent H)=.7, P(received H|sent L)=.8, P(received L|sent L)=.2. Given that H was received, find the probability H was sent, rounded to two decimals.
Answer & solution
Official answer: 0.04
Bayes rule gives P(sent H given received H)=P(received H given sent H)P(sent H)/P(received H). The diagram gives 0.3 for H-to-H and 0.8 for L-to-H. The numerator is 0.3*0.1=0.03, and the denominator is 0.3*0.1+0.8*0.9=0.75. The conditional probability is 0.03/0.75=0.04.
Among an imagined 1000 transmissions, 100 are H and 900 are L. Expected received-H counts are 30 from sent-H and 720 from sent-L. Conditioning on received H therefore selects a population of 750, of which only 30 originated as H: 30/750=.04. The reversed conditional P(received H|sent H)=.3 is not the requested P(sent H|received H), because the prior probabilities differ greatly.
A coin independently gives heads with probability 0.4 on each of 1000 tosses. X counts heads. Find standard deviation of X to two decimals.
Answer & solution
Official answer: 15.00 to 16.00
Our answer: 15.49
For X~Binomial(1000, 0.4), variance is np(1−p)=1000·0.4·0.6=240. Standard deviation is√240≈15.4919, or 15.49 to two decimals, within the official 15.00–16.00 range.
Write X as the sum of 1000 independent Bernoulli indicators. Each has variance p(1−p)=0.24; independence makes variances add. Standard deviations do not add directly. Taking the square root only after the variance sum produces the requested units, number of heads.
P is a 4×5 matrix and every solution of Px=0 is a scalar multiple of (2,5,4,3,1)ᵀ. Find rank(P).
Answer & solution
Official answer: 4
The nullspace is contained in the span of one nonzero vector, so its dimension is at most 1. A4×5 matrix has rank at most 4 and therefore nullity at least 1. Hence nullity=1 and rank=5−1=4.
Rank-nullity applies to the five-column linear map: rank+nullity=5. The statement only says every solution lies in the given line, not explicitly that every point on the line is a solution. Nevertheless the 4-row rank bound forces a nonzero nullspace, completing that missing direction and ruling out nullity zero.
f is continuous on [−3,3], differentiable on (−3,3), f′(x)≤2 everywhere inside, and f(−3)=7. Find the largest possible f(3).
Answer & solution
Official answer: 19
The mean value theorem gives f(3)−f(−3)=6f′(c)≤12 for some c∈(−3, 3). Since f(−3)=7, f(3)≤19. The linear function f(x)=2x+13 attains equality, so 19 is the tight upper bound.
The mean value theorem needs continuity on the closed interval and differentiability inside, both supplied. It provides an actual intermediate derivative equal to the secant slope. An upper derivative bound is not an absolute derivative bound, so the problem gives no analogous finite lower bound on f(3). The attaining linear function proves tightness.
Independent questions A and B are correct with probabilities 0.8 and 0.5, worth 10 and 20 marks. A wrong first answer yields zero; a correct first and wrong second yields only first marks; both correct yield 30. Choose order and expectation: A A then B,14; B B then A,14; C B then A,22; D A then B,16.
Your answer
Answer & solution
Official answer: D
Attempting A first gives expected marks 0.8·10+(0.8·0.5)·20=16. Attempting B first gives 0.5·20+(0.5·0.8)·10=14. The product terms use the stated independence. Hence A then B maximizes the expectation at 16, D.
Alternatively enumerate outcomes for A first: probability 0.2 earns 0; probability 0.8×0.5 earns 10; probability 0.8×0.5 earns 30. Expectation is 4+12=16. For B first, 0.5 earns zero, 0.5×0.2 earns 20 and 0.5×0.8 earns 30, totaling 2+12=14. Expected individual question value alone does not determine the order.
Urn starts with r red,b black balls. Each trial draws uniformly, replaces the ball, and adds one more of that color. Four trials occur. Probability fourth draw is red? A r/(r+b); B r/(r+b+3); C (r+3)/(r+b+3); D product of (r+i)/(r+b+i) for i=0,1,2,3.
Your answer
Answer & solution
Official answer: A
Let Rk be the number of red balls after k draws and N=r+b. Given Rk, the expected red count after one more draw is Rk+Rk/(N+k). Therefore E[Rk+1/(N+k+1)|Rk]=Rk/(N+k). The expected red proportion remains r/N through all trials. The probability of red on trial 4 is E[R3/(N+3)]=r/(r+b), A.
A direct check on the second draw already shows the pattern: (r/N)((r+1)/(N+1))+(b/N)(r/(N+1))=r/N. Reinforcement makes successive colors dependent, but leaves the marginal probability unchanged. Option D is the probability that all four draws are red, which is stronger than only the fourth being red.
Define s(P,Q)=Σi P[i]Q[i] for real vectors. L consists of nonzero ten-dimensional vectors with s(P,Q)=0 for every distinct pair. Maximum |L|? A 9; B 10; C 11; D 100.
Your answer
Answer & solution
Official answer: B
The displayed operation is the standard inner product. Pairwise orthogonal nonzero vectors are linearly independent: dotting a zero linear combination with any member forces its coefficient to vanish. In dimension 10 there can be at most 10 such vectors. The ten standard basis vectors attain that bound, so 10, B.
If Σαi vi=0, dot with vj. Orthogonality removes every term except αj||vj||². Nonzero vj implies its squared norm is positive, hence αj=0. This is linear independence, so dimension bounds the set. Nonzero is essential: the zero vector is orthogonal to everything but would not contribute an independent direction.
Which functions increase throughout [0,1]? I e^(−x); II x²−sin x; III √(x³+1). Options: A III only; B II only; C II and III; D I and III.
Your answer
Answer & solution
Official answer: A
Worked explanation
For a differentiable function, a negative derivative anywhere in the interior rules out increasing throughout the interval. Function I has derivative −e−x<0 everywhere. For II, continuity of 2x−cos x and its value −1 at zero imply negativity on some interval immediately to the right of zero. Function III has derivative 3x²/(2√(x³+1)), positive for x>0 and zero only at the endpoint. A zero derivative at one endpoint does not prevent strict increase: for x<y, x³+1<y³+1, and square root preserves this inequality.
Derivation and answer
The derivative of e−x is negative. The derivative of x²−sin x is 2x−cos x, which is−1 at 0 and remains negative nearby, so that function is not increasing throughout the interval. The third function√(x³+1) is strictly increasing on[0, 1] since both x³ and square root are strictly increasing there. Only III, A.
For real n×n matrices A,B, test I rank(AB)=rank(A)rank(B); II det(AB)=det(A)det(B); III rank(A+B)≤rank(A)+rank(B); IV det(A+B)≤det(A)+det(B). A I,II; B I,IV; C II,III; D III,IV.
Your answer
Answer & solution
Official answer: C
Worked explanation
The product determinant identity is valid even for singular matrices. For the rank inequality, every column of A+B is a sum of a column of A and a column of B, so its span lies in col(A)+col(B). The dimension of a sum of subspaces is at most the sum of their dimensions, proving III. To refute universal assertions, one legal counterexample suffices: choose 2×2 identities. AB=I has rank 2, not 4, and A+B=2I has determinant 4, exceeding det A+det B=2. Rank multiplication is not the correct rule; a useful correct bound is rank(AB)≤min(rank A,rank B).
Derivation and answer
Determinants multiply, so II is true. The column space of A+B is contained in the sum of the column spaces of A and B, proving rank(A+B)≤rank(A)+rank(B), III. With A=B=I2, rank(AB)=2 differs from 2·2=4, refuting I, while det(A+B)=4 exceeds 1+1=2, refuting IV. Thus C.
For a square matrix X, compare I: X is invertible; II: det(X) is nonzero. Choices: A only I implies II; B only II implies I; C neither implication; D the two statements are equivalent.
Your answer
Answer & solution
Official answer: D
Method: prove each implication separately for an ordinary square matrix over the real or complex numbers.
1. Suppose X is invertible. Then XX−1 = I. Taking determinants gives det(X)·det(X−1) = det(I) = 1. A product equal to 1 cannot have a zero factor, so det(X) ≠ 0. Hence I implies II. 2. Conversely, suppose det(X) ≠ 0. The adjugate identity says X·adj(X) = det(X)I. Dividing by the nonzero determinant gives X·[adj(X)/det(X)] = I and similarly on the other side. 3. Therefore adj(X)/det(X) is an inverse of X, proving II implies I. Equivalently, a nonzero determinant means full rank and no nonzero vector in the nullspace.
Result: D, I and II are equivalent. The square-matrix assumption matters because ordinary two-sided invertibility and this determinant criterion are not defined in the same way for rectangular matrices.
Evaluate lim as x approaches 3 of (x^4−81)/(2x²−5x−3). Choices: A 1; B 53/12; C 108/7; D the limit does not exist.
Your answer
Answer & solution
Official answer: C
Method: resolve the 0/0 form by factoring; a limit depends on nearby values, so cancellation away from x=3 is legitimate.
1. Direct substitution gives numerator 34 − 81 = 0 and denominator 18 − 15 − 3 = 0. This indeterminate form does not itself mean the limit fails to exist. 2. Factor the numerator twice: x4 − 81 = (x²−9)(x²+9) = (x−3)(x+3)(x²+9). 3. Factor the denominator: 2x² − 5x − 3 = (x−3)(2x+1). 4. For x≠3, cancel x−3. The quotient becomes (x+3)(x²+9)/(2x+1), whose denominator at 3 is 7, not zero. 5. Substitute into this continuous simplified expression: (3+3)(9+9)/(6+1) = 6×18/7 = 108/7.
Result: C. As an independent check, differentiating numerator and denominator in this 0/0 case gives 4·3³/(4·3−5) = 108/7 by l'Hôpital's rule; factoring is sufficient and requires less machinery.
Choose two numbers independently and uniformly from {1,…,13}. Represent each as a four-bit unsigned binary number, including leading zeros. Find the probability that their most significant bits agree, rounded to three decimal places.
Answer & solution
Official answer: 0.502 to 0.504
Our answer: 0.503
Method: partition the sample space by the value of the leftmost four-bit position.
1. In four-bit unsigned representation, the most significant bit has weight 8. Numbers 1 through 7 have MSB 0; there are seven. Numbers 8 through 13 have MSB 1; there are six. Zero is not in the sampling set. 2. The MSBs agree in two disjoint cases: both draws come from the seven-number group, or both from the six-number group. 3. Independent draws give probability (7/13)² for the first case and (6/13)² for the second. The desired sum is (49+36)/169=85/169. 4. Numerically 85/169≈0.50295858, which rounds to 0.503.
Result: 0.503. Independence permits the same number to be drawn twice. Treating the draws as without replacement would change both denominators and the probability.
R has rows (1,2,4,8), (1,3,9,27), (1,4,16,64), (1,5,25,125). Find the absolute value of the product of its eigenvalues.
Answer & solution
Official answer: 12
1. For any square matrix, the determinant equals the product of its eigenvalues, counted with algebraic multiplicity. Thus the requested value is |det R|; finding each eigenvalue individually is unnecessary. 2. Each row has the pattern (1,t,t²,t³), with t=2,3,4,5. This is a Vandermonde matrix. Its determinant is the product of (tj−ti) over every pair i<j. 3. There are six such pairs. Their differences are 3−2=1, 4−2=2, 5−2=3, 4−3=1, 5−3=2, and 5−4=1. 4. Multiply: det R=1×2×3×1×2×1=12. Because the t values appear in increasing order, the determinant is positive; the requested absolute value is therefore also 12. 5. The Vandermonde shortcut applies because columns are successive powers of the same row parameter, not merely because the entries increase. Standard elimination would give the same determinant, but numerical eigenvalue approximation introduces needless work and error.
Y is uniformly distributed on (1,6). Find the probability that 3x²+6Yx+3Y+6 has only real roots, rounded to one decimal place.
Answer & solution
Official answer: 0.8
1. A real quadratic ax²+bx+c with a≠0 has real roots exactly when its discriminant Δ=b²−4ac is nonnegative. Here a=3, b=6Y, c=3Y+6. 2. Substitute and simplify: Δ=(6Y)²−4×3×(3Y+6)=36Y²−36Y−72=36(Y−2)(Y+1). 3. Throughout the support 1<Y<6, the factor Y+1 is positive. Thus Δ≥0 exactly when Y−2≥0, namely Y≥2. Intersecting with the support gives [2,6). 4. Uniform probability is favorable interval length divided by total interval length: (6−2)/(6−1)=4/5=0.8. This already has the requested one-decimal precision. 5. At Y=2 the quadratic has a repeated real root. Including or excluding that single boundary point does not change probability for a continuous uniform variable. The question asks for real roots, not positive roots; the negative sign of their sum is irrelevant.
Each of two players independently rolls a fair six-faced die per trial; ties cause a retry. Find the probability that the game first has a winner on trial 3, rounded to three decimals.
Answer & solution
Official answer: 0.021 to 0.024
Our answer: 0.023
Method
Of the 36 equally likely ordered roll pairs, six are ties: (1,1) through (6,6). The other 30 yield a winner, regardless of which player wins. To reach trial 3, the first two trials must both tie; the third must be non-tied. Independence permits multiplying these three probabilities. Do not multiply by an extra factor 2 for the two players: the decisive probability already includes both possible winners.
Solution
A trial ties with probability 6/36=1/6 and is decisive with probability 5/6. Winning first on trial 3 requires two ties then a decisive roll, probability(1/6)²(5/6)=5/216≈0.023148, rounded 0.023.
Evaluate ∫ from 0 to π/4 of x cos(x²) dx, using π=3.14 and rounding to three decimals.
Answer & solution
Official answer: 0.27 to 0.30
Our answer: 0.289
Method
The derivative of the inner argument x² is 2x, so the factor x dx is half of du. The transformed upper bound is (3.14/4)²=0.616225, not 3.14/4. Thus the integral is one half of the sine of 0.616225 radians. The integrand is positive throughout this interval, consistent with a positive answer smaller than ∫x dx=0.3081125.
Solution
Substitute u=x², du=2x dx. The integral is(1/2)sin(x²) evaluated at 0 andπ/4, hence(1/2)sin((3.14/4)²)≈0.288979, rounded 0.289.
Let u=(1,2)^T, v=(1,1)^T and A=uv^T. Find the largest eigenvalue.
Answer & solution
Official answer: 3
Method
Write out the matrix to make the outer-product order explicit: A=[[1,1],[2,2]]. Its characteristic polynomial is (1−λ)(2−λ)−2=λ²−3λ=λ(λ−3), giving eigenvalues 0 and 3. This independently confirms the rank-one shortcut below. The scalar vTu is not the same matrix as uvT; it supplies the nonzero eigenvalue because applying A to u returns a scalar multiple of u.
Solution
A=uvT has rank 1. Its nonzero eigenvalue is vTu=1+2=3, since Au=u(vTu)=3u. The other eigenvalue is 0, so the largest is 3.
A 2×2 matrix P has only eigenvectors parallel to (1,4)^T. Which statements are necessary? I P is singular; II its eigenvalue repeats; III P is not diagonalizable. A I,III; B II only; C I,II; D II,III.
Your answer
Answer & solution
Official answer: D
Method
Diagonalization in dimension two requires a basis of two linearly independent eigenvectors; the given one-dimensional eigenspace cannot provide it. Distinct eigenvalues would yield independent eigenvectors, so they must coincide. Repeated does not mean zero: take S=[[1,0],[4,1]] and J=[[1,1],[0,1]]. Then SJS−1=[[-3,1],[-16,5]] has determinant 1, while its eigenvectors satisfy y=4x. This explicit nonsingular example refutes I.
Solution
A2×2 matrix with only one eigenvector direction cannot be diagonalized, proving III. Two distinct eigenvalues would supply independent eigenvectors, so its eigenvalue must be repeated, II. Invertibility is not ruled out: any similarity transform of the nonsingular Jordan block [[1, 1],[0, 1]] with its first basis vector(1, 4) has exactly that eigenvector direction. Thus II and III, D.
Let a1,...,an be column vectors in R^n and let scalars c1,...,cn, not all zero, satisfy Σ ci ai=0. Set A=[a1,...,an] and b=Σ ai. For Ax=b choose: A unique solution x=J (all-ones vector); B no solution; C infinitely many solutions; D finitely many solutions.
Your answer
Answer & solution
Official answer: C
1. A linear combination of columns is a matrix-vector product. Thus c≠0 and Ac=0, so A has nontrivial nullspace. Singularity alone does not tell us whether Ax=b is consistent.
2. Here b is specifically the sum of the columns. Therefore AJ=b for J=(1,...,1), establishing consistency.
3. For each real t, A(J+tc)=AJ+tAc=b. Since c≠0, different t give distinct solutions. There are infinitely many, C, not merely the known solution J.
X is Gaussian with mean 0 and variance σ². Let Y=max(X,0). Find the median of Y.
Answer & solution
Official answer: 0.0
Our answer: 0
1. For positive variance, symmetry of a zero-mean Gaussian gives P(X≤0)=1/2. The map max(X,0) sends every negative input to exactly zero.
2. Thus Y has no negative values and has probability 1/2 concentrated at zero. A median m satisfies P(Y≤m)≥1/2 and P(Y≥m)≥1/2; m=0 satisfies both.
3. For m<0 the first probability is zero; for m>0 the second is less than 1/2. Hence the median is 0. If variance is zero, Y is identically zero and the same answer holds.
Evaluate lim(x→1) (x^7−2x^5+1)/(x^3−3x²+2). A 0; B −1; C 1; D does not exist.
Your answer
Answer & solution
Official answer: C
1. Direct substitution gives numerator 1−2+1=0 and denominator 1−3+2=0, an indeterminate 0/0 rather than a value of zero.
2. Differentiate numerator and denominator: 7x6−10x4 and 3x²−6x. At x=1 both equal −3.
3. The denominator derivative is nonzero near 1, so the standard 0/0 limit rule applies. The limit is (−3)/(−3)=1, option C. Equivalently both polynomials have a common simple factor x−1 that cancels.
Nonzero vectors u,v in R² satisfy ||u||=2||v||. What α makes w=u+αv bisect their angle? A 2; B 1/2; C 1; D −1/2. The intended case is the internal bisector of a nonstraight angle.
Your answer
Answer & solution
Official answer: A
Our answer: A for nondegenerate internal bisector
1. Simply adding u and v weights their directions unequally because their lengths differ. First normalize: û=u/||u|| and v̂=v/||v||.
2. The vector û+v̂ makes equal angles with the two unit vectors: its dot product with each is 1+û·v̂, and their norms are equal. Thus it points along the internal bisector when nonzero.
3. Multiply by ||u|| to obtain u+(||u||/||v||)v=u+2v. Therefore α=2, A. Zero vectors or opposite directions make this construction degenerate and are not the intended case.
A is an n×n real symmetric rank-2 matrix satisfying ΣiΣj Aij²=50. I: an eigenvalue must lie in [−5,5]. II: the eigenvalue of largest magnitude must be strictly greater than 5. Which necessarily hold? A both; B I only; C II only; D neither.
Your answer
Answer & solution
Official answer: B
1. For a real symmetric matrix, orthogonal diagonalization preserves the squared Frobenius norm: ΣAij²=trace(AᵀA)=Σλi². Rank 2 means exactly two eigenvalues are nonzero.
2. Thus λ1²+λ2²=50. If both had magnitude greater than 5, their squares would sum to more than 50, impossible. At least one is in [−5,5], proving I; any additional zero eigenvalues also satisfy it.
3. For II, A=diag(5,5) satisfies all premises but has largest eigenvalue magnitude exactly 5. Strictly greater is therefore not guaranteed. Answer B.
Let f(x)=R sin(πx/2)+S, with f′(1/2)=√2 and ∫₀¹ f(x)dx=2R/π. Find (R,S). A:(2/π,16/π). B:(2/π,0). C:(4/π,0). D:(4/π,16/π).
Your answer
Answer & solution
Official answer: C
1. Differentiate with respect to x, treating R and S as constants: f′(x)=R(π/2)cos(πx/2). At x=1/2, cos(π/4)=√2/2, so Rπ√2/4=√2. Cancel √2 to obtain R=4/π.
2. Integrate the original function: ∫₀¹ R sin(πx/2)dx=R[-(2/π)cos(πx/2)]₀¹=2R/π. The constant term contributes S.
3. The given integral equality therefore becomes 2R/π+S=2R/π, forcing S=0. The pair is (4/π,0), option C. The derivative condition alone cannot determine S.
P=[[1,1,-1],[2,-3,4],[3,-2,3]] and Q=[[-1,-2,-1],[6,12,6],[5,10,5]]. Find rank(P+Q).
Answer & solution
Official answer: 2.0
Our answer: 2
1. Add corresponding entries to obtain A=P+Q=[[0,-1,-2],[8,9,10],[8,8,8]]. Rank concerns the number of independent rows or columns of this sum, not the sum of the separate ranks.
2. Row 3 equals row 1 plus row 2: (0,-1,-2)+(8,9,10)=(8,8,8). Therefore the three rows are dependent and rank(A)≤2.
3. Rows 1 and 2 are independent since the first coordinate of row 1 is zero while that of row 2 is 8, and row 1 is nonzero. Equivalently, the upper-left 2×2 minor has determinant 0·9-(-1)·8=8≠0. Thus rank(A)=2.
P and Q may apply for a job. Given Pr(P)=1/4, Pr(P|Q)=1/2 and Pr(Q|P)=1/3, find Pr(not P | not Q). A:4/5. B:5/6. C:7/8. D:11/12.
Your answer
Answer & solution
Official answer: A
1. Conditional probability gives Pr(P∩Q)=Pr(Q|P)Pr(P)=(1/3)(1/4)=1/12. Use the other conditional to find Pr(Q): (1/12)/Pr(Q)=1/2, so Pr(Q)=1/6.
2. Inclusion-exclusion gives Pr(P∪Q)=1/4+1/6-1/12=1/3. Therefore the probability of neither event is Pr(not P∩not Q)=2/3.
3. Conditioning on not Q restricts the denominator to Pr(not Q)=5/6. Hence the requested probability is (2/3)/(5/6)=4/5, A. Independence was not given and must not be assumed; in fact the supplied conditional probabilities do not equal the unconditional ones.
For a discrete random variable X with probabilities p_j on j=0,…,N, define g_X(z)=Σ(j=0 to N)p_j z^j. Suppose g_Y(z)=(1−β+βz)^N with β∈[0,1]. Find E[Y]. A:Nβ(1−β). B:Nβ. C:N(1−β). D:not expressible from N and β alone.
Your answer
Answer & solution
Official answer: B
1. Differentiate the definition of the probability generating function: g′_Y(z)=Σ(j=1 to N)j pj zj-1. Evaluating at z=1 leaves Σj pj, exactly E[Y].
2. By the chain rule, differentiating the supplied polynomial gives g′_Y(z)=Nβ(1−β+βz)N-1. At z=1 the parenthesized expression is 1, so g′_Y(1)=Nβ.
3. Therefore B is correct. The generating function also identifies a binomial distribution, whose variance is Nβ(1−β), the distractor A. The mean formula remains valid for β=0 or 1 and for the degenerate N=0 case.
A real 3×3 matrix has characteristic polynomial λ³−4λ²+aλ+30. One eigenvalue is 2. Find the largest absolute value among its eigenvalues.
Answer & solution
Official answer: 5.0
Our answer: 5
1. An eigenvalue is a root of the characteristic polynomial. Substitute λ=2: 8-16+2a+30=0, so 2a+22=0 and a=-11.
2. The polynomial becomes λ³-4λ²-11λ+30. Divide by λ-2 to obtain λ²-2λ-15, which factors as (λ-5)(λ+3). The eigenvalues are therefore 2,5,-3.
3. Take absolute values before comparing: 2,5,3. Their maximum is 5. The requested quantity is the spectral radius, not the largest magnitude coefficient or the sum of eigenvalues. As a check the roots sum to 4 and their product is -30, consistent with the polynomial.
Evaluate lim as x approaches 4 of sin(x−4)/(x−4), with angles in radians.
Answer & solution
Official answer: 1.0 : 1.0
Our answer: 1
Substitute u=x−4. The limit is lim(u→0) sin(u)/u=1, with angles in radians.
Direct substitution gives 0/0, which is indeterminate rather than the numerical answer 0. The substitution u=x−4 moves the approach point to 0 and exposes the standard sine limit. Equivalently, differentiability of sine at 0 gives sin u=u+O(u3), so the quotient approaches 1 from either side. The radians convention matters: a sine measured in degrees has derivative π/180 at zero instead.
A probability density equals 1/x^2 on [a,1] and zero outside. Find a.
Answer & solution
Official answer: 0.5 : 0.5
Our answer: 0.5
Normalize the density: integral from a to 1 of x−2 dx=1/a−1=1, yielding a=1/2. The support cannot cross zero because the integral there diverges.
A probability density must be nonnegative and have total area 1. Here its integral is [−1/x]_a1=−1+1/a, provided 0<a<1. Solving the normalization equation gives a=1/2, and substituting back yields 2−1=1. An interval containing zero would make this improper integral diverge, so algebraic manipulations across that singularity would not define a probability distribution.
Two eigenvalues of a real 3×3 matrix P are 2+i and 3, where i^2=−1. Find det(P).
Answer & solution
Official answer: 15.0 : 15.0
Our answer: 15
A real matrix has conjugate nonreal eigenvalues, so alongside 2+i it has 2−i. The determinant is their product times 3: (4+1)·3=15.
The characteristic polynomial of a real matrix has real coefficients. Therefore if a nonreal number is a root, its complex conjugate is also a root with the same multiplicity. A3×3 matrix has three eigenvalues counting multiplicity, so the missing one is fixed as 2−i. Their product is the determinant; their sum would instead give the trace. Multiplying the conjugate pair first cancels the imaginary terms and yields 5, then multiplying by 3 gives 15.
Let f be a polynomial and g=f′. If degree(f(x)+f(−x))=10, find degree(g(x)−g(−x)).
Answer & solution
Official answer: 9.0 : 9.0
Our answer: 9
f(x)+f(−x) isolates twice the even-degree part of f, whose highest degree is 10. Differentiating gives g(x)−g(−x), and the nonzero degree 10 leading term becomes degree 9. Therefore9.
Write f(x)=Σak xk. Adding f(−x) cancels odd powers and doubles even powers; a10 is therefore nonzero and all higher even coefficients vanish. The derivative difference cancels derivative terms from odd original powers and doubles those from even original powers. Even a higher odd degree of f cannot affect the answer.
For systems of m linear equations in n variables: I if m<n all such systems have a solution; II if m>n none has a solution; III if m=n there exists a system with a solution. A all three; B II and III only; C III only; D none.
Your answer
Answer & solution
Official answer: C
I fails for an inconsistent underdetermined system, for example 0x+0y=1. II fails for a consistent overdetermined system, for example x=1 and 2x=2. III holds, for example the identity coefficient matrix with any right-hand side. Thus only III, C.
Compare ranks, not just numbers of equations: solvability requires rank(A)=rank([A|b]). Having extra variables permits free variables only after consistency is established. Having extra equations can still be consistent when those equations are redundant. The existential wording in III needs only one example, such as x1=…=xn=0.
Matrix A has eigenvalues 1,2,4. Find det((A^(−1))^T).
Answer & solution
Official answer: 0.124 : 0.126
Our answer: 0.125
det(A)=1·2·4=8. Inversion reciprocates the determinant and transpose preserves it, so det((A−1)T)=1/8=0.125.
No eigenvalue is zero, so A is invertible. The eigenvalues of A inverse are reciprocals 1,1/2,1/4, whose product is 1/8. Transposition leaves the characteristic polynomial, and hence the determinant, unchanged. The decimal 0.125 belongs to the preserved official tolerance interval.
g(x)=1−x and h(x)=x/(x−1). Simplify g(h(x))/h(g(x)). A h(x)/g(x); B −1/x; C g(x)/h(x); D x/(1−x)^2.
Your answer
Answer & solution
Official answer: A
Substitute before simplifying: g(h(x))=1−x/(x−1)=−1/(x−1), whereas h(g(x))=(1−x)/((1−x)−1)=(x−1)/x. Division gives −x/(x−1)2. Option D has the same squared denominator but the wrong sign. The original composition needs x≠1 and x≠0; simplification must not silently restore excluded inputs.
Solution: For x≠0, 1, g(h(x))=−1/(x−1) and h(g(x))=(x−1)/x. Their ratio is−x/(x−1)2=h(x)/g(x), A. The exclusions are needed for the displayed compositions and ratio.
Evaluate lim as x→∞ of x^(1/x). A ∞; B 0; C 1; D not defined.
Your answer
Answer & solution
Official answer: C
A variable base with a vanishing exponent is an indeterminate form, so simply calling the exponent zero is not a valid derivation. Take natural logs: ln(x1/x)=ln(x)/x. By l'Hôpital's rule this tends to (1/x)/1=0. Continuity of exp then gives exp(0)=1.
Solution: Write x1/x=exp((ln x)/x). The exponent tends to 0 as x tends to infinity, so the limit is 1, C.
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.
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.
Which claims are false? I XML supports structured content beyond HTML's limitations; II XML is case-insensitive while HTML is case-sensitive; III XML supports user-defined tags while HTML uses predefined tags; IV XML tags need not be closed but HTML tags must be. A II only; B I only; C II and IV; D III and IV.
Your answer
Answer & solution
Official answer: C
XML distinguishes names differing in letter case: an opening <Item> cannot be closed by </item>. Every XML element must be properly closed, either by a matching end tag or empty-element syntax. Ordinary HTML syntax is case-insensitive for element names and permits certain omitted end tags. II and IV reverse these relevant distinctions; the question uses conventional HTML rather than XHTML syntax.
Solution: XML names are case-sensitive; ordinary HTML element names are case-insensitive. XML requires properly closed elements, including self-closing syntax, while HTML permits omission of certain end tags. Thus II and IV are false, C. XML supports application-defined names; HTML uses its vocabulary.
A=[[2,2],[4,9]]=LU, where L is lower triangular and both U diagonal entries equal 1. Find L's lower diagonal entry l22.
Answer & solution
Official answer: 5
Write L=[[a,0],[b,c]] and U=[[1,d],[0,1]]. Their product is [[a,ad],[b,bd+c]]. Matching entries gives a=2, 2d=2, b=4, and 4d+c=9, hence d=1,c=5. The unit diagonal is imposed on U, not L; assuming the common alternative convention of unit-diagonal L would solve a different decomposition.
Solution: Let L=[[a, 0],[b, c]] and U=[[1, d],[0, 1]]. Equating LU with[[2, 2],[4, 9]] gives a=2, d=1, b=4, c=9−4=5. Thus l22=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.
Evaluate integral from 1/π to 2/π of cos(1/x)/x² dx.
Answer & solution
Official answer: -1
Our answer: −1
Let u=1/x, so du=−dx/x². The lower x bound gives u=π and the upper gives u=π/2, reversing order. Therefore the integral is −∫ from π to π/2 cos(u)du=sin(π)−sin(π/2)=−1. The negative answer is plausible because cos(1/x) is nonpositive on this interval; losing the substitution minus sign would give the wrong sign.
Solution: An antiderivative of cos(1/x)/x² is−sin(1/x). Evaluating from 1/π to 2/π gives−sin(π/2)+sin(π)=−1.
Matrix A=[[1,4],[b,a]] has eigenvalues −1 and 7. Find (a,b). A (6,4); B (4,6); C (3,5); D (5,3).
Your answer
Answer & solution
Official answer: D
The sum of eigenvalues equals the trace, so 1+a=6 and a=5. Their product equals determinant, so a−4b=−7. Substitute a=5 to obtain b=3. As a check, the characteristic polynomial is λ²−6λ−7=(λ−7)(λ+1), recovering both given eigenvalues without computing eigenvectors.
Solution: The trace is 1+a=(−1)+7=6, so a=5. The determinant is a−4b=(−1)*7=−7, so 5−4b=−7 and b=3. Thus D.
Find the larger eigenvalue of matrix[[4, 5], [2, 1]].
Answer & solution
Official answer: 6
For[[4, 5], [2, 1]], the characteristic polynomial is λ²−5λ−6=(λ−6)(λ+1). The larger eigenvalue is 6.
Eigenvalues satisfy det(A−λI)=0. Here (4−λ)(1−λ)−10=λ²−5λ−6. Factor it as(λ−6)(λ+1), giving 6 and−1. Their sum 5 matches the matrix trace and their product−6 matches its determinant, providing independent consistency checks. The larger real eigenvalue is 6.
An SRS should avoid discussing which? A user-interface issues; B nonfunctional requirements; C design specification; D third-party software interfaces.
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.
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.
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.
A root-finding procedure stores successive estimates xa, xb and fb=f(xb). Each iteration computes xt, then sets xa=xb, xb=xt, fb=f(xb). Identify the secant update among the displayed alternatives. The correct candidate C is xb−(xb−xa)fb/[fb−f(xa)]. Options: A xb−(fb−f(xa))fb/(xb−xa); B xa−(fa−f(xa))fa/(xb−xa); C xb−(xb−xa)fb/(fb−f(xa)); D xa−(xb−xa)fa/(fb−f(xa)). The procedure does not define fa.
Your answer
Answer & solution
Official answer: C
The secant through(xa, f(xa)) and(xb, fb) has slope(fb−f(xa))/(xb−xa). Setting its linear approximation to zero gives xt=xb−(xb−xa)*fb/(fb−f(xa)), option C. This uses quantities defined by the procedure and requires a nonzero denominator. An equivalent formula anchored at xa would require fa=f(xa), but fa is not initialized in the displayed procedure.
The secant line through (xa, f(xa)) and (xb, fb) has slope (fb−f(xa))/(xb−xa). Its x-intercept solves 0=fb+slope·(xt−xb). Rearranging gives xt=xb−fb(xb−xa)/(fb−f(xa)), exactly C. The stored fb is the current endpoint value, so replacing its numerator by an unrelated function value would not describe this line. The denominator must be nonzero; as with ordinary secant iteration, convergence is not guaranteed for arbitrary starting points.
For f(x)=x^(−1/3) on −1≤x≤1, assess I continuity throughout the interval, II unboundedness, and III nonzero finite area between the curve and x-axis. Options: A II only; B III only; C II and III only; D I, II and III.
Your answer
Answer & solution
Official answer: C
For real x, x−1/3=1/cuberoot(x) is undefined at 0 and unbounded near it, so I is false and II true. The geometric area is the improper integral 2*integral(0..1)x−1/3dx=2*(3/2)=3, positive and finite. Thus II and III, C; signed cancellation across zero would not be the geometric area.
At x=0 the function is undefined and its magnitude grows without bound as x approaches zero, so I is false and II is true. Geometric area uses absolute value, not cancellation of the odd function’s signed integral. On the positive half, ∫₀¹ x−1/3dx=[(3/2)x2/3]₀¹=3/2, finite despite the singularity. The negative half contributes the same area, for total 3. Therefore III is true. A divergent function value at one endpoint does not automatically make an improper integral diverge.
Start with matrix [[3, 4, 45], [7, 9, 105], [13, 2, 195]]. Add row 3 to row 2, then subtract column 3 from column 1. Find the determinant of the resulting matrix.
Answer & solution
Official answer: 0
The third column is 15 times the first: 45=15*3, 105=15*7, 195=15*13. The original determinant is therefore 0. Adding one row to another and subtracting one column from another preserve determinant, so the resulting determinant remains 0.
Before doing arithmetic, observe that the third column is exactly 15 times the first: 45=15·3, 105=15·7 and 195=15·13. Hence the original determinant is zero. Adding one row to another does not change a determinant; subtracting one column from another also preserves it. After the specified column operation, column 1 is −14 times its former value and remains proportional to column 3, so dependence remains directly visible. The requested determinant is therefore 0 without expanding nine cofactors.
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.
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.
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.
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.
A server stores ten pages at http://www.yourname.com/var.html, with var=1,...,10. Page W1 (var=1) is saved locally for editing/testing, while the other pages stay on the server. W1 contains relative links of the form “var.html”. Which addition makes all relative links resolve to the server pages? Printed options (including their malformed attribute punctuation): (A) <a href: “http://www.yourname.com/”, href: “...var.html”>; (B) <base href: “http://www.yourname.com/”>; (C) <a href: “http://www.yourname.com/”>; (D) <base href: “http://www.yourname.com/”, range: “...var.html”>. Distinguish the intended element from valid HTML syntax.
Your answer
Answer & solution
Official answer: B
Our answer: B conceptually, after fixing HTML attribute syntax
1. A base element sets the base URL used to resolve relative links, so the intended B is <base href="http://www.yourname.com/">.
2. Anchor elements only make individual links. The printed options use href: rather than href=; literal B therefore is not the required valid HTML attribute assignment. Retain the official conceptual answer with the syntax correction explicit.
The matrix A has rows (1,−1,2), (0,1,0), (1,2,1). One eigenvalue is 1. Which set gives all eigenvectors for that eigenvalue? Each option uses nonzero real α: (A) {α(4,2,1)}; (B) {α(−4,2,1)}; (C) {α(√2,0,1)}; (D) {α(−√2,0,1)}.
Your answer
Answer & solution
Official answer: B
1. Explicitly, A−I has rows (0,−1,2), (0,0,0), (1,2,0). Its middle equation imposes no extra constraint. Taking the free coordinate z=t gives v=t(−4,2,1); exclude t=0 because an eigenvector must be nonzero.
2. Solving(A−I)v=0 gives−y+2z=0 and x+2y=0. Therefore y=2z, x=−4z, so the nonzero eigenvectors are scalar multiples of(−4, 2, 1), B.
Evaluate lim as x→∞ of (1+x²) raised to the power e^(−x). Options: (A) 0; (B) 1/2; (C) 1; (D) ∞.
Your answer
Answer & solution
Official answer: C
1. This is a ∞⁰ form, so neither the base nor the exponent alone determines the answer. Exponential growth dominates logarithmic growth: ln(1+x²)/ex tends to 0. Continuity of exp then gives exp(0)=1.
2. Take logarithms: ln[(1+x²)^(e−x)]=ln(1+x²)/ex→0. Exponentiating gives limit 1, C.
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.
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.
A motorbike starts from rest. Its measured velocities v in km/min at times t in minutes are t=(2,4,6,8,10,12,14,16,18,20), v=(10,18,25,29,32,20,11,5,2,0). Thus the initial point is (t,v)=(0,0). Approximate distance traveled in the first 20 minutes using composite Simpson's 1/3 rule and round to two decimal places.
Answer & solution
Official answer: 308 to 310
Our answer: 309.33
1. Starting from rest supplies v(0)=0.
2. With ten equal subintervals of width h=2, composite Simpson’s rule uses endpoint weights 1, odd-index weights 4, and even-index weights 2. The odd-index velocity sum is 10+25+32+11+2=80; the even-index sum is 18+29+20+5=72. Hence distance ≈ (2/3)[0+0+4·80+2·72]=(2/3)·464=309.333333 km, rounded to 309.33 km. This is inside the official 308–310 interval. The baseline derived_answer 308.67 was an arithmetic error. The arithmetic correction to 309.33 was independently checked against the source table; the official scoring range is unchanged.
For real coefficients p,q,r, the homogeneous system px+qy+rz=0; qx+ry+pz=0; rx+py+qz=0 has a nontrivial solution. Which condition must hold? (A) p−q+r=0 or p=q=−r; (B) p+q−r=0 or p=−q=r; (C) p+q+r=0 or p=q=r; (D) p−q+r=0 or p=−q=−r. The real-coefficient convention is needed for the sum-of-squares characterization.
Your answer
Answer & solution
Official answer: C
1. A nontrivial homogeneous solution requires determinant zero.
2. The determinant is minus(p³+q³+r³−3pqr), which factors as −(p+q+r)((p−q)²+(q−r)²+(r−p)²)/2. Over real coefficients this vanishes exactly when p+q+r=0 or p=q=r, C. The real-domain convention matters for the sum-of-squares implication.
For every nonzero real x, a function f satisfies a f(x)+b f(1/x)=1/x−25, where a≠b. Find ∫ from 1 to 2 of f(x) dx. Options: (A) [a(ln2−25)+47b/2]/(a²−b²); (B) [a(2ln2−25)−47b/2]/(a²−b²); (C) [a(2ln2−25)+47b/2]/(a²−b²); (D) [a(ln2−25)−47b/2]/(a²−b²). Explain why the denominator is nonzero for an existing such function.
Your answer
Answer & solution
Official answer: A
1. Replace x by 1/x to obtain a f(1/x)+b f(x)=x−25.
2. Eliminate f(1/x): f(x)=[a/x−bx−25a+25b]/(a²−b²). Integrating from 1 to 2 yields[a(ln2−25)+(47/2)b]/(a²−b²), A. The source states a≠b. Existence of f at x=1 also forces a+b≠0, since (a+b)f(1)=−24. Together these ensure a²−b² is nonzero.
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.
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.
A unit-length stick is cut once at a uniformly random point. Find the expected length of the shorter piece.
Answer & solution
Official answer: 0.24 to 0.27
Our answer: 0.25
1. Method and setup. Let X be the cut position measured from the left endpoint. The two lengths are X and 1−X. The shorter length is X on [0,1/2] and 1−X on [1/2,1]; the two halves contribute equally to the expectation.
2. Work through the result and its assumptions. For a uniform cut X on[0, 1], the shorter length is min(X, 1−X). Symmetry gives E=2∫₀1/2x dx=1/4, within the accepted range.
Find the number of solutions of 3x+2y=1, 4x+7z=1, x+y+z=3, and x−2y+7z=0.
Answer & solution
Official answer: 1
1. Method and setup. Eliminate y and z using y=(1−3x)/2 and z=(1−4x)/7. Substitution into x+y+z=3 gives (9−15x)/14=3, hence x=−11/5. These three equations uniquely determine all variables; the fourth must then be checked for consistency, not treated as an automatic contradiction.
2. Work through the result and its assumptions. The first three equations give x=−11/5, y=19/5, z=7/5 uniquely. Substitution into the fourth gives(−11−38+49)/5=0. Hence the consistent system has exactly one solution.
For a real symmetric positive-definite 4×4 matrix, what is the dot product of eigenvectors associated with any two distinct eigenvalues?
Answer & solution
Official answer: 0
1. Method and setup. Write Au=λu and Av=μv. Symmetry means Aᵀ=A, allowing the matrix to move from one side of an inner product to the other. Positive definiteness ensures positive eigenvalues but is not needed for the orthogonality conclusion; symmetry and λ≠μ are enough.
2. Work through the result and its assumptions. For symmetric A, eigenvectors u, v with distinct eigenvalues λ,μ satisfy λuᵀv=(Au)ᵀv=uᵀAv=μuᵀv. Therefore(λ−μ)uᵀv=0 and their dot product is 0.
For θ∈[π/6,π/3], let f(θ) be the determinant with rows (sin θ, cos θ, tan θ), (sin(π/6),cos(π/6),tan(π/6)), and (sin(π/3),cos(π/3),tan(π/3)). I: There exists θ strictly between the endpoints with f′(θ)=0. II: There exists θ strictly between the endpoints with f′(θ)≠0. Which are true? A: I only. B: II only. C: both. D: neither.
Your answer
Answer & solution
Official answer: C
1. Method and setup. The tangent function has no pole on this interval, so the determinant is continuous on the closed interval and differentiable inside it. At either endpoint two rows coincide, forcing determinant zero. Rolle’s theorem proves I. To establish II, check an interior value is nonzero; endpoint equality alone would not exclude the identically zero function.
2. Work through the result and its assumptions. The determinant vanishes at θ=π/6 and π/3 because two rows coincide, so Rolle’s theorem guarantees an interior derivative zero. It is not identically zero: direct expansion gives f(π/4)=√2(1−1/√3)−1/2≠0. The mean-value theorem between an endpoint and π/4 gives another interior point with nonzero derivative. Both I and II hold, C.
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.
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.
For f(x)=x sin x, the identity f″(x)+f(x)+t cos x=0 holds. Find constant t.
Answer & solution
Official answer: -2 to -2
Our answer: −2
1. Method and setup. Differentiate using the product rule twice: first differentiate both x and sin x; then differentiate both terms of the result. Adding f to f″ cancels the x sin x terms. The remaining coefficient of cos x must be zero for the identity to hold for all x.
2. Work through the result and its assumptions. For f=x sin x, f′=sin x+x cos x and f″=2cos x−x sin x. Therefore f″+f+t cos x=(2+t)cos x vanishes identically exactly when t=−2.
A continuous function f on [0,2] satisfies f(0)=f(2)=−1 and f(1)=1. Which must hold? A: Some y∈(0,1) satisfies f(y)=f(y+1). B: Every y∈(0,1) satisfies f(y)=f(2−y). C: The maximum on (0,2) is 1. D: Some y∈(0,1) satisfies f(y)=−f(2−y). The source requests one choice.
Your answer
Answer & solution
Official answer: A
Our answer: Both A and D are guaranteed
1. Method and setup. Turn each claimed equality into a zero of a continuous auxiliary function. A difference handles A, while a sum handles D. Opposite endpoint signs force an interior zero by the intermediate value theorem. Continuity does not impose mirror symmetry or prevent values greater than 1 between the given sample points.
2. Work through the result and its assumptions. For A, define h(y)=f(y)−f(y+1). It is continuous on[0, 1], with h(0)=−2 and h(1)=2, so an interior zero exists. But D also follows: g(y)=f(y)+f(2−y) is continuous, g(0)=−2 and g(1)=2, so an interior zero gives f(y)=−f(2−y). Thus both A and D are necessarily true although the official single-choice key is A. This is a literal nonunique-answer discrepancy, not an assumed symmetry of f.
The matrix A is the outer product of column vector (2,-4,7)ᵀ and row vector (1,9,5). Find det(A).
Answer & solution
Official answer: 0
1. Set up the reasoning. Expand the product conceptually as rows (2,18,10), (-4,-36,-20), and (7,63,35). Each row is a scalar multiple of (1,9,5).
2. Derive the result. The matrix is the outer product of a 3-vector and a row3-vector, so its rank is 1. A3×3 rank-deficient matrix has determinant 0.
3. Check the interpretation. A determinant is zero whenever rows are linearly dependent. There is no need to expand nine cofactors, and det(uvᵀ) is not a product of ordinary determinants of the nonsquare factors.
A nonzero cubic polynomial f(x) has roots 1, 2, and 3. Which must hold? A f(0)f(4)<0; B f(0)f(4)>0; C f(0)+f(4)>0; D f(0)+f(4)<0.
Your answer
Answer & solution
Official answer: A
1. Set up the reasoning. All three roots exhaust the degree, so f(x)=c(x-1)(x-2)(x-3) for a nonzero real leading coefficient c. Keep c symbolic because its sign is unspecified.
2. Derive the result. Write f(x)=c(x−1)(x−2)(x−3), where real c≠0. Then f(0)=−6c and f(4)=6c, whose product is−36c²<0. Their sum is 0, so only A is forced.
3. Check the interpretation. The two endpoint values have opposite signs regardless of c, but their sum is exactly zero. Thus neither positive-sum nor negative-sum statements can be forced by the roots alone.
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.
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.
Newton-Raphson starts at x0=2 for f(x)=0.75x³-2x²-2x+4=0. Consider I x3=0; II the iteration converges to a root in finitely many steps. Which holds? A only I; B only II; C both; D neither.
Your answer
Answer & solution
Official answer: A
1. Set up the reasoning. Use x(k+1)=xk-f(xk)/f′(xk), where f′(x)=2.25x²-4x-2. Evaluate exact values at the first two iterates to detect a possible cycle.
2. Derive the result. Let f(x)=0.75x³−2x²−2x+4, with f′(x)=2.25x²−4x−2. At x=2, f=−2 and f′=−1, so the next iterate is 0. At0, f=4 and f′=−2, so the next is 2. The sequence cycles 2, 0, 2, 0,...; x3=0 but it never converges to a root. Only I holds, A.
3. Check the interpretation. At x=2 the next point is 0, and at x=0 the next point is 2. Neither is a root because their function values are -2 and 4. Returning to the same point after two iterations establishes repetition forever, not convergence.
Find the product of the nonzero eigenvalues of the matrix with rows (1,0,0,0,1), (0,1,1,1,0), (0,1,1,1,0), (0,1,1,1,0), (1,0,0,0,1).
Answer & solution
Official answer: 6
1. Set up the reasoning. Reorder the coordinate indices as 1,5,2,3,4, applying the same permutation to rows and columns. This similarity transformation preserves eigenvalues and reveals two all-ones diagonal blocks.
2. Derive the result. Permuting coordinates to group indices 1, 5 and 2, 3, 4 makes the matrix block diagonal with all-one blocks J2 and J3. Their spectra are{2, 0} and{3, 0, 0}. The two nonzero eigenvalues multiply to 6.
3. Check the interpretation. An m×m all-ones block has eigenvalue m on the all-ones vector and eigenvalue zero on vectors whose coordinates sum to zero. The full matrix's determinant is zero, but the requested product excludes those zero eigenvalues.
For an n×n matrix with only real eigenvalues, which assertion is always true? A Positive trace and negative determinant imply at least one negative eigenvalue. B Positive trace implies all eigenvalues positive. C Positive determinant implies all eigenvalues positive. D Positive trace-times-determinant implies all eigenvalues positive.
Your answer
Answer & solution
Official answer: A
Step 1: The trace equals the eigenvalue sum, while the determinant equals their product, including algebraic multiplicities. Step 2: A negative product of real numbers requires a negative factor; none can be zero. Thus A is true, and its positive-trace condition is not even needed for this conclusion. Step 3: A positive sum permits negative terms, and a positive product permits an even number of negative factors. For example diag(3,−1,−1) has trace 1, determinant 3 and positive product of trace and determinant, yet two negative eigenvalues. It refutes B, C and D simultaneously.
V1 and V2 are four-dimensional subspaces of a six-dimensional vector space V. What is the smallest possible dimension of V1∩V2?
Answer & solution
Official answer: 2
Step 1: Use dim(V1+V2)=dim V1+dim V2−dim(V1∩V2). Step 2: Since V1+V2 is a subspace of V, its dimension is at most 6, so the intersection dimension is at least 4+4−6=2. Step 3: Establish attainability: for a basis e1,…,e6 of V, take V1=span(e1,e2,e3,e4) and V2=span(e3,e4,e5,e6). Their intersection is span(e3,e4), of dimension 2. Therefore the minimum is exactly 2, not merely a lower bound.
If the definite integral from 0 to 2π of |x sin x| dx equals kπ, find k.
Answer & solution
Official answer: 4
Step 1: On the integration interval x is nonnegative; sin x is nonnegative on [0,π] and nonpositive on [π,2π]. Thus split the absolute-value integral as ∫₀^π x sin x dx−∫π2π x sin x dx. Step 2: Integration by parts gives the antiderivative −x cos x+sin x. The first ordinary integral is π, and the second is −3π. Step 3: The absolute areas add to π+3π=4π, so k=4. Integrating without splitting the absolute value would incorrectly allow cancellation.
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.
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.
For K=∫ₐᵇ x² dx, evaluate statements I: trapezoidal-rule K is always at least the exact integral; II: Simpson-rule K is always exact. A I only; B II only; C both; D neither.
Your answer
Answer & solution
Official answer: C
Our answer: C under the usual a≤b interval convention
Step 1: On an ordinary forward interval a≤b, x² is convex because its second derivative is 2. Every trapezoidal chord lies on or above the curve, so summing trapezoid areas overestimates the integral; I holds. Step 2: Simpson’s rule integrates every polynomial of degree at most three exactly when its partition meets the rule's requirements. Since x² has degree two, II holds as well. Step 3: The intended answer is C. Preserve the implicit ordering qualification: reversing integration limits reverses signed errors, so I's inequality is not valid for arbitrary a>b. The source says only that a and b are given.
Evaluate ∫₀^π x² cos x dx. A −2π; B π; C −π; D 2π.
Your answer
Answer & solution
Official answer: A
Step 1: Integrate by parts with u=x² and dv=cos x dx: the integral is [x² sin x]₀^π−2∫₀^π x sin x dx. The boundary term is zero. Step 2: For the remaining integral, another integration by parts gives ∫x sin x dx=−x cos x+sin x. Between 0 and π this is π. Step 3: Therefore the original definite integral is −2π, A. The negative result is possible because cos x is negative over the second half and the x² weight is larger there.
Let Δ have rows (1, x, x²),(1, y, y²),(1, z, z²). Which determinant is not identically Δ? A rows (1, x(x+1), x+1),(1, y(y+1), y+1),(1, z(z+1), z+1). B rows (1, x+1, x²+1),(1, y+1, y²+1),(1, z+1, z²+1). C rows (0, x−y, x²−y²),(0, y−z, y²−z²),(1, z, z²). D rows (2, x+y, x²+y²),(2, y+z, y²+z²),(1, z, z²).
Your answer
Answer & solution
Official answer: A
Let the original columns be u, v, w. Option A has columns u, v+w, u+v. Multilinearity removes repeated-column terms and leaves det(u, w, v)=−det(u, v, w). The other options use determinant-preserving row/column additions or differences. Thus A is the expression not identically equal to the original determinant. If the original determinant happens to be 0, its negative also equals it; the question is understood as asking for a general identity, not pointwise inequality for every possible entry.
For A, the new columns are u, v+w, u+v, where the old columns are u=(1, 1, 1), v=(x, y, z), w=(x², y², z²). Expanding in columns leaves only det(u, w, v), because every other term repeats u or v. One swap of v and w changes the determinant sign. B merely adds column 1 to columns 2 and 3. C replaces row1 by r1−r2 and row2 by r2−r3, with row3 retained; D uses r1+r2, r2+r3, r3. The respective row-transformation matrices for C and D are triangular with diagonal 1, so both preserve Δ. A is the failed general identity, although −Δ=Δ at singular instances.
Match P service-oriented computing, Q heterogeneous communicating systems, R information representation, S process description to 1 interoperability, 2 BPMN, 3 publish-find-bind, 4 XML. A P1 Q2 R3 S4; B P3 Q4 R2 S1; C P3 Q1 R4 S2; D P4 Q3 R2 S1.
Your answer
Answer & solution
Official answer: C
Service-oriented computing uses publish/find/bind interactions, giving P→3. Heterogeneous systems require interoperability, Q→1. Neutral data representation is provided by XML, R→4. Business-process composition corresponds to BPMN, S→2. This mapping is C.
The service workflow publishes a description, lets a client find it, then binds the client to the provider, fixing P→3. Interoperability is the ability of heterogeneous systems to communicate, fixing Q→1. XML is a structured information representation, giving R→4. BPMN explicitly denotes Business Process Model and Notation, giving S→2. Checking these four associations against the complete choices leaves C, not a mapping chosen from only one match.
Which function is continuous at 3? A f(3)=2, f(x)=x−1 for x>3, f(x)=(x+3)/3 for x<3. B f(3)=4, f(x)=8−x otherwise. C f(x)=x+3 for x≤3 and x−4 for x>3. D f(x)=1/(x³−27) for x≠3, with no value supplied at 3.
Your answer
Answer & solution
Official answer: A
For option A, the left limit is(3+3)/3=2, the right limit is 3−1=2, and f(3)=2. All agree. B has limit 5 but value 4; C has unequal one-sided limits 6 and−1; D is undefined at 3. Hence A.
Continuity at a point needs three things: the function value must exist, both one-sided limits must agree, and their common value must equal the function value. A satisfies all three with value 2. B approaches 5 but assigns 4, a removable discontinuity. C approaches 6 from the left and−1 from the right, a jump. D provides no finite value at 3 and its denominator vanishes there, so it cannot meet the continuity test as given.
For x=0,.3,.6,.9, 1.2, 1.5, 1.8, 2.1, 2.4, 2.7, 3.0, the ordinates are 0,.09,.36,.81, 1.44, 2.25, 3.24, 4.41, 5.76, 7.29, 9.00. Approximate the integral from 0 to 3 using the trapezoidal rule. A8.983, B9.003, C9.017, D9.045.
Your answer
Answer & solution
Official answer: D
The spacing is h=.3. The nine interior ordinates sum to 25.65. The composite trapezoidal estimate is .3[(0+9)/2+25.65]=.3×30.15=9.045, D.
Each interval contributes its width times the average of its two endpoint heights. On adding ten intervals of equal width.3, each interior ordinate is counted twice inside the half-weighted sum, while endpoints appear once. Thus use .3[(f(0)+f(3))/2+Σ interior values]. The interior sum .09+.36+.81+1.44+2.25+3.24+4.41+5.76+7.29 is 25.65, giving 9.045. Although these ordinates equal x², the question asks the trapezoidal estimate, not the exact integral 9.
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.
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.
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
Your answer
Answer & solution
Official answer: D
On the restricted domain [π/4, 7π/4], the left endpoint π/4 is a one-sided local minimum because sin x increases immediately to its right. The interior stationary points satisfy cos x=0: π/2 is a maximum and 3π/2 is a minimum. The right endpoint is not a minimum because sin x increases toward it from the left. Thus the restricted-domain convention yields two local minima, π/4 and 3π/2, D. If local extrema are defined to exclude endpoints, only the interior minimum remains; the official key uses the former convention.
Check: A local minimum on a domain means comparison with nearby points belonging to that domain. At the left endpoint there are no allowed comparison points to its left. At 7π/4 there are smaller nearby values to the left, so it is not a minimum.
Similar questions1 more → · asked again: GATE 2025 Set 1, Q41
Eigenvalues of a high matrix power
Linear Algebra
Tap to enlarge
Let A=[[1,1],[1,−1]]. Find the eigenvalues of A^19. (A) ±1024 (B) ±1024√2 (C) ±4√2 (D) ±512√2.
Your answer
Answer & solution
Official answer: D
For A=[[1, 1],[1,−1]], direct multiplication gives A²=2I. Its eigenvalues are √2 and −√2, and powering A raises each eigenvalue to the nineteenth power. Therefore they are ±(√2)19=±29√2=±512√2. Hence D.
Check: The characteristic polynomial is det(A−λI)=(1−λ)(−1−λ)−1=λ²−2. Also A19=(A²)9A=512A, so multiplying A’s two eigenvalues by 512 gives the same result without repeated matrix multiplication.
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
Your answer
Answer & solution
Official answer: B
Let f(x)=x⁴−x³−x²−4. Initially f(1)=−5 and f(9)>0. The first midpoint is 5 with f(5)=471>0, leaving [1, 5]. The second is 3 with f(3)=41>0, leaving [1, 3]. The third is 2 with f(2)=16−8−4−4=0. Therefore an exact root is found after three midpoint evaluations, B; no unspecified tolerance is needed.
Check: The sign checks select the half-interval containing a root because f is continuous. The successive midpoint sequence is 5,3,2; counting the initial endpoints as iterations would miscount the actual bisection steps.
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
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.
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
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.
Which action is NOT supported by pure HTML pages, without server-side or client-side scripting?
(A) Embed web objects from different sites in one page (B) Automatically refresh a page after a specified interval (C) Automatically redirect to another page upon download (D) Display the client's current time as part of the page
Your answer
Answer & solution
Official answer: D
HTML can embed remote objects and use refresh metadata for timed refresh or redirection. It has no mechanism by itself to read and display the client’s current clock time. That normally requires scripting or another active component, so D.
A static timestamp written into HTML is not the client's current time. Remote image/object URLs satisfy A, and a refresh directive can reload a document or navigate to a specified URL, satisfying B and C in the intended browser model. Reading the local clock and inserting its live value requires computation beyond HTML markup, for example JavaScript Date and DOM updates. That distinction between document description and active computation selects D.
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
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.
For i=√(-1), evaluate the definite integral from 0 to π/2 of (cos x+i sin x)/(cos x-i sin x) dx.
(A) 0 (B) 2 (C) -i (D) i
Your answer
Answer & solution
Official answer: D
Euler’s formula gives(cos x+i sin x)/(cos x−i sin x)=e2ix. Integrating from 0 toπ/2 gives[e2ix/(2i)]_0π/2=(−1−1)/(2i)=i, D.
The denominator e-ix is never zero for real x, so the quotient simplification is valid throughout the interval. An alternative real-imaginary check is to integrate cos(2x)+i sin(2x). The cosine integral is [sin(2x)/2] from 0 to π/2, hence zero; the sine integral is [-cos(2x)/2] over the same limits, hence one. The result therefore has real part zero and imaginary part one, confirming the sign of i.
Find the eigenvalues of the matrix with rows (1,2,3), (0,4,7), (0,0,3).
(A) 1,4,3 (B) 3,7,3 (C) 7,3,2 (D) 1,2,3
Your answer
Answer & solution
Official answer: A
For an upper triangular matrix, det(A−λI) is the product of diagonal entries minus λ. Here it is(1−λ)(4−λ)(3−λ), so the eigenvalues are 1, 4, 3, A.
Subtracting λI preserves triangular form. Expanding the determinant along the first column gives (1-λ) times the determinant of the lower-right 2×2 triangular block, namely (4-λ)(3-λ). Eigenvalues make this characteristic determinant zero. Off-diagonal entries 2,3,7 can affect eigenvectors but not these diagonal roots. The trace check gives 1+4+3=8, equal to the sum of the diagonal entries, and the determinant check gives product 12.
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?
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.
Apply one Newton–Raphson iteration to x²−13=0, starting from x₀=3.5. What is the resulting approximation? Options: (A) 3.575; (B) 3.677; (C) 3.667; (D) 3.607.
Your answer
Answer & solution
Answer: D (no official key was published)
For f(x)=x²−13, Newton’s update is x₁=x₀−(x₀²−13)/(2x₀). With x₀=3.5, x₁=3.5−(12.25−13)/7=3.607142857…, which rounds to 3.607, D. This is one iteration, not the exact square root.
Newton’s method replaces the curve locally by its tangent: f(x₀)+f′(x₀)(x₁−x₀)=0. Here f′(x)=2x and the negative residual f(3.5)=−0.75 makes the update increase x by 0.75/7. As a reasonableness check, 3.6²=12.96<13 and 3.61²=13.0321>13, so 3.607 lies in the expected interval.
Evaluate lim as n→∞ of (1−1/n)^(2n). Options: (A) 0; (B) e^(−2); (C) e^(−1/2); (D) 1.
Your answer
Answer & solution
Answer: B (no official key was published)
Let Ln=(1−1/n)2n. Its logarithm is 2n log(1−1/n), which tends to −2 since log(1−x)/x tends to −1 as x tends to zero. Exponentiating yields e−2, option B.
A shorter route is the standard limit (1−1/n)n→e−1; squaring it gives e−2. It is incorrect to replace the base by its limit 1 first and conclude 1: the exponent also tends to infinity, producing the indeterminate form 1^∞. Taking logarithms resolves that interaction.
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.
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.
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.
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.
The matrix A=[[2,3],[x,y]] has eigenvalues 4 and 8. Find x,y. Options: (A) x=4,y=10; (B) x=5,y=8; (C) x=−3,y=9; (D) x=−4,y=10.
Your answer
Answer & solution
Answer: D (no official key was published)
The trace equals the eigenvalue sum: 2+y=4+8=12, giving y=10. The determinant equals the eigenvalue product: 2y−3x=4·8=32. Substituting y=10 gives x=−4. Thus x=−4,y=10, option D.
Trace and determinant avoid solving the characteristic polynomial from scratch. Equivalently det(λI−A)=λ²−(2+y)λ+(2y−3x), and the desired polynomial is (λ−4)(λ−8)=λ²−12λ+32. Matching coefficients gives the same two linear equations. Substituting x=−4,y=10 verifies both invariants.
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.
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.
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.
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.
An HTML table has three rows. Row 1 contains ab with rowspan 2 and cd with colspan 2. Row 2 contains ef and gh with rowspan 2. Row 3 contains ik with colspan 2. Count visible cell regions per column and per row: A (2, 2, 3)/(2, 3, 2); B (2, 2, 3)/(2, 2, 3); C (2, 3, 2)/(2, 3, 2); D (2, 3, 2)/(2, 2, 3).
Your answer
Answer & solution
Answer: C (no official key was published)
The logical 3×3 grid is [ab, cd, cd], [ab, ef, gh], [ik, ik, gh]. Counting distinct vertically separated cells in each column gives 2, 3, 2. Counting distinct horizontally separated cells in each row likewise gives 2, 3, 2. Thus C. These counts refer to the visible cell regions after spans, not the number of underlying grid coordinates.
Expand the spans onto a three-by-three logical grid: row 1 ab, cd, cd; row 2 ab, ef, gh; row 3 ik, ik, gh. In column 1 the first two slots form one ab cell and the last is ik, giving 2 regions. Column 2 has cd, ef, ik, giving 3. Column 3 has cd then a two-row gh, giving 2. The same horizontal counting gives 2, 3, 2 by row. The question counts distinct drawn regions, not the three underlying grid positions in each direction.
Evaluate ∫₀^(π/4)(1−tan x)/(1+tan x) dx. A 0; B 1; C ln2; D(1/2)ln2.
Your answer
Answer & solution
Answer: D (no official key was published)
The integrand equals tan(π/4−x). Substitute u=π/4−x to obtain the integral of tan u from 0 toπ/4. Its antiderivative is−ln(cos u), giving−ln(1/√2)=½ln2, D.
Use tan(α−β)=(tanα−tanβ)/(1+tanαtanβ) with α=π/4. The integrand becomes tan(π/4−x). Set u=π/4−x; reversing the bounds cancels the minus from dx, leaving ∫₀π/4tan u du. The antiderivative −ln(cos u) evaluates to−ln(1/√2)+ln1=(1/2)ln2. The interval contains no pole, so the substitution is valid throughout.
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.
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.
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.
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.
1. Divide both terms by x, obtaining (1−sin(x)/x)/(1+cos(x)/x). 2. Since |sin x|≤1 and |cos x|≤1, both divided trigonometric terms tend to zero by squeezing. 3. The denominator tends to 1, not zero, so the quotient limit is 1: A.
The equations x₁+x₂+2x₃=1, x₁+2x₂+3x₃=2, x₁+4x₂+αx₃=4 have a unique solution. The only possible value(s) of α is/are:
(A) 0 (B) Either 0 or 1 (C) One of 0,1,−1 (D) Any real number
Your answer
Answer & solution
Answer: All real α except 5; no exact listed option (no official key was published)
1. Subtract the first equation from the second and third. The remaining coefficient rows are(0,1,1) and(0,3,α−2), so the determinant is α−5. 2. A unique solution exists exactly when α≠5. At α=5 the third reduced equation is three times the second, including its right side, so solutions are nonunique. 3. None of the printed choices gives the exhaustive set R minus{5}:0,1,−1 all work but are not the only possibilities, while any real number incorrectly includes 5. No official key has been located; this is a source/options discrepancy, not a claimed official-key correction.
What minimum number of equal subintervals is needed to approximate ∫₁² xe^x dx with error at most (1/3)×10^−6 using the trapezoidal rule?
(A) 1000e (B) 1000 (C) 100e (D) 100
Your answer
Answer & solution
Answer: A is the conventional sufficient bound; literal minimum is not represented (no official key was published)
1. For f(x)=xex on[1,2], f″(x)=(x+2)ex is increasing, with maximum 4e². The composite trapezoidal bound is |En|≤4e²/(12n²)=e²/(3n²). Requiring this upper bound≤10−6/3 gives n≥1000e, corresponding to A; an integer subdivision count would be ceil(1000e)=2719. 2. This is a sufficient worst-derivative bound, not the exact minimum demanded by the wording. Direct high-precision evaluation gives error 3.33057431918×10−7 at n=2046, already within the tolerance and substantially below 2719. At n=2045 the error is 3.33383240096×10−7. 3. Thus A describes the standard error-bound calculation, not a literal minimal integer answer. No official key is asserted.
Similar questions5 more → · asked again: GATE 2002, Q2.15
Newton iteration for a square root
Numerical Methods
Tap to enlarge
The Newton–Raphson iteration xₙ₊₁=(xₙ+R/xₙ)/2 computes which quantity?
(A) Square of R (B) Reciprocal of R (C) Square root of R (D) Logarithm of R
Your answer
Answer & solution
Answer: C (no official key was published)
1. Newton iteration for f(x)=0 is x_next=x−f(x)/f′(x). 2. Set f(x)=x²−R; then f′(x)=2x and x_next=x−(x²−R)/(2x)=(x+R/x)/2. 3. Thus the fixed point satisfies x²=R. For R>0 and positive initial x, it computes the positive square root, C; zero starting values are invalid.
An extremum is a local minimum or maximum. How many distinct extrema does 3x⁴−16x³+24x²+37 have?
(A) 0 (B) 1 (C) 2 (D) 3
Your answer
Answer & solution
Answer: B (no official key was published)
1. Differentiate: f′(x)=12x³−48x²+48x=12x(x−2)². Stationary points are 0 and 2. 2. The squared factor is nonnegative. The derivative is negative before 0 and positive after 0 except where it vanishes at 2. Hence 0 is a local minimum. 3. At 2 the derivative remains positive on both sides, so there is no extremum there. The count is one, B.
How many of these matrices have eigenvalue 1? [[1,0],[0,0]], [[0,1],[0,0]], [[1,−1],[1,1]], [[−1,0],[1,−1]].
(A) One (B) Two (C) Three (D) Four
Your answer
Answer & solution
Answer: A (no official key was published)
1. A matrix has eigenvalue 1 exactly when M−I is singular. 2. Subtract the identity from the four matrices and compute their determinants. In order they are 0,1,1,4. 3. Only the first determinant vanishes, giving one matrix, A. The remaining eigenvalues need not be computed.
X is normal with mean +1 and variance 4. Y is normal with mean −1 and unknown variance. If P(X≤−1)=P(Y≥2), what is the standard deviation of Y?
(A) 3 (B) 2 (C) √2 (D) 1
Your answer
Answer & solution
Answer: A (no official key was published)
1. X has standard deviation √4=2. Standardization gives P(X≤−1)=Φ((−1−1)/2)=Φ(−1). 2. Write Y’s positive standard deviation as s. Then P(Y≥2)=1−Φ((2+1)/s)=Φ(−3/s), using normal symmetry. 3. Φ is strictly increasing, so equality implies −3/s=−1 and s=3, A. The requested quantity is standard deviation, not variance 9.
Similar questions1 more → · asked again: GATE 1998, Q1.4
Continuity and differentiability of absolute value
Calculus
Tap to enlarge
For f(x)=|x|, consider P: f is continuous for every real x; Q: f is differentiable for every real x. Which statement is true? Options: (A) P true, Q false (B) P false, Q true (C) Both true (D) Both false
Your answer
Answer & solution
Answer: A (no official key was published)
1. Approach. Write |x| as -x for x<0 and x for x≥0. The values from both sides approach zero at the joining point, but the slopes differ there.
2. Derivation and interpretation. The absolute-value function is continuous everywhere. At 0 its left derivative is −1 and right derivative +1, so it is not differentiable there. Thus P is true and Q false, A.
A is a 4×4 matrix with eigenvalues −5,−2,1,4, and I is the 4×4 identity. Which option is an eigenvalue of the 8×8 block matrix [[A,I],[I,A]]? Options: (A) −5 (B) −7 (C) 2 (D) 1
Your answer
Answer & solution
Answer: C (no official key was published)
1. Approach. Apply the block matrix separately to (v,v) and (v,−v), where Av=λv. This reduces the eight-dimensional eigenvalue calculation to adding and subtracting one from each eigenvalue of A.
2. Derivation and interpretation. For Av=λv, the block vectors (v,v) and (v,−v) are eigenvectors of [[A,I],[I,A]] with eigenvalues λ+1 and λ−1. The eight values are −4,−6,−1,−3,2,0,5,3. Among the options only 2 occurs, C.
Let X={x∈R³:x1+x2+x3=0}, with vectors understood as columns. Which statement is true? Options: (A) {(1,−1,0),(1,0,−1)} is a basis of X (B) Those two vectors are independent but do not span X (C) X is not a subspace of R³ (D) None of these
Your answer
Answer & solution
Answer: A (no official key was published)
1. Approach. The single homogeneous equation removes one degree of freedom from R³. Verify membership, linear independence, and spanning rather than assuming two vectors automatically form a basis.
2. Derivation and interpretation. The vectors (1,−1,0) and (1,0,−1) lie in X and are linearly independent. Any (x1,x2,x3) with x1+x2+x3=0 equals −x2(1,−1,0)−x3(1,0,−1). They span X and form a basis, A.
Newton–Raphson iteration gives x_(n+1)=x_n/2+9/(8x_n), starting at x0=0.5. To what value does the sequence converge? Options: (A) 1.5 (B) √2 (C) 1.6 (D) 1.4
Your answer
Answer & solution
Answer: A (no official key was published)
1. Approach. A limit must satisfy the fixed-point equation, but that equation alone does not prove convergence or choose a sign. Positive iterates select the positive root; monotonicity after the first step verifies convergence.
2. Derivation and interpretation. Rewrite the iteration as x_next=(x+(9/4)/x)/2, Newton’s square-root iteration for 9/4. Starting at .5>0, the first step is 2.5; subsequent iterates stay above 1.5 and decrease to the positive fixed point. Solving x=x/2+9/(8x) yields x²=9/4, so the limit is 1.5, A.
F is an n×n real matrix, b an n×1 real vector. Distinct vectors u,v satisfy Fu=b and Fv=b. Which is not necessarily true? Options: (A) det(F)=0 (B) Fx=b has infinitely many solutions (C) A nonzero x satisfies Fx=0 (D) F must have two identical rows
Your answer
Answer & solution
Answer: D (no official key was published)
1. Since u≠v and Fu=Fv, the nonzero vector u−v lies in the null space. Hence F is singular and det F=0.
2. Every u+t(v−u), t real, is another solution, yielding infinitely many. Singularity does not force identical rows: F=[[1,2],[2,4]] is a counterexample.
3. Therefore D is false as a necessary assertion.
4. Teaching check: Subtract the two equations to obtain F(u−v)=0, with u−v nonzero. Linearity then lets any scalar multiple of this null vector be added to one solution. Dependent rows need not be identical rows, so determinant zero does not establish option D.
Common property of logic and functional languages? A procedural; B based on lambda calculus; C declarative; D use Horn clauses.
Your answer
Answer & solution
Answer: C (no official key was published)
Logic programming states logical relations, while functional programming expresses computations through functions rather than imperative state-changing instruction sequences. Both are conventionally classified as declarative, C. Lambda calculus is the usual basis for functional programming; Horn clauses are associated with logic programming, not both paradigms.
Logic programs describe facts/rules and functional programs compose function expressions. Both conventionally emphasize what result or relation is specified rather than a sequence of mutable-state commands, hence declarative. Functional foundations commonly use lambda calculus; Horn clauses are associated with logic programming. Neither foundation is common to both simply because both are declarative.
Which are essential conventional OOP features? I abstraction/encapsulation; II strict typing; III type safety with subtype rule; IV polymorphism with inheritance. A I/II; B I/IV; C I/II/IV; D I/III/IV.
Your answer
Answer & solution
Answer: B under the conventional classification (no official key was published)
Abstraction/encapsulation and subtype polymorphism with inheritance are standard object-oriented features, statements i and iv. Object-oriented languages can be dynamically typed and need not enforce the particular strict typing/type-safety requirements in ii and iii. Thus B. This is the conventional feature taxonomy, not a theorem that every language called object-oriented must use class inheritance.
Encapsulation groups state with operations and hides representation, while polymorphism allows a common interface to have different implementations. These are I and IV in the question’s conventional taxonomy. Dynamic object-oriented languages show that strict static typing is not required; the specific type-safety/subtyping rule is also not universal. The classification is pedagogical, not a mathematical definition excluding prototype-based OOP.
For continuous probability density f of X, express P(a<X≤b): A f(b−a); B f(b)−f(a); C ∫_a^b f(x)dx; D ∫_a^b x f(x)dx.
Your answer
Answer & solution
Answer: C (no official key was published)
For a≤b, probability P(a<X≤b)=∫_ab f(x)dx, C. Individual endpoints have probability zero for a continuous distribution. The integral of xf(x) instead contributes to an expectation.
A density is integrated over an interval to obtain probability, so P(a<X≤b)=∫_ab f(x)dx. A single point has probability zero for a continuous density, making endpoint inclusion immaterial here. The expression f(b)−f(a) uses density values rather than cumulative probabilities; multiplying by x would instead compute a truncated first moment. Hence C.
Determine the solution count of 2x1−x2−3x3=1, 3x1+2x2+5x3=2, −x1+4x2+x3=3: A no solution; B unique; C more than one but finitely many; D infinitely many. The alternate reproduction changes the first −3x3 to +3x3.
Your answer
Answer & solution
Answer: B (no official key was published)
The paper prints the first equation as 2x1−x2−3x3=1; the other rows are (3, 2, 5) and (−1, 4, 1). Its coefficient determinant is −70, so the solution is unique (B), specifically (37/70, 67/70,−3/10).
For a square linear system, a nonzero determinant means the coefficient map is invertible, so every right-hand side has exactly one preimage. Expanding the the paper determinant gives 2(2−20)+1(3+5)−3(12+2)=−70. This proves uniqueness without needing the actual solution. Substituting the stated triple checks the arithmetic. Replacing −3 by +3 changes the determinant to 14, still nonzero, so the alternative source gives the same choice but different numeric coordinates.
Eigenvalues from a quadratic characteristic polynomial
Linear Algebra
Tap to enlarge
Find the eigenvalues of [[2,−1],[−4, 5]]. A −1, 1; B 1, 6; C 2, 5; D 4,−1.
Your answer
Answer & solution
Answer: B (no official key was published)
det(λI−A)=(λ−2)(λ−5)−4=λ²−7λ+6=(λ−1)(λ−6). The eigenvalues are 1 and 6, option B.
An eigenvalue λ makes A−λI singular. The characteristic polynomial is (2−λ)(5−λ)−4, since the off-diagonal product is positive 4. Expanding yields λ²−7λ+6=(λ−1)(λ−6). The sum 7 equals the trace and product 6 equals the determinant, providing two quick independent checks. Reading the diagonal 2, 5 as eigenvalues would only be valid for triangular matrices, not this matrix.
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
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.
A,B,C,D are n×n matrices with nonzero determinants and ABCD=I. What is B^−1? Options: (A) D^−1 C^−1 A^−1 (B) CDA (C) ADC (D) It need not exist
Your answer
Answer & solution
Answer: B (no official key was published)
1. From ABCD=I, multiply on the left by A-1 to get BCD=A-1, then on the right by A to get B(CDA)=I. Since B is invertible, B-1=CDA, B.
2. Factor order matters for matrices.
3. Teaching check: Use multiplication on the correct side: B(CDA)=ABCD conjugated by A, namely A−1 I A=I. Matrix products generally do not commute. The formula for the inverse of a product reverses factor order and cannot be applied by casually rearranging ABCD.
Evaluate (113+(−111))+7.51 and 113+((−111)+7.51), rounding to three significant decimal digits after each floating-point operation. Options: (A) 9.51 and 10.0 (B) 10.0 and 9.51 (C) 9.51 and 9.51 (D) 10.0 and 10.0
Your answer
Answer & solution
Answer: A (no official key was published)
1. For the first association,113+(−111)=2 exactly, then 2+7.51=9.51. For the second,−111+7.51=−103.49 rounds to−103 with three significant digits;113+(−103)=10.0.
2. Thus9.51 and 10.0, A. Rounding is applied after each operation, not merely at the end.
3. Teaching check: Three digits means three significant digits, not three decimal places. The intermediate −103.49 becomes −103, losing 0.49 before the final addition. Floating-point addition is therefore not associative even though exact real-number addition is.
An employee system has superclass Employee and subclasses Manager, Engineer and Secretary. Each employee has name, unique ID and salary; salary depends on category. Choose the best design for getName, getId and computeSalary (called getSalary in the numbered statements). (i) Implement getId in superclass; (ii) implement getId in subclass; (iii) getName abstract in superclass; (iv) implement getName in superclass; (v) implement getName in subclass; (vi) getSalary abstract in superclass; (vii) implement getSalary in superclass; (viii) implement getSalary in subclass. Options: (A) i,iv,vi,viii (B) i,iv,vii (C) i,iii,v,vi,viii (D) ii,v,viii
Your answer
Answer & solution
Answer: A (no official key was published)
1. The common name and identifier accessors can be implemented once in Employee, statements i and iv. Salary computation varies by employee category, so declare it abstract in Employee and implement it in each category subclass, vi and viii.
2. Thus A is the best listed design. The narrative says computeSalary while the numbered statements say getSalary; the intended varying salary operation is treated consistently.
3. Teaching check: Inheritance should share the common accessors while polymorphism handles category-specific salary rules. An abstract salary method specifies the common interface without imposing one implementation. Making getName abstract duplicates a behavior that the problem gives no reason to vary.
How many solutions has the system? GFG: −x+5y=1; x−y=2; x−3y=3. GateForum differs: −x+5y=−1; x−y=2; x+3y=3. Both readings are retained rather than merging their signs. Options: (A) Infinitely many (B) Two distinct solutions (C) Unique (D) None
Your answer
Answer & solution
Answer: None (no official key was published)
1. The the paper rendering reads −x+5y=1, x−y=2, x−3y=3. The first two give y=3/4 and x=11/4, which yield x−3y=1/2, not 3: no solution (D).
2. Its first two give (x,y)=(9/4,1/4), satisfying the third: a unique solution (C).
3. The source disagreement prevents an unconditional option.
4. Teaching check: Solve two independent equations and substitute into the third rather than counting equations. More equations than unknowns may be inconsistent or redundant. Here changing two signs changes exactly that distinction, so preserving separate source readings is essential.
Choose a point uniformly from the rectangle with corners (0,0),(1,0),(1,2),(0,2). If p is its distance from the origin, what is E[p²]? Options: (A) 2/3 (B) 1 (C) 4/3 (D) 5/3
Your answer
Answer & solution
Answer: D (no official key was published)
1. Uniform sampling over [0,1]×[0,2] makes X and Y uniform on their respective intervals. Since p²=X²+Y², E[p²]=E[X²]+E[Y²]=(integral from 0 to 1 of x² dx)+(1/2)(integral from 0 to 2 of y² dy)=1/3+4/3=5/3, D.
2. This asks for E[p²], not the square of E[p].
3. Teaching check: Uniformity over the rectangle gives density 1/2, so E[Y²]=(1/2)∫₀²y²dy, not simply ∫₀²y²dy. Linearity gives E[X²+Y²] without needing to integrate sqrt(X²+Y²), which would answer a different question.
2. In this classification object-oriented programming matches imperative programming with abstract data types (R→2), while imperative programming matches command-based procedural computation (S→1). Thus P-3,Q-4,R-2,S-1 is D.
3. These are textbook paradigm characterizations, not claims that every language implementing a paradigm has only those features.
4. Teaching check: Match the most diagnostic feature first: theorem proving belongs to logic, and expression evaluation without side effects to functional programming. Those two matches fix P and Q, leaving abstract-data-type encapsulation for object orientation and procedural commands for imperative programming.
Which typing statement is false? A. In statically typed languages each program variable has a fixed type; B. In untyped languages values do not have types; C. In dynamically typed languages variables have no types; D. In all statically typed languages each variable is associated with values of only a single type during execution.
Your answer
Answer & solution
Answer: D under the standard polymorphic-language distinction (no official key was published)
1. Static type and runtime class are different concepts. A variable declared as a superclass reference retains that declared type while holding references to multiple subclasses. This gives a counterexample to D without implying that the compiler changes the declared type of the variable.
2. A variable in a statically typed language can have one declared static type while referring at different times to values of different compatible runtime subtypes. For example an Animal reference may refer to Dog and Cat objects. Thus D’s claim that values must have only a single runtime type in all statically typed languages is false. The other statements use the conventional distinction between declared variable types, dynamically typed values and untyped formalisms; that terminology is not uniform across every language theory.
Consistency condition for a rank-two linear system
Linear Algebra
Tap to enlarge
The equations are 2x+y−4z=α, 4x+3y−12z=5, and x+2y−8z=7. The second and third coefficient columns are linearly dependent. For how many values of α are there infinitely many solutions? A. 0; B. 1; C. 2; D. Infinitely many.
Your answer
Answer & solution
Answer: B (no official key was published)
1. The dependence of columns suggests combining y and z, not setting either to zero. Substitute u=y−4z; the last two equations have a nonsingular 2×2 coefficient matrix and determine x,u uniquely. The first then imposes one consistency condition on α. Once it holds, every real z gives a corresponding y, hence a one-parameter infinite solution set.
2. Put u=y−4 z. The last two equations become 4 x+3 u=5 and x+2 u=7, giving x=−11/5 and u=23/5. The first equation is then consistent only for α=2 x+u=1/5. At that value z is free and y=u+4 z, giving infinitely many solutions. Thus exactly one value of α works, option B.
A piecewise-linear f has drawn vertices (0,1), (0.5,0.5), approximately (0.8,−1), (1.55,0.5), and (2.05,1), with first and last straight segments extended. Marked roots are 0.6 and 1.3. Starting points x₀, x₁, x₂ lie respectively in the first descending segment, the steep descending segment, and the final rising segment. Newton–Raphson is started separately from each. Which roots result, in that order? A. (1.3,0.6,0.6); B. (0.6,0.6,1.3); C. (1.3,1.3,0.6); D. (1.3,0.6,1.3). Source defect: the lower vertex is actually labeled (−1.0,0.8), contrary to its plotted location; use the drawn-segment interpretation explicitly rather than silently correcting the label.
Your answer
Answer & solution
Answer: D under the plotted segments (no official key was published)
1. Newton’s formula is x_next=x−f(x)/f′(x). On a straight segment f(x)=ax+b this simplifies to −b/a, the intercept of its extended line, independent of the starting point within that segment. Consequently one must follow the segment containing each new iterate, not simply choose the visually nearest root. The first segment has equation 1−x and the last has equation x−1.05.
2. Newton iteration on a linear segment jumps to that segment’s extended x-intercept. Starting at x₀ on the leftmost segment gives x=1, which is on the rising middle segment and then gives the root 1.3. Starting at x₁ on the steep descending segment gives the root 0.6 immediately. Starting at x₂ on the rightmost segment gives 1.05, then 1.3 on the rising middle segment. Therefore the plotted-segment interpretation gives (1.3,0.6,1.3), D. The lower-vertex label appears as (−1.0,0.8) in the paper, inconsistent with its plotted position; the graph instead places it near (0.8,−1.0). The result uses the visibly drawn segments and marked roots, not that reversed coordinate label.
A program executes two modules sequentially. Their execution times have probability densities f1(t),f2(t). Which expression gives the density of total execution time? A. f1(t)+f2(t) B. ∫[0,t] f1(x)f2(x) dx C. ∫[0,t] f1(x)f2(t−x) dx D. max{f1(t),f2(t)} [GateForum; GFG instead prints max{f1(t)+f2(t)}.] The statement does not explicitly assert independence.
Your answer
Answer & solution
Answer: C if the runtimes are independent; otherwise underdetermined (no official key was published)
1. Let T=T1+T2. A contribution to density near t with T1=x must have T2 near t−x, not x. Nonnegative runtimes restrict x to [0,t]. 2. If T1,T2 are independent, their joint density is f1(x)f2(y). Integrating along x+y=t yields ∫[0,t]f1(x)f2(t−x)dx, C. 3. Marginal densities alone do not supply that product. For example, if both times are uniform on [0,1], independent times give a triangular sum density, whereas T2=T1 gives a uniform sum on [0,2]. Sequential execution permits either dependency. 4. Therefore C is conditional on independence; the literal problem is underdetermined. One cannot infer independence merely because the modules run one after another.
Solution: For independent nonnegative runtimes T₁,T₂, the density of T₁+T₂ is the convolution f(t)=∫₀ᵗ f₁(x)f₂(t−x) dx, option C. Sequential execution alone does not imply independence. In general the answer is ∫₀ᵗ f₁₂(x,t−x) dx using a joint density, when one exists, and marginal densities f₁,f₂ do not determine it. The same marginal distributions can give different sums under different dependencies, so C requires an extra independence assumption not stated in the paper.
A hypothetical object-oriented language supports inheritance and dynamic binding; do not assume Java or C++ semantics beyond those facts. class P { void f(int i) { print(i); } } class Q subclass of P { void f(int i) { print(2*i); } } Execute: P x=new Q(); Q y=new Q(); P z=new Q(); x.f(1); ((P)y).f(1); z.f(1); The cast (P)y changes the reference type to P. What is printed? A. 1 2 1 B. 2 1 1 C. 2 1 2 D. 2 2 2
Your answer
Answer & solution
Answer: D (no official key was published)
1. Each allocation is new Q(), so all three runtime objects have class Q even where the declared reference type is P. 2. Dynamic binding selects an override from the runtime class of the receiving object. The first call therefore invokes Q.f and prints 2×1=2. 3. Casting y to P affects its static reference type, not the object's runtime class. The second call still invokes Q.f, printing 2; z likewise points to a Q and prints 2. 4. Output 2 2 2 matches D. Static binding would be a different language rule from the one expressly stipulated.
Solution: Each allocated object is an instance of Q, including those referenced through a variable or cast of type P. With the stipulated dynamic binding, each call therefore selects Q's overriding method. For argument 1 that method prints 2, giving 2 2 2, option D. An upcast changes the reference's static type, not the runtime object or dynamically selected override.
Find the rank of the matrix [[1, 1], [0, 0]]. (A) 4; (B) 2; (C) 1; (D) 0.
Your answer
Answer & solution
Answer: C (no official key was published)
Step 1: Count independent rows, not nonzero entries.
Step 2: The row (1,1) spans every row of the matrix, so the row-space dimension is one. Rank cannot be negative; rank two would require two independent rows, while rank zero would require the zero matrix.
Conclusion: The first row is nonzero and the second row is zero. There is exactly one linearly independent row, so the rank is 1, C.
For which polynomial degrees does the trapezoidal integration rule give an exact result? (A) 0 but not 1; (B) 1 but not 0; (C) 0 or 1; (D) 2.
Your answer
Answer & solution
Answer: C (no official key was published)
Step 1: Check what the trapezoidal formula integrates.
Step 2: On [a,b], the approximation is (b−a)(f(a)+f(b))/2. Substituting f(x)=c gives c(b−a), and substituting f(x)=mx+c gives m(b²−a²)/2+c(b−a), both exact integrals. For f(x)=x² on [0,1], it gives 1/2 instead of 1/3, ruling out degree two.
Conclusion: The trapezoidal rule integrates the straight line joining the endpoint values. It is exact for every polynomial of degree 0 or 1, C. A quadratic such as x² already has a nonzero error on a nondegenerate interval.
Similar questions5 more → · asked again: GATE 2008, Q22
Identifying a Newton iteration
Numerical Methods
Tap to enlarge
The Newton–Raphson iteration Xₙ₊₁ = Xₙ/2 + 3/(2Xₙ) can solve which equation? (A) X²=3; (B) X³=3; (C) X²=2; (D) X³=2.
Your answer
Answer & solution
Answer: A (no official key was published)
Step 1: Derive the Newton step from the candidate equation.
Step 2: For x²−3=0, derivative 2x gives x_next=x−(x²−3)/(2x). Splitting the fraction gives x−x/2+3/(2x)=x/2+3/(2x). A cubic would instead involve a derivative 3x² and a2x/3 term, so it cannot produce the displayed iteration.
Conclusion: For g(x)=x²−3, Newton’s formula is x−g(x)/g′(x)=x−(x²−3)/(2x)=x/2+3/(2x). This is the displayed iteration, so it solves x²=3, A, with a suitable nonzero initial value.
Find the eigenvalues of A with rows [1,2,34,49], [0,2,43,94], [0,0,−2,104], [0,0,0,−1].
Shared context
Part (a) asks for eigenvalues of a 4 × 4 upper-triangular matrix. Part (b) independently classifies three propositional formulas as tautologies, contradictions, or neither.
Answer & solution
Answer: 1, 2, −2, −1 (no official key was published)
All entries below the main diagonal are zero, so A is upper triangular.
2. Form λI − A. It is also upper triangular, with diagonal entries λ−1, λ−2, λ+2, and λ+1. The determinant of a triangular matrix is the product of its diagonal entries; the displayed entries above the diagonal do not contribute additional factors.
3. Compute the characteristic polynomial: det(λI − A) = (λ−1)(λ−2)(λ+2)(λ+1) = (λ²−1)(λ²−4).
4. Set the determinant to zero. Each factor supplies one eigenvalue, giving λ ∈ {1,2,−2,−1}, each with algebraic multiplicity one.
5. As a consistency check, the eigenvalues sum to 0, matching the trace 1+2−2−1. Their product is 4, matching the product of the diagonal entries and hence det(A). This leaf is supplemental linear algebra rather than one of the requested twelve subjects.
For n×n matrices, assess two possibility claims: two singular matrices may have a nonsingular sum; two nonsingular matrices may have a singular sum. Options A/B/C/D mean respectively both true, only the first true, only the second true, neither true.
Your answer
Answer & solution
Answer: A for n≥2; C if n=1 (no official key was published)
Step 1: Test the existential claims with examples. For n=2, diag(1,0) and diag(0,1) are singular but their sum I is nonsingular. For larger n, split the identity diagonal between two complementary nonempty blocks.
Step 2: I and −I are nonsingular, while I+(−I)=0 is singular. Thus both possibilities occur, giving A in the intended dimension range.
Qualification: For n=1 the only singular scalar matrix is zero, and adding two zeros remains singular. Then S1 is false and S2 true, giving C. The problem does not explicitly exclude this boundary case.
X, Y and Z are closed unit intervals. X and Z each overlap Y by length 1/2. If X∩Z has length k, must k=1, k=0, can it be every value in[0,1], or none of these?
Your answer
Answer & solution
Answer: D (no official key was published)
Step 1: Translate Y to[0,1]. A unit interval overlapping it by exactly 1/2 must start at−1/2 or+1/2. Thus each of X and Z is one of those two intervals.
Step 2: If they choose the same interval, their overlap length is 1. If they choose opposite intervals, they touch at one point and their overlap length is 0. No intermediate length occurs.
Therefore k∈{0,1}, and none of A–C describes the full possibilities: D. The problem does not explicitly require X and Z to be distinct; imposing that would leave only k=0.
Find the least polynomial degree with p(1)=p(3)=p(5)=1 and p(2)=p(4)=−1. Choices1,2,3,4.
Your answer
Answer & solution
Answer: D (no official key was published)
Step 1: The polynomial changes sign between each consecutive pair 1,2,3,4,5. By continuity, it has at least one distinct zero in each of the four open intervals, so its degree is at least 4.
Step 2: Five prescribed values at distinct points admit an interpolating polynomial of degree at most 4. An explicit one is p(x)=1−(8/3)(x−3)²+(2/3)(x−3)4: at x=3 it is 1, at x=2,4 it is−1, and at x=1,5 it is 1.
Newton–Raphson starts at x0. Does it converge always, only for polynomials, only if f(x0)<0, or none?
Your answer
Answer & solution
Answer: D (no official key was published)
Newton iteration is x_next=x−f(x)/f′(x), so zero derivatives or a poor initial point can prevent convergence. For f(x)=x³−2x+2 and x0=0, the iteration cycles 0→1→0, disproving always. Nonpolynomial smooth functions can converge near a simple root, disproving the polynomial restriction. For f(x)=x−1 with x0=2, f(x0)>0 yet one step reaches the root, disproving the sign restriction. Therefore D. Standard local convergence hypotheses concern smoothness, a simple root and sufficient initial proximity.
Solve the classification for x+2y=5, 4x+8y=12, 3x+6y+3z=15: unique, no solution, finitely many, or infinitely many?
Your answer
Answer & solution
Answer: B (no official key was published)
Multiply the first equation by 4 to obtain 4x+8y=20. The second requires the same left-hand side to equal 12, which is impossible. Hence the first two equations already contradict each other; adding the third cannot restore consistency. The system has no solution, B.
Which applies to bisection: few iterations guaranteed, all continuous functions guaranteed, always faster than Newton, or correct determination of function signs?
Your answer
Answer & solution
Answer: D (no official key was published)
Bisection maintains an interval whose endpoint values have opposite signs and replaces one endpoint by the midpoint. Selecting the correct half therefore depends on reliable sign determination; an erroneous sign can discard the root. This is D. Continuity alone is insufficient without a bracket containing a sign change, and the number of iterations grows with the logarithm of the requested accuracy. Newton may converge quadratically near a simple root, so bisection is not universally faster. These distinctions rule out A, B, C.
Similar questions1 more → · asked again: GATE 2007, Q1
Continuity of absolute value
Calculus
Tap to enlarge
For y=|x| on[−1, 1], classify continuity and differentiability.
Your answer
Answer & solution
Answer: B (no official key was published)
On each side of zero the function is linear: −x for x<0 and x for x>0. Both one-sided limits at zero equal 0, the function value, so it is continuous throughout the interval. But its left derivative at zero is−1 and its right derivative is+1. They disagree, so it is not differentiable at zero. Thus it is continuous but not differentiable everywhere, B. Differentiability away from zero does not remove the corner.
The fourth row is three times the first, so rank is at most 3. To show the remaining rows are independent, take their minor using the first three columns. Expansion along the second row gives determinant−3·det[[1, 4], [4, 2]]=−3·(2−16)=42, which is nonzero. Thus rank is at least 3. Combining the bounds proves rank 3, option A. A zero full determinant alone would only show rank below 4, not determine its exact value.
For determinant with rows (1, a, bc), (1, b, ca), (1, c, ab), choose a factor from a+b, a−b, a+b+c, abc.
Your answer
Answer & solution
Answer: B: a−b (no official key was published)
Set a=b. Then the first two rows become identical, so the determinant vanishes identically as a polynomial in the remaining variables. By the polynomial factor theorem, a−b divides it. More explicitly, subtract the first row from the other two and factor (b−a) and (c−a); the remaining 2×2 determinant is c−b, giving (b−a)(c−a)(c−b). This confirms the requested factor B. The argument does not require dividing by a possibly zero variable.
Find local maxima and minima on 0≤x≤6 for f(x)=x³−6x²+9x+C. GFG prints C=−15; GateForum prints C=+15.
Answer & solution
Answer: Interior maximum at x=1 and minimum at x=3. Values are C+4 and C; endpoints are one-sided local extrema relative to [0,6]. (no official key was published)
Keep the disputed constant as C. Since differentiation removes it, the paper have identical stationary positions: f′(x)=3x²−12x+9=3(x−1)(x−3). Hence f′=0 at x=1 and x=3. The second derivative f″(x)=6x−12 is negative at 1 and positive at 3, so the interior local maximum is (1,C+4) and the interior local minimum is (3,C).
The derivative signs give the complete explanation: f increases on (0,1), decreases on (1,3), and increases on (3,6). Thus these are genuine turning points, not just horizontal tangencies. With the paper's constant −15, they are (1,−11) and (3,−15). The disagreement shifts the whole graph vertically by 30 and does not change its shape.
Because the stated domain is closed, endpoints deserve explicit treatment. Under the relative-domain definition of a local extremum, x=0 is a one-sided local minimum and x=6 a one-sided local maximum. Their values are f(0)=C and f(6)=C+54. Under the classroom convention that “local extrema” refers only to interior stationary points, report just x=1 and x=3, while still recording the endpoint behavior.
For global extrema on the closed interval, compare all four candidates: values C, C+4, C, C+54 at x=0,1,3,6. The global minimum C occurs at both 0 and 3, and the global maximum C+54 occurs at 6. This endpoint check prevents incorrectly treating the interior local maximum as the absolute maximum.
Evaluate the definite integral of x cos x from −π to π.
Answer & solution
Answer: 0. (no official key was published)
Let g(x)=x cos x. Since cosine is even, g(−x)=−x cos(−x)=−x cos x=−g(x), so g is odd. Its integral over the symmetric interval [−π,π] therefore cancels pairwise and equals zero.
Integration by parts provides an independent derivation. Take u=x and dv=cos x dx, giving du=dx and v=sin x. Then ∫x cos x dx=x sin x−∫sin x dx=x sin x+cos x+C. At π this antiderivative has value π·0+(−1)=−1; at −π it has value (−π)·0+(−1)=−1. Subtracting lower from upper again gives 0.
The printed bounds are −π and π, not an indefinite integral or the interval [0,π]. On [0,π] the value would be −2. The sign and symmetry of the lower bound are consequently essential to the result.
Derive the number of operations to solve n linear equations in n unknowns by Gaussian elimination, counting one multiplication followed by an addition as one operation.
Answer & solution
Answer: n(n−1)(2n+5)/6 paired multiply-add operations including RHS updates and back substitution; leading term n³/3. (no official key was published)
Assume a dense nonsingular system Ax=b, successful pivots, ordinary forward elimination followed by back substitution, and no work saved by special structure. Count an update u←u−m·v as one multiplication-addition pair. Divisions and pivot search/comparison are separate because the question's paired-operation definition does not explicitly include them.
At pivot k, for k=1,...,n−1, there are n−k rows below the pivot. Each needs n−k updates to its remaining coefficient entries and one update to its right-hand-side value. Thus this stage uses (n−k)(n−k+1) paired operations. Summing with j=n−k gives
In back substitution, solving row i subtracts the contributions from the n−i already known variables. This contributes B=Σ_(i=1)n(n−i)=n(n−1)/2 paired updates. Consequently
E+B=n(n−1)(2n+5)/6
= n³/3+n²/2−5n/6.
For n=2 there are two elimination updates, one to the remaining coefficient and one to the right-hand side, followed by one back-substitution update: three in total, matching the formula. For n=1 there are no such pairs, although one division is still necessary.
The elimination multipliers require n(n−1)/2 divisions, and back substitution requires n more, totaling n(n+1)/2 divisions. If a convention counts each division as one extra operation, the combined count becomes (n³+3n²−n)/3. If only the coefficient-matrix elimination is requested, its pair count is Σj² rather than the full solve count. Actual floating-point operation counts often count multiplication and addition separately, producing leading cost 2n³/3. Under the printed paired-operation convention, the leading cost is n³/3, with the exact lower-order terms dependent on which phases and divisions are included.
Apply Newton–Raphson to x²−2=0 starting at−1. Does it converge to−1, +sqrt (2), −sqrt (2), or fail?
Your answer
Answer & solution
Answer: C (no official key was published)
Newton’s update is x_next=x−(x²−2)/(2x)=(x+2/x)/2. From−1 it gives−1.5, then approximately−1.416667. Negative iterates remain negative. Put u=−x>0; then u_next=(u+2/u)/2. After the first step u≥sqrt (2), and this iteration decreases toward sqrt (2), since its only positive fixed point is sqrt (2). Hence the original iterates approach−sqrt (2), C, rather than crossing to the positive root.
Find determinant of the upper-triangular matrix with rows (6, −8, 1, 1), (0, 2, 4, 6), (0, 0, 4, 8), (0, 0, 0, −1).
Your answer
Answer & solution
Answer: B: −48 (no official key was published)
The determinant of an upper-triangular matrix is the product of its diagonal entries. This follows by expanding repeatedly along the first column, whose entries below the diagonal are zero. Here the product is 6·2·4·(−1)=−48. The off-diagonal entries do not affect this determinant, so B is correct. Adding diagonal entries would compute the trace, a different quantity.
Find maximum of f (x)=2x²−2x+6 on[0, 2], among 6, 10, 12, 5.5.
Your answer
Answer & solution
Answer: B: 10 (no official key was published)
Differentiate: f′(x)=4x−2 vanishes at x=1/2. Since f″=4>0, this point is a minimum, with value 5.5. The maximum on the closed interval must therefore occur at an endpoint. Evaluate f (0)=6 and f (2)=8−4+6=10. The larger is 10, B. Choosing the stationary value without determining whether it is a maximum would give the wrong distractor.
I12 is obtained by swapping rows 1 and 2 of the identity. What is the first column of AI12 relative to A?
Your answer
Answer & solution
Answer: C: A’s second column (no official key was published)
The first column of I12 is the second standard basis vector e2. Therefore the first column of AI12 is A e2, which is exactly A’s second column. Right multiplication by this permutation matrix swaps columns 1 and 2 of A. Left multiplication would swap rows instead. Thus C. The direction of multiplication is essential; simply recalling that I12 was built by a row swap does not mean its right action swaps rows.
For y″(t)=f (t), the source gives y (0)=0 and asks for the first four forward-Euler y values at step h. Forum prints an extra initial second-derivative condition.
Your answer
Answer & solution
Answer: Underdetermined as printed; intended zero-slope sequence is 0, 0, h²f (0), h²[2f (0)+f (h)] (no official key was published)
Introduce v=y′. Forward Euler gives y[k+1]=y[k]+h v[k] and v[k+1]=v[k]+h f (kh). With v (0)=v0, the four grid values y(0), y(h), y(2h), y(3h) are 0, hv0, 2hv0+h²f (0), 3hv0+2h²f (0)+h²f (h). Thus the missing initial first derivative matters. Setting v0=0 gives the intended sequence near B, but the paper’ B omit the h² factor multiplying f (h).
p (0)=5, p (1)=4, p (2)=9, p (3)=20. Find minimum degree among 1, 2, 3, 4.
Your answer
Answer & solution
Answer: B: 2 (no official key was published)
Successive first differences are−1, 5, 11. Their differences are 6, 6, constant and nonzero, so the data cannot come from a linear polynomial and suggest a quadratic with leading coefficient 6/2=3. Write p (x)=3x²+bx+c. From p (0)=5, get c=5; p (1)=4 gives b=−4. Then p (2)=12−8+5=9 and p (3)=27−12+5=20. The quadratic exists and degree 1 is impossible, so the minimum is 2, B.
Approximate ln7=integral from 1 to 7 of 1/x using uniform trapezoids. Given bound (b−a)h² max|f″|/12, find minimum count guaranteeing error≤10^−4.
Your answer
Answer & solution
Answer: C: 600 by the supplied bound (no official key was published)
For f (x)=1/x, f″(x)=2/x³, whose maximum on[1, 7] is 2. With N trapezoids, h=6/N. The error bound becomes (6/12)·(36/N²)·2=36/N². Requiring 36/N²≤10−4 gives N²≥360000 and N≥600. Thus C is the smallest integer certified by this bound. The actual error can be smaller than the bound; the question asks a guarantee from the supplied estimate, not the smallest empirically sufficient count.
Choose a finite-difference approximation for f″(x) using f(x−h), f(x), f(x+h).
Your answer
Answer & solution
Answer: D: [f(x+h)−2f(x)+f(x−h)]/h² (no official key was published)
Taylor expansion gives f(x±h)=f(x)±hf′(x)+h²f″(x)/2±h³f‴(x)/6+O(h⁴). Add the two expansions: the odd derivative terms cancel, leaving 2f(x)+h²f″(x)+O(h⁴). Subtract 2f(x) and divide by h² to obtain f″(x)≈[f(x+h)−2f(x)+f(x−h)]/h², with error O(h²) for a sufficiently smooth function. The denominator must be h², not h, because the first surviving derivative term is quadratic in the spacing.
Which linear-system claim is false, including the claim that m=n and b≠0 ensure a unique solution of Ax=b?
Your answer
Answer & solution
Answer: C (no official key was published)
A square coefficient matrix does not automatically have full rank. For example A is the 2×2 zero matrix and b=(1,0)ᵀ: the system has no solution despite m=n and b≠0. In general consistency requires rank(A)=rank([A|b]), and uniqueness additionally requires rank(A)=n. A homogeneous system with fewer equations than unknowns has a nontrivial nullspace over the reals; a square full-rank homogeneous system has only the zero solution. These rank facts distinguish the other standard statements from C.
Answer: C: f⁻¹(u,v)=((u+v)/2,(u−v)/2) (no official key was published)
Set u=x+y and v=x−y. Adding the equations gives u+v=2x, while subtracting gives u−v=2y. Hence x=(u+v)/2 and y=(u−v)/2. Substitution back into the original map returns (u,v), verifying both coordinates rather than only guessing a similar expression. The factors of one half are essential: omitting them produces twice the desired input. The nonzero determinant −2 also confirms that this linear map is bijective.
Derive Newton–Raphson iteration to find c^(1/3), c>0.
Your answer
Answer & solution
Answer: C: x_next=(2x³+c)/(3x²) (no official key was published)
Apply Newton’s method to F(x)=x³−c, whose derivative is F′(x)=3x². Thus x_next=x−(x³−c)/(3x²)=(2x³+c)/(3x²). The iteration requires a nonzero current x to avoid division by zero. It uses c in the numerator, not its already-unknown cube root; substituting the root there would defeat the purpose of the iteration. A positive initial value is a standard choice for finding the positive root.
For R=[[cosθ,−sinθ],[sinθ,cosθ]] and D=diag(a,b), determine when RD=DR.
Your answer
Answer & solution
Answer: A: a=b or θ is an integer multiple of π (no official key was published)
The diagonal entries of both products are a cosθ and b cosθ. Their off-diagonal entries agree exactly when −b sinθ=−a sinθ and a sinθ=b sinθ. Both reduce to (a−b)sinθ=0. Therefore either the scale factors are equal, making D a scalar matrix, or sinθ=0, meaning θ=nπ. This proves necessity as well as sufficiency. General unequal anisotropic scaling does not commute with an arbitrary rotation.
Let f(x)=x² for x≤1, ax²+bx+c for 1<x≤2, and x+d for x>2. Find a,b,c,d making f continuous and differentiable on the real line.
Answer & solution
Answer: a=−1/2, b=3, c=−3/2, d=1/2. (no official key was published)
Each branch is a polynomial, so only the joining points 1 and 2 can cause trouble. Continuity at 1 requires a+b+c=1. Equality of the left and right derivatives at 1 requires 2a+b=2, because the derivative of x² is 2x. At 2, continuity gives 4a+2b+c=2+d, while equality of derivatives gives 4a+b=1.
Subtract the derivative equation at 1 from that at 2: 2a=−1, hence a=−1/2. Then 2a+b=2 gives b=3. Substituting in a+b+c=1 gives c=−3/2. The middle branch at 2 is −2+6−3/2=5/2, so 2+d=5/2 and d=1/2.
As a direct check, the middle branch has value 1 and derivative 2 at x=1, and value 5/2 and derivative 1 at x=2. These match the adjacent branches exactly. The four linear matching conditions determine the four constants uniquely. Continuity is needed in addition to matching formal derivative formulas: derivative agreement alone would not rule out jumps in the function.
A and B are 2×2 matrices with AB=I. Let C=A[[1,0],[1,1]] and CD=I. Express D in terms of entries b11,b12,b21,b22 of B.
Answer & solution
Answer: D=[[b11,b12],[b21−b11,b22−b12]]. (no official key was published)
Write M=[[1,0],[1,1]], so C=AM. Because A and B are square and AB=I, A is invertible and B=A−1. Also det(M)=1, so M is invertible, with M−1=[[1,0],[−1,1]]. Inverting a product reverses the order: D=C−1=(AM)−1=M−1A−1=M−1B.
Multiply on the left explicitly. The first row of M−1B is the first row of B, (b11,b12). The second row is the second row of B minus its first row, (b21−b11,b22−b12). Hence D has the stated entries.
For verification, M D=B, because adding D's first row to its second gives B's second row, while its first row is unchanged. Then CD=A(MD)=AB=I. This check uses only the identities in the question and avoids introducing unknown entries of A. Multiplying B by M−1 on the right instead would subtract columns, not rows, and generally would not satisfy CD=I. The matrix order is therefore essential.
Answer: B: exactly one (no official key was published)
Define g(x)=x−cos x, a continuous function. It satisfies g(0)=−1 and g(π)=π+1>0, so the intermediate value theorem gives at least one zero. On [0,π], g′(x)=1+sin x≥1, so g is strictly increasing and can have at most one zero. Combining existence and uniqueness proves exactly one solution. A graph can suggest this result, but the derivative and endpoint signs establish it rigorously.
A curve has dy/dx=−2x/y wherever the slope is defined. Is it a line, parabola, circle or ellipse?
Your answer
Answer & solution
Answer: D: ellipse (no official key was published)
Multiply by y and separate variables: y dy=−2x dx. Integration gives y²/2=−x²+C, or 2x²+y²=C′. For a nondegenerate real curve C′>0, this is an ellipse with unequal axis coefficients, not a circle. C′=0 would give only a point, and C′<0 no real curve; the premise of an actual smooth curve excludes these degeneracies. At points with y=0 the displayed slope is undefined, corresponding to the ellipse’s vertical tangents.
For which listed k∈{0,2,9,3} does 4x²−8xy+ky²=0 fail to represent two real lines through the origin?
Your answer
Answer & solution
Answer: C: 9 (no official key was published)
View the homogeneous quadratic as a quadratic in x/y. Its discriminant is (−8)²−4·4·k=16(4−k). Real line factors exist when k≤4. The choices 0,2,3 all satisfy that condition, while 9 does not. In fact 4x²−8xy+9y²=4(x−y)²+5y² vanishes only at the origin, not along a pair of real lines. The qualification “real” is important because complex factors exist even for a negative discriminant.
Every row of an (n+1)×(n+1) matrix is (1,a,a²,…,a^n), for real a. Find its rank.
Your answer
Answer & solution
Answer: A: 1 (no official key was published)
All rows are identical, so the row space is spanned by a single vector and its dimension is at most one. That vector is nonzero for every a because its first coordinate is 1. Hence the dimension is at least one, proving rank exactly one. In particular a=0 does not make the matrix zero: its first column remains all ones. The result is independent of a and of the number of repeated rows.
If 1,ω,ω² are cube roots of unity, find roots of (x−1)³+8=0.
Your answer
Answer & solution
Answer: C: −1,1−2ω,1−2ω² (no official key was published)
The equation says (x−1)³=−8. Since (−2)³=−8, all three cube roots are −2 times the cube roots of unity: −2,−2ω,−2ω². Adding 1 yields −1,1−2ω,1−2ω². Each substitution cubes back to −8 because ω³=1. Changing the sign to plus 2 would solve the equation with +8 on the other side instead, so the negative sign is essential.
Find a unit vector perpendicular to a=2i−3j+k and b=i+j−2k.
Your answer
Answer & solution
Answer: A: (i+j+k)/sqrt(3) (no official key was published)
Their cross product is (5,5,5): its components are (−3)(−2)−1·1, 1·1−2(−2), and 2·1−(−3)·1. Its length is 5sqrt(3), so normalization gives (1,1,1)/sqrt(3). Direct checks give a·(1,1,1)=0 and b·(1,1,1)=0. The negative vector is also a valid unit normal, but among the listed alternatives the positive normalized one is A. A divisor of 3 would not give unit length. The answer A therefore follows the the paper −3 coefficient, not that alternate variant.
What is the Newton–Raphson iteration for the positive square root of b?
Your answer
Answer & solution
Answer: B: x_next=(x²+b)/(2x) (no official key was published)
Set f(x)=x²−b and f′(x)=2x. Newton’s formula gives x_next=x−f(x)/f′(x)=x−(x²−b)/(2x)=(x²+b)/(2x). Starting with positive x and b keeps the iterates positive and approaches the positive root. The denominator must not be zero. The alternative form (x+b/x)/2 makes clear that each step averages the current estimate with the reciprocal-scaled estimate b/x.
Answer: C: C1e^−x+C2e^−2x (no official key was published)
Try y=erx. Substitution gives the characteristic equation r²+3r+2=0, which factors as (r+1)(r+2)=0. The two distinct roots are −1 and −2, giving independent solutions e−x and e−2x. Linearity yields their arbitrary linear combination C1e−x+C2e−2x. Positive exponential roots would not satisfy the characteristic equation, and an x multiplier is needed only for a repeated root, which is absent here.
Without power-series expansion, compute lim(x→0) sin(x)/x, with x in radians. GFG prints denominator x; GateForum prints denominator 0.
Answer & solution
Answer: 1 (no official key was published)
For 0<x<π/2, the unit-circle area comparison gives sin x < x < tan x. Divide the first inequality by positive x, and rearrange the second to obtain cos x < sin x/x < 1. As x→0 from the right, both bounding functions tend to 1. The squeeze theorem therefore gives the right-hand limit 1 without a power series.
The quotient is even away from zero: sin(−x)/(−x)=sin x/x. Its left-hand limit equals the right-hand limit, so the two-sided limit is 1. The function need not be defined at x=0 for this limit to exist. Radian measure is essential to the value 1.
The answer 1 belongs to the denominator-x the paper; it is not an evaluation of division by zero.
Find the minimum value of 3−4x+2x², taking x to range over the real numbers.
Answer & solution
Answer: Minimum1, attained at x=1. (no official key was published)
Complete the square rather than guessing a stationary point: 3−4x+2x²=2(x²−2x)+3=2[(x−1)²−1]+3=2(x−1)²+1. For every real x, the square is nonnegative, so the expression is at least 1. At x=1 the square is zero, so the lower bound is attained. Thus1 is the global minimum, and x=1 is the unique minimizer.
As a check, differentiating gives f′(x)=4x−4, whose sole zero is x=1. The second derivative is 4>0 everywhere, confirming strict convexity and the minimum. The completed-square proof is stronger than simply solving f′=0: it directly establishes a lower bound over the full domain and proves attainment.
The source does not explicitly specify a domain for x; the conventional real-variable interpretation is used. If x were restricted to integers the same answer still holds because 1 is an allowed integer. A different restricted domain excluding 1 would need a separate analysis. The requested minimum value is 1, whereas x=1 is where that value occurs.
For real symmetric n×n matrices A,B, which identity is guaranteed: AAᵀ=I, A=A⁻¹, AB=BA, or (AB)ᵀ=BA?
Your answer
Answer & solution
Answer: D (no official key was published)
Transpose reverses product order: (AB)ᵀ=BᵀAᵀ. Symmetry gives Bᵀ=B and Aᵀ=A, so the product transpose is BA. Symmetry alone does not imply orthogonality or self-inverse behavior; for example 2I refutes both. Two symmetric matrices also need not commute, as unequal diagonal scaling and a coordinate-swap matrix demonstrate. Hence only D follows for all such A and B, including singular matrices for which A⁻¹ may not exist.
Answer: B: y_(n+1)=y_n+h f(x_(n+1),y_(n+1)) (no official key was published)
Integrating the derivative over one step gives the change in y. Backward Euler approximates that derivative using the right endpoint of the step, so yn+1−yn≈h f(xn+1,yn+1). This produces the stated implicit equation, which may require solving for the new y. Forward Euler instead evaluates f at the known left endpoint (xn,yn). A formula with two-step values or an unrelated scaling is not the first-order backward Euler method.
The first column is three times the second, so at most two columns are independent and rank is at most two. The second and third columns are independent: their first coordinates are 0 and 3, respectively, while the second column is nonzero. Alternatively the minor from rows 1,3 and columns 2,3 is 0·1−3·1=−3, nonzero. Thus rank is at least two as well, proving rank exactly two.
Match Newton–Raphson, Runge–Kutta, Gauss–Seidel, Simpson’s rule with root finding, ODEs, linear systems and integration.
Answer & solution
Answer: i–b,ii–c,iii–d,iv–a (no official key was published)
Newton–Raphson updates a root estimate using a function and its derivative. Runge–Kutta methods advance an ODE solution by combining several slope evaluations. Gauss–Seidel iteratively solves a linear system using newly updated components within each sweep. Simpson’s rule approximates a definite integral by fitting quadratic interpolants. Therefore the respective matches are root finding, ordinary differential equations, systems of linear equations and integration. These identify the methods’ standard purposes, not claims that each is the only available method for that task.
Answer: [[1/2,−1/2,1/2],[0,0,1],[1/2,1/2,−1/2]] (no official key was published)
Solve Mx=b. The third row gives x2=b3. The first gives x1+x3=b1, while the second gives −x1+x3=b2−b3. Adding the last two equations gives x3=(b1+b2−b3)/2; subtracting gives x1=(b1−b2+b3)/2. Thus the coefficients of b in x are exactly the displayed inverse matrix. This also proves uniqueness for every b, hence invertibility, without relying only on a numerical inverse calculation. Multiplying M by the displayed matrix returns the identity.
For M=[[0,0,α],[0,0,0],[0,0,0]], α≠0, which listed vectors are eigenvectors: (0,0,α),(α,0,0),(0,0,1),(0,α,0)?
Select all that apply
Answer & solution
Answer: B,D (no official key was published)
The matrix is nilpotent: M²=0, so its only eigenvalue is zero. For v=(x,y,z), Mv=(αz,0,0), which vanishes exactly when z=0. Thus every nonzero vector in the xy-plane is a zero-eigenvalue eigenvector. The second and fourth candidates satisfy this condition and are nonzero because α≠0. The first and third have nonzero z and their images are not scalar multiples of themselves. Hence B and D, not merely one option.
Classify y″+y′+sin y=0 among linear,nonlinear,homogeneous,degree two.
Select all that apply
Answer & solution
Answer: B under the standard linear-ODE terminology (no official key was published)
A linear differential equation contains y and its derivatives only to first powers with coefficients depending on the independent variable. The term sin y violates that requirement, making this equation nonlinear. Its order is two, but its highest derivative occurs to power one, so its differential degree is one, not two. “Homogeneous” in the standard homogeneous-linear-ODE sense is not applicable to this nonlinear equation. Merely having zero on the right is not enough to infer the linear homogeneity property; a different informal use of that word should be stated separately.
For which polynomial degrees 1,2,3,4 is Simpson’s rule exact?
Select all that apply
Answer & solution
Answer: A,B,C (no official key was published)
Simpson’s rule integrates every polynomial of degree at most three exactly. One way to see the extra cubic exactness is to center the interval: the odd cubic term integrates to zero and is canceled by the symmetric sample weights, while the rule integrates constants, linear and quadratic terms exactly. Its error involves the fourth derivative, which vanishes for degrees one through three. A general quartic has nonzero error, so degree four is not guaranteed. As a multiple-select question, all of A,B,C are required.
Using the supplied Fourier series or otherwise, evaluate 1+1/3²+1/5²+1/7²+… among π²/4,π²/6,π²/8,π²/12.
Select all that apply
Answer & solution
Answer: C: π²/8 (no official key was published)
Let S=Σ(n≥1)1/n²=π²/6. The even-index terms sum to Σ1/(2n)²=S/4. Subtracting them from S leaves precisely the positive odd-index terms, so the required sum is 3S/4=π²/8. This agrees with evaluating the displayed Fourier series at its endpoint using the appropriate midpoint value. The source’s piecewise interval typography is damaged, but the requested numerical series itself is explicit and determines the result independently.
Assess integrals A ∫₀¹ sin x/(1−cos x) dx; B ∫₀∞ cos x/(1+x) dx; C ∫₀∞ x/(1+x²) dx; D ∫₀¹ (1−cos x)/(x⁵/2) dx as displayed.
Select all that apply
Answer & solution
Answer: B on the literal x⁵/2 reading; B,D if D intended x^(5/2) (no official key was published)
Near zero, sin x/(1−cos x) is asymptotic to 2/x, so A diverges. Integral B converges by Dirichlet’s test: an antiderivative of cos x is bounded and 1/(1+x) decreases to zero. C has antiderivative (1/2)log(1+x²), unbounded at infinity. The displayed D denominator is stacked x⁵ over 2; literally its integrand behaves as x−3, hence diverges. If the intended typography was x5/2, it behaves as (1/2)x−1/2 and converges instead. The paper retains this ambiguity, so a unique D selection is not claimed.
For f(x,y)=x²y−3xy+2y+x, determine the number of local maxima and minima.
Select all that apply
Answer & solution
Answer: A: no local extrema (no official key was published)
The partial derivatives are fx=(2x−3)y+1 and fy=x²−3x+2=(x−1)(x−2). Stationarity therefore requires x=1,y=1 or x=2,y=−1. The Hessian has f_xx=2y, f_xy=2x−3 and f_yy=0. Its determinant is −(2x−3)²=−1 at either point, so both are saddle points. Since a differentiable function on R² can have an interior local extremum only at a stationary point, there are no local maxima or minima.
Expand ex−1=x+x²/2+x³/6+O(x⁴) and cos x−1=−x²/2+x⁴/24+O(x⁶). Multiplying the first by x and the second by two cancels their x² terms, leaving x³/2+O(x⁴). The denominator is x³/2+O(x⁵). Dividing gives a ratio tending to one. Keeping only first-order expansions would miss the cancellation and fail to identify the first nonzero terms.
Find the radius of convergence in x of Σ(m≥0)(3m)!/(m!)³ · x^(3m).
Answer & solution
Answer: 1/3 (no official key was published)
For successive nonzero terms, the absolute ratio is [(3m+3)(3m+2)(3m+1)/(m+1)³]|x|³, tending to 27|x|³. The ratio test gives convergence for 27|x|³<1 and divergence when it exceeds one. Therefore |x|<1/3 is the convergence interior and the radius is 1/3. Treating x³ as a new variable gives radius 1/27 in that variable, but the question asks the radius in x, requiring the cube root.
For V=(x²y,xyz,−yz²), find local angular velocity at (1,1,−1).
Answer & solution
Answer: −i−k under ω=(1/2)curl V (no official key was published)
The local rigid-rotation component of a velocity field has angular velocity half its curl. Compute curl V=(∂(−yz²)/∂y−∂(xyz)/∂z, ∂(x²y)/∂z−∂(−yz²)/∂x, ∂(xyz)/∂x−∂(x²y)/∂y)=(-z²−xy,0,yz−x²). At (1,1,−1) this is (−2,0,−2). Dividing by two gives (−1,0,−1). The full curl is vorticity, not angular velocity; omitting the factor one half would answer a different quantity.
For y′=x−y,y(0)=0,h=0.1, compute y(0.1) to three decimal places using RK2.
Answer & solution
Answer: 0.005 (no official key was published)
Using Heun’s RK2 form, k1=h f(0,0)=0. The endpoint predictor is y+k1=0 at x=0.1, so k2=0.1·(0.1−0)=0.01. The corrected value is y+(k1+k2)/2=0.005. The midpoint RK2 variant gives the same first step: its midpoint slope is 0.05 and h times that is 0.005. The exact value 0.1−1+e−0.1≈0.004837 also rounds to 0.005, providing a consistency check rather than replacing the requested numerical method.
The source prints ∫₀¹ ∫₀^(1/x) x/(1+y²) dx dy. Evaluate if possible without silently changing the differentials.
Answer & solution
Answer: Literal expression unresolved; 1/2 if the inner differential is repaired to dy and the outer to dx (no official key was published)
As printed, the inner integration variable x also appears in its own upper bound 1/x, so this is not a well-defined ordinary iterated integral with fixed outer parameter y. One plausible repair is ∫₀¹∫₀1/x x/(1+y²) dy dx. That becomes ∫₀¹ x arctan(1/x) dx. Integration by parts gives [x² arctan(1/x)/2]₀¹+(1/2)∫₀¹ x²/(1+x²) dx=π/8+(1/2)(1−π/4)=1/2. This is a conditional repaired result, not a verified interpretation; another repair of the bound could change the value.
For A=[[1,0,0,1],[0,−1,0,−1],[0,0,i,i],[0,0,0,−i]], find A⁴.
Answer & solution
Answer: I₄ (no official key was published)
The triangular matrix has diagonal eigenvalues 1,−1,i,−i, all distinct. Its characteristic polynomial is (t−1)(t+1)(t−i)(t+i)=t⁴−1. Cayley–Hamilton therefore gives A⁴−I=0 directly, including the off-diagonal entries; one cannot justify the full matrix power by looking only at the diagonal. Thus A⁴ is the 4×4 identity. The result can also be verified by multiplication, but the characteristic polynomial explains why all off-diagonal contributions cancel.
For V=(x cos²y,x²e^z,z sin²y), find outward flux through the surface of a unit cube with coordinate-parallel edges.
Answer & solution
Answer: 1 (no official key was published)
Use the divergence theorem. The divergence is ∂(x cos²y)/∂x+∂(x²ez)/∂y+∂(z sin²y)/∂z=cos²y+0+sin²y=1. Integrating over the cube multiplies this constant by its volume, one, so outward flux is one. The middle component has no y dependence and contributes zero to divergence. Outward orientation is the conventional normal on a closed surface; reversing every normal would reverse the flux sign.
For y″+y=0 with y(0)=y(λ)=0, give λ allowing a nontrivial solution.
Answer & solution
Answer: λ=kπ; k≥1 for a positive interval length (no official key was published)
The general solution is y=A cos x+B sin x. At zero, the boundary condition forces A=0. A nontrivial solution therefore requires B≠0, and the second condition becomes sin λ=0. Thus λ is an integer multiple of π. If λ denotes a positive interval length, take k=1,2,…; if the source allows λ=0 or negative endpoints, the algebraic zero condition includes those multiples too. This distinction states the usual boundary-value convention instead of inventing a range restriction.
A 2π-periodic function is zero on (0,π) and sin t on (π,2π), repeated thereafter. Find its Laplace transform.
Answer & solution
Answer: −1/[(s²+1)(e^(πs)−1)], Re(s)>0 (no official key was published)
For a periodic function of period T, the Laplace transform is the transform over one period divided by 1−e−sT. Here the numerator is ∫π2πe−stsin t dt=−(e−πs+e−2πs)/(s²+1). Divide by 1−e−2πs and factor the difference of squares to obtain −e−πs/[(s²+1)(1−e−πs)], the stated form. Its negative sign is consistent with every nonzero pulse lying below the axis. Boundary-point values do not affect the integral.