Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations

AMU MCA Previous Year Questions (PYQs)

AMU MCA 2022 PYQ


AMU MCA PYQ 2022
Response error is a type of:





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
If the random variable $X$ has the density function $f(x)=e^{x-2}$ for $x<2$, and $f(x)=0$ otherwise, then the 75th percentile and third quartile is





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
If a random sample of size 20 from a normal population with variance 225 has mean $\bar{x}=64.3$, then the 95% confidence interval for the population mean $\mu$ is (Given that $Z_{0.025}=1.96$).





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
A discrete random variable $X$ satisfies the memory less property, then the random variable $X$ follows





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
Uniform distribution is a particular case of Beta distribution with parameters





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
While testing the independence of attributes using Chi-square distribution, suppose attribute $A$ is specified into three classes and attribute $B$ is classified into four classes, then the degree of freedom of Chi-square test is:





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
f a random variable $X$ takes the values $1, 2, 3, 4$ such that $2P(X=1)=3P(X=2)=P(X=3)=5P(X=4)$, then $P(X=2)$ is:





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
Let $p$ be the probability that a coin will fall head in a single toss in order to test $H_0 : p = 1/2$ against $H_1 : p = 3/4$. The coin is tossed 5 times and $H_0$ is rejected if more than 3 heads are obtained. Then the probability of Type-I error is:





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
Suppose that there are $K$ treatments and $n$ blocks in a randomized block design. In analysis of variance for this design, the error degrees of freedom is:





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
In $4 \times 4$ Latin square design, the error degrees of freedom is:





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
he following LPP:
Maximize $Z = 6x_1 - 2x_2$

Subject to:
$2x_1 - x_2 \le 2$
$x_1 \le 3$
$x_1, x_2 \ge 0$
has optimal value as





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
The following LPP:
Minimize $Z = x - y$

Subject to:
$2x + 3y \le 6$
$0 \le x \le 4$
$0 \le y \le 3$

then the number of extreme points on the feasible region and the number of basic feasible solutions are





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
In an analysis of variance, one estimate of variance $(\sigma^2)$ is based upon the difference between the treatment means and the





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
Thirty men and thirty women with knee pain were subjects in an experiment to determine the effectiveness of a new pain medication. Fifteen of the 30 men and 15 of the 30 women were chosen randomly to receive the new drug. The remaining 15 men and 15 women received a placebo. The decrease in pain was measured for each subject. Then the design of experiment is





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
A tie for leaving variables in simplex procedure implies





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
If $\alpha, \beta, \gamma$ be the angles which a line subtends with the positive direction of coordinate axes, then $\sin^2 \alpha + \sin^2 \beta + \sin^2 \gamma$ equals





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
The plane $ax+by+cz=0$ cuts the cone $yz+zx+xy=0$ in perpendicular lines if





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
The set $Z$ of all integers forms a group with respect to binary operation $$ defined by $ab=a+b+1$, $\forall a,b \in Z$. Then the identity is





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
Which of the following relations is not true (Symbols have their usual meanings)





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
$\lim_{x\to0}\dfrac{\sin x - x + \frac{x^3}{6}}{x^5}$ is equal to





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
The number of asymptotes of the curve $y^2=ax$ is





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
In what direction is the derivative of $f(x,y)=x^2-xy+y^2$ at $P(1,-1)$ equal to zero?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
The value of the integral $I=\iint_R e^{x^2+y^2},dy,dx$ where $R$ is the semicircular region bounded by the $x$-axis and the curve $y=\sqrt{1-x^2}$ is





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
If $I=\oint_C e^x,dx+2y,dy-dz$, where $C$ is the curve $x^2+y^2=4$ and $z=2$, then the value of $I$ is





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
If Laplace transform $L{F(x)}=\frac1{s}e^{-3s}$, then $L{e^{-x}F(3x)}$ is





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
Solution of differential equation $y^2\log y = xy\frac{dy}{dx}+\left(\frac{dy}{dx}\right)^2$ is





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
The tangents at the extremities of a focal chord of a parabola intersect on the directrix at an angle





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
The condition that the line $\dfrac{x}{a}\cos\theta+\dfrac{y}{b}\sin\theta=1$ touches the circle $r=2c\cos\theta$ is





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
If the centre of mass of three particles of masses 10, 20 and 30 gram be at the point $(1,-2,3)$, where should a fourth particle of 40 gram be placed so that the combined centre of mass may be $(1,1,1)$ ?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution


