Qus : 9
AMU MCA PYQ 2025
1
Which sequence represents a max heap?
1
⟨46, 34, 28, 12, 26, 20, 2, 10, 11, 24⟩ 2
⟨24, 14, 10, 2, 20, 26, 12, 28, 34, 46⟩ 3
⟨6, 14, 8, 12, 26, 20, 2, 10, 14, 2⟩ 4
⟨2, 14, 10, 2, 20, 26, 12, 8, 14, 6⟩ Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Each parent node is greater than its children.
Qus : 11
AMU MCA PYQ 2025
4
What is the output for the program given below?
#include <stdio.h>
void main()
{
int i = 5;
for (; i < 12; i++);
printf("%d", i);
}
1
5 6 7 8 9 10 11 2
5 6 7 8 9 10 12 3
5 6 7 8 9 4
12 Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution The semicolon ; after the for loop makes it an empty loop.
The loop increments i until $i = 12$.
After the loop ends, printf prints the final value of i.
Qus : 12
AMU MCA PYQ 2025
1
The number X is given in IEEE 32-bit floating point format. What is the equivalent decimal value?
$X = 1\ 10000011\ 11101100000000000000000$
1
$-130.625$ 2
$130.75$ 3
$30.75$ 4
$-30.75$ Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Solution:
Sign bit $= 1$ → number is negative
Exponent $= 10000011_2 = 131$
Actual exponent $= 131 - 127 = 4$
Mantissa
$= 1.111011_2$
$= 1 + \frac12 + \frac14 + \frac18 + \frac1{64}$
$= 8.1640625$
Value
$= -(8.1640625 \times 2^4)$
$= -130.625$
Qus : 13
AMU MCA PYQ 2025
2
Which one of the following statements is true regarding Compiler and Interpreter?
1
Compiler translates one statement at a time while Interpreter translates the whole program 2
Interpreter translates one statement at a time while Compiler translates the whole program 3
Compiler can translate one statement at a time and also the whole program 4
Interpreter can translate one statement at a time and also the whole program Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Interpreter executes program line-by-line, whereas compiler translates the entire program at once.
Qus : 17
AMU MCA PYQ 2025
2
Suppose that in a C program snippet, following statements are used:
i) sizeof(int)
ii) sizeof(int*)
iii) sizeof(int**) Assuming size of pointer is 4 bytes and size of int is also 4 bytes, pick the most correct answer.
1
Only (i) would compile successfully and it would return size as 4 2
(i), (ii) and (iii) would compile successfully and size of each would be same i.e. 4 3
(i), (ii) and (iii) would compile successfully but the size of each would be different 4
(ii) and (iii) would result in compile error but (i) would compile and result in size as 4 Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Given that size of int = 4 bytes and size of pointer = 4 bytes,
sizeof(int) = sizeof(int*) = sizeof(int**) = 4 bytes.
Qus : 29
AMU MCA PYQ 2025
4
In a Dequeue:
1
Insertion can take place at both ends but deletion can take place only at one end 2
Deletion can take place at both ends but insertion can take place only at one end 3
Insertion can take place at one end and deletion can take place at another end 4
Insertion and deletion both can take place at any end Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Deque (Double Ended Queue) allows insertion and deletion at both ends.
Qus : 37
AMU MCA PYQ 2025
1
Consider the array definition
int num[10] = {3, 3, 3};
Pick the correct answer:
1
num[9] is the last element of the array num 2
The value of num[8] is 5 3
The value of num[3] is 3 4
None of these Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Array size is 10, so valid indices are 0 to 9.
Hence num[9] is the last element.
Uninitialized elements are set to 0.
Qus : 42
AMU MCA PYQ 2025
1
What is the meaning of ‘Underflow’ in the context of data structure?
1
When a data structure is empty and an element is retrieved from that data structure 2
When a data structure is empty and an element is inserted into that data structure 3
When a data structure is full and an element is retrieved from that data structure 4
When a data structure is full and an element is inserted into that data structure Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Underflow occurs when deletion is attempted on an empty data structure.
Qus : 52
AMU MCA PYQ 2025
1
Let $f(x,y) = \sqrt{|xy|}$, then the value of $f_x(0,0)$ and $f_y(0,0)$ is:
1
$0,0$ 2
$0,1$ 3
$1,0$ 4
$1,1$ Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution At $(0,0)$, function is not differentiable in directions involving $x$ or $y$, hence partial derivatives are zero.
Qus : 54
AMU MCA PYQ 2025
4
Three identical fair dice are thrown independently. Let $Y$ denote the number of dice showing even numbers on their upper faces. Then the variance of random variable $Y$ is:
1
$\frac{1}{2}$ 2
$1$ 3
$\frac{3}{2}$ 4
$\frac{3}{4}$ Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Each die has probability $p = \frac{1}{2}$ of showing an even number.
So $Y \sim \text{Binomial}(3, \frac12)$
Variance
$= npq = 3 \times \frac12 \times \frac12 = \frac{3}{4}$
Qus : 55
AMU MCA PYQ 2025
2
Optimal value of the following LPP:
Max $z = 2x_1 + 3x_2$
Subject to
$6x_1 + 5x_2 \le 25$
$x_1 + 3x_2 \le 10$
$x_1, x_2 \ge 0$
1
12 2
13.5 3
11.92 4
12.56 Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Corner points of feasible region are checked.
Maximum value of $z$ occurs at intersection of
$6x_1 + 5x_2 = 25$ and $x_1 + 3x_2 = 10$.
Substituting gives $x_1 = 2.5$, $x_2 = 3$.
$z = 2(2.5) + 3(3) = 5 + 9 = 13.5$.
Qus : 57
AMU MCA PYQ 2025
2
Simpson’s one-third rule for evaluation of $\int_a^b f(x),dx$ requires the interval $[a,b]$ to be divided into:
1
an odd number of subintervals of equal width 2
an even number of subintervals of equal width 3
any number of subintervals of equal width 4
any number of subintervals Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Simpson’s $\frac{1}{3}$ rule requires an even number of subintervals.
Qus : 59
AMU MCA PYQ 2025
3
In simple random sampling without replacement, the probability that a specified unit of the population will be included in the sample
(Here $n$ denotes sample size and $N$ denotes population size) is:
1
$\frac{1}{N}$ 2
$\frac{1}{{}^NC_n}$ 3
$\frac{n}{N}$ 4
$\frac{1}{N^n}$ Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution In simple random sampling, each unit has equal chance.
Probability of inclusion $= \frac{\text{sample size}}{\text{population size}} = \frac{n}{N}$.
Qus : 60
AMU MCA PYQ 2025
3
Condition that the plane $lx + my + nz = p$ should touch the ellipsoid
$\frac{x^2}{a^2} + \frac{y^2}{b^2} + \frac{z^2}{c^2} = 1$ is:
1
$\frac{l^2}{a} + \frac{m^2}{b} + \frac{n^2}{c} = p^2$ 2
$\frac{l^2}{a^2} + \frac{m^2}{b^2} + \frac{n^2}{c^2} = \frac{1}{p^2}$ 3
$a^2l^2 + b^2m^2 + c^2n^2 = p^2$ 4
None of these Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution For a plane to be tangent to the ellipsoid, the condition is
$a^2l^2 + b^2m^2 + c^2n^2 = p^2$.
Qus : 61
AMU MCA PYQ 2025
2
The following system of equations:
$2x_1 + x_2 - x_3 = 2$
$3x_1 + 2x_2 + x_3 = 3$
has:
1
All degenerate solutions 2
2 degenerate and 1 non-degenerate solutions 3
All non-degenerate solutions 4
1 degenerate and 2 non-degenerate solutions Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Rank of coefficient matrix equals rank of augmented matrix but less than number of variables, hence there are 2 degenerate and 1 non-degenerate solutions.
Qus : 65
AMU MCA PYQ 2025
4
Which of the following statements is not true?
1
Mean of binomial distribution is 4 and variance is 3 2
Mean of Poisson distribution is 2 and variance is 2 3
Mean of normal distribution is 3 and variance is 12 4
Mean of geometric distribution is 2 and variance is 1 Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution For geometric distribution, variance is $\frac{q}{p^2}$, which is not equal to 1 for mean 2.
Qus : 66
AMU MCA PYQ 2025
1
Let $X$ be a continuous random variable such that $E|X| < \infty$ and
$P\left(X \ge \frac12 + x\right) = P\left(X \le \frac12 - x\right)$ for all $x \in \mathbb{R}$.
Then:
1
$E(X)=\frac12$ and Median$(X)=\frac12$ 2
$E(X)=\frac12$ and Median$(X)>\frac12$ 3
$E(X)<\frac12$ and Median$(X)=\frac12$ 4
$E(X)<\frac12$ and Median$(X)>\frac12$ Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution The given condition shows symmetry about $\frac12$.
Hence both mean and median are $\frac12$.
Qus : 67
AMU MCA PYQ 2025
3
A discrete random variable $X$ taking non-negative values has the following moment generating function
$M_X(t) = e^{2(e^t-1)},; -\infty < t < \infty$
Then, the value of $P(X \le 1)$ is:
1
$e^{-2}$ 2
$2e^{-2}$ 3
$3e^{-2}$ 4
$e^{-1}$ Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Given MGF corresponds to Poisson distribution with $\lambda = 2$.
$P(X \le 1) = P(0)+P(1)$
$= e^{-2} + 2e^{-2} = 3e^{-2}$
Qus : 70
AMU MCA PYQ 2025
4
The solution of the differential equation
$y\sin 2x,dx - (y^2 + \cos^2 x),dy = 0$ is:
1
$3y^2\cos 2x + 3y + 2y^3 = C$ 2
$3y^2\sin 2x + y^2 + 2y = C$ 3
$3y\cos 2x + 3y + 2y^3 = C$ 4
$3y\sin 2x + y^2 + 2y^3 = C$ Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution After making the equation exact and integrating, the solution obtained is
$3y\sin 2x + y^2 + 2y^3 = C$.
Qus : 71
AMU MCA PYQ 2025
4
The solution of
$3\frac{\partial^2 z}{\partial x,\partial y} - 2\frac{\partial^2 z}{\partial y^2} - \frac{\partial z}{\partial y} = 0$ is:
1
$\phi_1(y) + e^{x/3}\phi_2(3y+2x)$ 2
$\phi_1(x) + e^{y/3}\phi_2(3y+2x)$ 3
$\phi_1(y) + e^{y/2}\phi_2(3y+2x)$ 4
$\phi_1(x) + e^{x/3}\phi_2(3y+2x)$ Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Solving the auxiliary equation gives complementary function of the form
$\phi_1(x) + e^{x/3}\phi_2(3y+2x)$.
Qus : 74
AMU MCA PYQ 2025
3
Let $T:\mathbb{R}^4 \rightarrow \mathbb{R}^3$ be a linear transformation defined by
$T(x_1,x_2,x_3,x_4)=C(x_1-x_2,;x_2-x_3,;x_3-x_4)$
Then which of the following is true?(i) $\dim(\ker T)=1$ if $C \ne 0$
(ii) $\dim(\ker T)=0$ if $C=0$
(iii) $\dim(\ker T)=1$ if $T$ is onto
1
(i) & (ii) 2
(ii) & (iii) 3
(i) & (iii) 4
(i), (ii) & (iii) Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution For $C \ne 0$, kernel has dimension 1.
If $T$ is onto, rank is 3, hence nullity is 1.
Qus : 75
AMU MCA PYQ 2025
4
Which of the following is a 2-dimensional subspace of $\mathbb{R}^3$?
1
${(0,x,0)\mid x\in\mathbb{R}}$ 2
${(0,x,0)\mid x\in\mathbb{R}}\cup{(0,0,y)\mid y\in\mathbb{R}}$ 3
${(x,y,0)\mid x,y\in\mathbb{R},;x\ne y}$ 4
${(0,x,z)\mid x,z\in\mathbb{R}}$ Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Set ${(0,x,z)}$ contains two independent parameters and satisfies subspace properties.
Qus : 76
AMU MCA PYQ 2025
1
Let $X_1, X_2, … , X_n$ be i.i.d. random variables having pdf
$f(x) = (1/θ) e^{-x/θ},; 0 < x < ∞,; θ > 0$
The cdf of the largest order statistic
$X_{(n)} = max(X_1, X_2, … , X_n)$
is:
1
$F_n(x)=(1-e^{-x/\theta})^n$ 2
$F_n(x)=1-e^{-nx/\theta}$ 3
$F_n(x)=1-(1-e^{-x/\theta})^n$ 4
$F_n(x)=\frac{n}{\theta}(1-e^{-x/\theta})^{n-1}e^{-x/\theta}$ Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution First find the cdf of a single variable $X$:
$F(x)=P(X\le x)=\int_0^x \frac{1}{\theta}e^{-t/\theta},dt
=1-e^{-x/\theta}$
For the largest order statistic,
$F_{X_{(n)}}(x)=P(X_{(n)}\le x)$
Largest $\le x$ means all observations $\le x$:
$P(X_{(n)}\le x)=P(X_1\le x,\dots,X_n\le x)$
Since variables are independent,
$= [F(x)]^n = (1-e^{-x/\theta})^n$
Qus : 79
AMU MCA PYQ 2025
2
Which of the following is true?
1
*defined by $ a * b = (a + b)/2 $ is a binary operation on $ Z $ 2
*defined by $a * b = (a + b)/2$ is a binary operation on $Q$ 3
All binary commutative operations are associative 4
Subtraction is a binary operation on $N$ Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution For rational numbers $Q$, $(a+b)/2$ is always rational, so the operation is closed on $Q$.
It is not closed on $Z$ or $N$.
Qus : 80
AMU MCA PYQ 2025
3
A box contains tickets numbered $1$ to $N$.
Let $X$ be the largest number drawn in $n$ random drawings with replacement.
Then the probability $P(X = k)$ is:
1
$k/N$ 2
$(k/N)^n$ 3
$(k/N)^n - ((k-1)/N)^n$ 4
$1/N$ Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution $P(X \le k) = (k/N)^n$
$P(X \le k-1) = ((k-1)/N)^n$
So,
$P(X = k) = P(X \le k) - P(X \le k-1)$
$= (k/N)^n - ((k-1)/N)^n$
""