March 21st, 2017, 12:26 PM
Post Count Number #1
library.cusat.ac.in : CAT MCA - LET Model Question Paper Cochin University of Science and Technology
Name of the Organisation : University Of Library - Cochin University of Science and Technology
Name of the Exam : Common Admission Test (CAT)
Document Type : Sample Question Paper
Year: 2016
Subject: MCA (LET)
Website : www.library.cusat.ac.in/cat/2016/
Download Model/Sample Question Papers: http://www.indianjobtalks.com/uploads/76262-MCA-LET.pdf
CAT MCA - LET Model Question Paper :
1. What is the output of this C code?
#include <stdio.h>
void main()
{
int b = 5 - 4 + 2 * 5;
printf("%d", b);
}
A. 25
B. –5
C. 11
D. None of the above
2. What is the output of this C code?
#include <stdio.h>
void main()
{
int b = 5 & 4 & 6;
printf("%d", B.;
}
A. 5
B. 6
C. 3
D. 4
3. What is the output of this C code?
#include <stdio.h>
void main()
{
int b = 5 & 4 | 6;
printf("%d", b);
}
A. 6
B. 4
C. 1
D. 0
4. The decoded instruction is stored in ______ .
A. IR
B. PC
C. Registers
D. MDR
5. The instruction -> Add LOCA,R0 does,
A. Adds the value of LOCA to R0 and stores in the temp register
B. Adds the value of R0 to the address of LOCA
C. Adds the values of both LOCA and R0 and stores it in R0
D. Adds the value of LOCA with a value in accumulator and stores it in R0
6. Which registers can interact with the secondary storage?
A. MAR
B. PC
C. IR
D. R0
7. Switch statement accepts
A. int
B. char
C. long
D. All of the above
8. What is the output of this C code?
#include <stdio.h>
int main()
{
int i = 0;
for (i++; i == 1; i = 2)
printf("In for loop ");
printf("After loop\n");
}
A. In for loop after loop
B. After loop
C. Compile time error
D. Undefined behaviour
9. What is the output of this C code?
#include <stdio.h>
void main()
{
char *str = "";
do
{
printf("hello");
} while (str);
}
A. Nothing
B. Run time error
C. Varies
D. Hello is printed infinite times
10. What is the output of this C code?
#include <stdio.h>
void main()
{
int i = 0;
if (i == 0)
{
printf("Hello");
continue;
}
}
A. Hello is printed infinite times
B. Hello
C. Varies
D. Compile time error
11. What is the output of this C code?
#include <stdio.h>
void foo();
int main()
{
void foo(int);
foo(1);
return 0;
}
void foo(int i)
{
printf("2 ");
}
A. 2
B. Compile time error
C. Depends on the compiler
D. 1 2
12. Comment on the output of this C code:
#include <stdio.h>
int main()
{
int i;
for (i = 0;i < 5; i++)
int a = i;
printf("%d", a);
}
A. a is out of scope when printf is called
B. Redeclaration of a in same scope throws error
C. Syntax error in declaration of a
D. No errors, program will show the output 5
13. Property which allows to produce different executable for different platforms in C is called
A. File inclusion
B. Selective inclusion
C. Conditional compilation
D. Recursive macros
14. What is the output of this C code?
#include <stdio.h>
void main()
{
m();
m();
}
void m()
{
static int x = 5;
x++;
printf("%d", x);
}
A. 6 7
B. 6 6
C. 5 5
D. 5 6
15. What is the output of this C code?
#include <stdio.h>
int main()
{
int i = 10;
void *p = &i;
printf("%d\n", (int)*p);
return 0;
}
A. Compile time error
B. Segmentation fault/runtime crash
C. 10
D. Undefined behaviour