AMU MCA PYQ 2022
The directory can be viewed as ………… that translate filenames into their directory entries





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

A directory maps file names to metadata entries, just like a symbol table.

AMU MCA PYQ 2022
The minimum number of comparisons required to determine if an integer appears more than $n/2$ times in a sorted array of $n$ integers is





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Binary search is used to find first and last occurrence ⇒ logarithmic comparisons.

AMU MCA PYQ 2022
In network terminology UTP means





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

UTP is the standard copper networking cable.

AMU MCA PYQ 2022
Which one of the following is not a client–server application?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Ping uses ICMP and is not a client–server application.

AMU MCA PYQ 2022
The physical location of a record determined by a formula that transforms a file key into a record location is





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Hash function directly maps key to location.

AMU MCA PYQ 2022
Physical topology of FDDI is





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

FDDI uses a dual ring physical topology.

AMU MCA PYQ 2022
A semaphore is a shared integer variable





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Semaphore value is never allowed to become negative.

AMU MCA PYQ 2022
In the following program, how many times “for” loop will be executed?
#include <stdio.h>
int main()
{
    int i = 59, j = 10;
    for( ; j ; i )
        printf("%d", i);
}





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Loop condition is j, which is non-zero and never changes. Hence the loop runs infinitely.

AMU MCA PYQ 2022
Match the following for Unix system calls:
 List–I List-II
 1. exec (i) Creates a new process
 2.brk (ii) Invokes another program overlaying memory space with a copy of an executable file
 3. wait (iii) To increase or decrease the size of data region
 4. fork (iv) A process synchronizes with termination of child process





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

exec → overlays program ⇒ (ii)
brk → changes data size ⇒ (iii)
wait → waits for child ⇒ (iv)
fork → creates process ⇒ (i)

AMU MCA PYQ 2022
What are the minimum possible logic gates for the Boolean function
$F(w,x,y,z)=\Sigma(3,7,11,13,14,15)$ ?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

The given function simplifies to a minimal SOP form requiring 8 basic logic gates (after Karnaugh map minimization).

AMU MCA PYQ 2022
A pointer is





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

A pointer is defined as a variable that stores the address of another variable.

AMU MCA PYQ 2022
Which of the following is not a collision resolution technique?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Hash addressing and chaining are collision resolution techniques. Indexing is not.

AMU MCA PYQ 2022
The Gray code of $32_{10}$ is:





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Binary of 32 is $100000$ Gray code = first bit same, rest XOR with previous bit ⇒ $110000$ → padded form 1110100

AMU MCA PYQ 2022
What is the output of the program given below?
#include <stdio.h>
void main()
{
    int i = 500, j = 1000, k = 100;
    if (j == 1000 && i > 400)
        k = (j == 1000 && i > 499);
    printf("k=%d", k);
    else
        printf("k=%d", k);
}





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Condition j==1000 && i>400 is true, so if part executes. Inside: (j==1000 && i>499) → both true → value 1 assigned to k. Output is k=1.

AMU MCA PYQ 2022
Ethernet uses





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Classic Ethernet is based on bus topology (logical bus).

AMU MCA PYQ 2022
Consider a relation $R(A,B,C,D)$ with set of functional dependencies $AB \rightarrow CD$ and $D \rightarrow A$. Let $R_1(A,D)$ and $R_2(B,C,D)$ are two decompositions over $R$. Which of the following statement is TRUE?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

The decomposition is lossless (common attribute $D$ determines $A$), but not dependency preserving (FD $AB \rightarrow CD$ is lost).

AMU MCA PYQ 2022
In which file, the records are organized in sequence and an index table is used to speed up access to the records without requiring a search of the entire file?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Indexed Sequential File uses sequential storage + index for fast access.

AMU MCA PYQ 2022
Find the odd term out





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

MS-DOS, UNIX, and WINDOWS-95 are operating systems, while C++ is a programming language.

