Aspire's Library

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

MAH CET MCA Previous Year Questions (PYQs)

MAH CET MCA C Programming Language PYQ


MAH CET MCA PYQ
What is the purpose of the 'break' statement in C?





Go to Discussion

MAH CET MCA Previous Year PYQ MAH CET MCA MAH MCA CET 2024 PYQ

Solution


MAH CET MCA PYQ
______ are used to compare two quantities and, depending on their relation, take certain decisions for that comparison.





Go to Discussion

MAH CET MCA Previous Year PYQ MAH CET MCA MAH MCA CET 2024 PYQ

Solution


MAH CET MCA PYQ
What will be the output of the following C code?

 #include<stdio.h>  
 int main() 
{     
int x = 10, y = 20;     
int z = x;    
x = y;    
y = z;     
printf("%d %d", x, y);     
return 0; 
 }





Go to Discussion

MAH CET MCA Previous Year PYQ MAH CET MCA MAH MCA CET 2024 PYQ

Solution


MAH CET MCA PYQ
What is the output of the below program? 
int main() 
{     
int a, b, sum;     
sum = 0;     
for (a = 0; a < 5; a++) 
{         
for (b = 0; b < 5; b++) 
{             
sum++;         
}    
}     
printf("%d", sum);     
return 0; 
 }






Go to Discussion

MAH CET MCA Previous Year PYQ MAH CET MCA MAH MCA CET 2024 PYQ

Solution


MAH CET MCA PYQ
What is the correct syntax for declaring a variable in C?





Go to Discussion

MAH CET MCA Previous Year PYQ MAH CET MCA MAH MCA CET 2024 PYQ

Solution


MAH CET MCA PYQ
What will be the value of x so that "Kavita" will be printed? 
 main() 
{     
int x;     
if (x > 4) 
printf("Manisha");     
else 
printf("Kavita"); 
 }





Go to Discussion

MAH CET MCA Previous Year PYQ MAH CET MCA MAH MCA CET 2024 PYQ

Solution


MAH CET MCA PYQ
Library function getch() belongs to which header file in C language?





Go to Discussion

MAH CET MCA Previous Year PYQ MAH CET MCA MAH MCA CET 2024 PYQ

Solution


MAH CET MCA PYQ
Which of the following is a correct way to declare a variable in C?





Go to Discussion

MAH CET MCA Previous Year PYQ MAH CET MCA MAH MCA CET 2025 (Shift 1) PYQ

Solution

In C language, variable declaration syntax is datatype variable_name;. Hence, the correct declaration is int x;.

MAH CET MCA PYQ
#include <stdio.h>
int main() {
    printf("%d", 5 + 3 * 2);
    return 0;
}





Go to Discussion

MAH CET MCA Previous Year PYQ MAH CET MCA MAH MCA CET 2025 (Shift 1) PYQ

Solution

According to the precedence of operators, multiplication (*) is evaluated before addition (+). So, $5 + 3 * 2 = 5 + 6 = 11$.


MAH CET MCA


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

Click Here to
View More

MAH CET MCA


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

Click Here to
View More

Ask Your Question or Put Your Review.

loading...