AMU MCA C Programming Language Previous Year Questions (PYQs) – Page 1 of 3

AMU MCA C Programming Language Previous Year Questions (PYQs) – Page 1 of 3

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations
Reset
Showing 23 questions
logo
🎓 AMU MCA📅 Year: 2020📚 Computer🏷 C Programming Language

Output of the following C-code
main()
{
    printf("Hello");
    main();
}


1
2
3
4

logo
🎓 AMU MCA📅 Year: 2020📚 Computer🏷 C Programming Language

Predict the output of the following program:
int main()
{
    int arr[5];
    // Assume base address of arr is 2000 and size of integer is 32 bit
    arr++;
    printf("%u", arr);
    return 0;
}


1
2
3
4

logo
🎓 AMU MCA📅 Year: 2025📚 Computer🏷 C Programming Language

What is the similarity between a structure, union and enumeration?

1
2
3
4

logo
🎓 AMU MCA📅 Year: 2022📚 Computer🏷 C Programming Language

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);
}

1
2
3
4

logo
🎓 AMU MCA📅 Year: 2022📚 Computer🏷 C Programming Language

A pointer is

1
2
3
4

logo
🎓 AMU MCA📅 Year: 2025📚 Computer🏷 C Programming Language

In the following program, how many times ‘for’ loop will be executed?
#include <stdio.h>
void main()
{
    int i = 5;
    for (;;)
        printf("%d", i);
}

1
2
3
4

logo
🎓 AMU MCA📅 Year: 2025📚 Computer🏷 C Programming Language

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
2
3
4

logo
🎓 AMU MCA📅 Year: 2022📚 Computer🏷 C Programming Language

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);
}

1
2
3
4

logo
🎓 AMU MCA📅 Year: 2022📚 Computer🏷 C Programming Language

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; }

1
2
3
4

logo
🎓 AMU MCA📅 Year: 2025📚 Computer🏷 C Programming Language

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
2
3
4

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

Ask Your Question or Put Your Review.

loading...