AMU MCA PYQ 2022
What is the output of the following program? #include int main() { int i = 100, j = 300, k; j = i ^ j; i = i ^ j; j = i ^ j; printf("The values of i and j are %d, %d", i, j); return 0; }





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

This is the XOR swap technique. After execution, values of i and j are swapped. So output is 300, 100.

AMU MCA PYQ 2022
What is the value of Q in the following circuit?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

From the logic diagram: Top gate gives $A\cdot B$ Lower combination gives $A\cdot C$ and $B\cdot C$ Final OR combines all three terms So, $Q = A\cdot B + A\cdot C + B\cdot C$

AMU MCA PYQ 2022
Data Mining can be used as a ………… tool.





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Data mining is mainly used as a research and analysis tool to discover patterns.

AMU MCA PYQ 2022
A computer-controlled device for imparting training that duplicates the work environment is a





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

A simulator reproduces real working conditions for training purposes.

AMU MCA PYQ 2022
What is the purpose of the following C-function?
void str_function(char *s1)
{
    char *p1, *p2, t1;
    p1 = s1;
    p2 = s1;
    while (*p2 != '\0')
        p2++;
    p2--;
    while (p1 < p2)
    {
        t1 = *p1;
        *p1 = *p2;
        *p2 = t1;
        p1++;
        p2--;
    }
}





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Pointers move from start and end and swap characters until they meet ⇒ string is reversed.

AMU MCA PYQ 2022
How many swapping will be required to sort the following list in increasing order using Bubble sort algorithm? $72,\ 12,\ 40,\ 5,\ 3,\ 4$





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Number of swaps in bubble sort = number of inversions. Total inversions = 13.

AMU MCA PYQ 2022
Which of the following processor has a fixed length of instruction?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

RISC architecture uses fixed-length instructions.

AMU MCA PYQ 2022
A top-down parse generates:





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Top-down parsing always produces left-most derivation.

AMU MCA PYQ 2022
The cumulative addition of the four bits $(1 + 1 + 1 + 1)$ gives





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

$1+1+1+1=4$ and binary of 4 is $100$.

AMU MCA PYQ 2022
What is the value of $X$ in the following equation? $(11101101000)2 + (765){16} = (X)_8$





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

$(11101101000)2 = 1896{10}$ $(765){16} = 1893{10}$ Sum $= 3789_{10}$ $(3789)_{10} = (7315)_8$

AMU MCA PYQ 2022
How does the software trigger an interrupt?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Software interrupt is generated by executing a system call instruction.

AMU MCA PYQ 2022
Which of the following system call is used to create new process in UNIX operating system?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

fork() creates a new child process in UNIX.

AMU MCA PYQ 2022
Which of the following is not a type of database?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Hierarchical, network, and distributed are database models. Decentralized is not a standard database type.

AMU MCA PYQ 2022
What will be the output of the following code fragment? (Assume that i, j and k are int variables)

i = j = k = 1;
(j + 2) % k / (i + 1);






Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

$j=1,\ k=1,\ i=1$ $(j+2)%k = 3%1 = 0$ $0/(i+1)=0/2=0$

AMU MCA PYQ 2022
The size of IP address in IPv4 and IPv6 are





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

IPv4 uses 32-bit addresses, IPv6 uses 128-bit addresses.

AMU MCA PYQ 2022
Match the following:
 List–I
 List–II
 (A) No attribute can be added
 (1) Determinants
 (B) Uniquely identified a row
 (2) Candidate key
 (C) A constraint between two attribute
 (3) Non-redundancy
 (D) Group of attributes on the left hand side of arrow of functional dependency

 (4) Functional dependency






Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Solution:

No attribute can be added → Non-redundancy (3)

Uniquely identifies a row → Candidate key (2)

Constraint between attributes → Functional dependency (4)

LHS of FD → Determinants (1)

So correct matching: A-3, B-2, C-4, D-1

AMU MCA PYQ 2022

Consider a relation schema $R(A,B,C,D)$ with the following set of functional dependencies:
$FD={A\rightarrow BC,\ B\rightarrow C,\ A\rightarrow B,\ AB\rightarrow C,\ AC\rightarrow D}$.
Which of the following is irreducible set of the above defined FDs?






Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

