Jamia Millia Islamia MCA C Programming Language Previous Year Questions (PYQs) – Page 2 of 5

Jamia Millia Islamia MCA C Programming Language Previous Year Questions (PYQs) – Page 2 of 5

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

What is the output of the following C code segment?

int i;
for(i = 0; i <= 2; i++)
{
    switch(i)
    {
        case 1: printf("%2d", i);
        case 2: printf("%2d", i); continue;
        default: printf("%2d", i);
    }
}

1
2
3
4

logo

 What is the output of the following C program?

int main()
{
    char ch = 'A';
    int x = 97;
    int y = sizeof(++x);
    printf("\nx is %d", x);
    while (ch <= 'F')
    {
        switch (ch)
        {
            case 'A':
            case 'B':
            case 'C':
            case 'D': ch++; break;
            case 'E':
            case 'F': ch++;
        }
        putchar(ch);
    }
    return 0;
}


1
2
3
4

logo

What is the output of following C program?

void e(int x)
{
    if (x > 0)
    {
        e(- -x);
        printf("%2d", x);
        e(- -x);
    }
}

int main()
{
    e(3);
    return 0;
}

1
2
3
4

logo

Minimum & Maximum range of values for ‘float’ data type in C is:

1
2
3
4

logo

Which out of these is NOT valid for C language?

1
2
3
4

logo

The output of following C language statement is: printf("\nhello" + 3);

1
2
3
4

logo

Give output of following C code:

int count(unsigned x)
{
    int b;
    for (b = 0; x != 0; x >>= 1)
        if (x & 1)
            b++;
    return b;
}

int main()
{
    unsigned int a = 3;
    printf("%d", count(a));
    return 0;
}


1
2
3
4

logo

What is the data type of the following expression:  
expr₁ ? expr₂ : expr₃  
if expr₁ is of type float & expr₂ is of type int.

1
2
3
4

logo

 Which operator out of these has got the highest precedence?

1
2
3
4

logo

Which operator out of these has left to right associativity?


1
2
3
4

Jamia Millia Islamia MCA


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

Click Here to
View More

Jamia Millia Islamia MCA


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

Click Here to
View More

Ask Your Question or Put Your Review.

loading...