GENERAL INSTRUCTIONS
*Test consists of two parts
*Part A(Qns 01-35)-Computer Science
*Part B(36-60)-Aptitude & English Language
NOTE:The same question paper would be coming for the cse and it students....Better to have a glance of this paper before u take the written exam...
1.What will be the output of the program given below?
#include
char i;
int try1();
int try2(char *)
int main()
{
try1();
return 0;
}
int try1()
{
static char *ptr="abcde";
i=*ptr;
printf("%c",i);
try2(++ptr);
return 0;
}
int try2(char *t)
{
static char *pt;
pt=t+strlen(t)-1;
if(i!=*pt--)
if(t!=pt)
try1();
return 0;
}
A:ab B:abcd C:abc D:abcde
2.what will be the output of d program given below?
#include
void e (int);
int main()
{
int a;
a=3;
e(a);
return 0;
}
void e(int n)
{
if(n>0)
{
e(--n);
printf("%d",a);
e(--a);
}
}
A:0120 B:01221 C:1201 D:0211
3.wt wil be d value of y in d following expression?
y=(5>4)==1;
A: -1 B:0 C:1 D:2
4.in which of the following data type all the fields overlay each other and at a time nly one field can be used?
A:structure B:Enum C:Array D:Union
5.consider d expression given below
m+=--n;
assume dat m=5,n=2 bfore d stmt executs.
wt wil d value of m,n after d execution?
A:m=4,n=1 B:m=6,n=1 C:m=6,n=2 D:compile time error
6.wt wil be d o/p of d prog given below?
#include
using namespace std;
void f(int *iptr)
{
*iptr=1;
}
int main()
{
int i=0;
f(&i);
cout