From $A\rightarrow B$ and $B\rightarrow C$, we get $A\rightarrow C$.
Also from $AC\rightarrow D$ and $A\rightarrow C$, we get $A\rightarrow D$.
Minimal irreducible cover is:
$A\rightarrow B,\ B\rightarrow C,\ A\rightarrow D$

AMU MCA PYQ 2022
If we have six stack operations; pushing and popping each of $A$, $B$ and $C$ such that push$(A)$ must occur before push$(B)$ which must occur before push$(C)$, then $A,B,C$ is a possible order for the pop operations. Which one of the following orders could not be the order the pop operations are run, if we are to satisfy the requirements described above?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Push order: $A \rightarrow B \rightarrow C$ Valid pop orders must follow stack (LIFO) constraints. BAC cannot occur under stack rules with given push order.

AMU MCA PYQ 2022
What is the name of storage device which is used to compensate for the difference in rates of flow of data from one device to another?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

A buffer temporarily stores data to handle speed mismatch between devices.

AMU MCA PYQ 2022
What will be the output of the following program?
int main()
{
    int *p, a = 12;
    p = &a;
    *p += 1;
    printf("12,");
    --*p;
    printf("%d, %d\n", *p, a);
    return 0;
}






Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

a=12 → *p+=1 makes a=13. Then --*p makes a=12. Printed output becomes 12,12,12.

AMU MCA PYQ 2022
You want to check whether a given set of items is sorted or not. Which sorting method will be most efficient if it is already sorted?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Insertion sort runs in O(n) for already sorted data.

AMU MCA PYQ 2022
What is the value of $X$ in the following equation?
$(21043)8 + (765){16} = (X)_2$





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

$(21043)8 = 8739{10}$ $(765){16} = 1893{10}$ Sum $=10632_{10}$ $(10632)_{10} = (1011101001011)_2$

AMU MCA PYQ 2022
Who invented cut / copy & paste?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Cut, copy and paste were invented by Larry Tesler at Xerox PARC.

AMU MCA PYQ 2022
The first operating system of Micro-processor is …………





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

The first widely used OS for microprocessors was CP/M (Control Program for Microcomputers).

AMU MCA PYQ 2022
What are two types of semaphores?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Semaphores are classified into Counting and Binary semaphores.

AMU MCA PYQ 2022
Which statement is true about process 0 in the Unix operating system?

I. Process 0 is called init process.
II. Process 0 is not created by fork system call.
III. After forking process 1, process 0 becomes swapper process.
IV. Process 0 is a special process created when system boots.





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Process 0 is created at boot, not by fork, becomes swapper, and is special. Init is process 1, not process 0.

AMU MCA PYQ 2022
The criteria for calculation of priority of a process are:

(A) Weight assigned to the group of user
(B) Processor utilization by an individual process
(C) Processor utilization by a user as group of process (priority calculated in fair scheduler)





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

All listed factors are considered in fair scheduling.

AMU MCA PYQ 2022
A front-end processor is usually used in





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Front-end processors are mainly used for I/O handling in time-sharing systems.

AMU MCA PYQ 2022
What are the minimum number of bits required to multiply two numbers $X = 25$ and $Y = -1030$ using Booth’s multiplication algorithm?





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

$25$ requires 6 bits (including sign). $1030$ requires 11 bits, plus sign ⇒ 12 bits. Booth’s algorithm needs bits equal to the larger operand size.

AMU MCA PYQ 2022
What is the output for the program given below?
#include <stdio.h>
int main()
{
    char i = 2;
    switch(i)
    {
        case '1':
            printf("Black\n");
        case '2':
            printf("White\n");
        default:
            printf("Red\n");
    }
    printf("Blue");
    return 0;
}





Go to Discussion

AMU MCA Previous Year PYQ AMU MCA AMU MCA 2022 PYQ

Solution

Solution:

i = 2 (numeric), but case '2' is character constant with ASCII value 50

No case matches, so default executes → prints Red

After switch, printf("Blue") always runs


AMU MCA


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

AMU MCA


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Limited Seats
× Aspire MCA Promotion

Game Changer NIMCET Test Series 2026

Boost your preparation with mock tests, analysis and rank-focused practice.

JOIN NOW
Ask Your Question or Put Your Review.

loading...