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

WB JECA 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
logo

What is the output of the following code snippet?  
#include <stdio.h>
main() {
int x = 65, *p = &x;
void *q = p;
char *r = q;
printf("%c", *r);
}

(A) $A$  
(B) $Z$  
(C) $65$  
(D) None of the above  

1
2
3
4

logo

What is the output of the following C-program?
#include
int main() { 
const int a=10; 
printf("%d", +a); 
return 0; 
}

1
2
3
4

logo

How can you display a list of all files including the hidden files?

1
2
3
4

logo

Which C keyword is used to extend the visibility of variables?

1
2
3
4

logo

What is the output of the following C-program?\n#include\n#define CUBE(x) (x*x*x)\nint main() { int a, b=3; a = CUBE(b++); printf("%d, %d\n", a, b); return 0; }

1
2
3
4

logo

What is the output of following C code? int main(){ int x=2, y=1; x *= x + y; printf("%d", x); }

1
2
3
4

logo

What is the output of the following code snippet? #include int main(){ int x; x = 5 > 8 ? 10 : 1 != 2 < 5 ? 20 : 30; printf("%d", x); return 0; }

1
2
3
4

logo

What will be the output of the C code? #include int main(){ int a=1; if(a--) printf("True"); if(a++) printf("False"); }

1
2
3
4

logo

What is the output of the C-program? int main(){ int i=0; int x=i++; int y=++i; printf("%d %d", x,y); }

1
2
3
4

logo

What is the output of the C-program? int main(){ int i=0; while(i=0) printf("True"); printf("False"); }

1
2
3
4

WB JECA MCA


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

Click Here to
View More

WB JECA MCA


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

Click Here to
View More

Ask Your Question or Put Your Review.

loading...