Hi Friends,
My name is RAJENDER am from MLRIT.. There was an “off campus drive” of “Robert Bhosh” on 27Th Jan 2012 in Vardhaman Engineering College,Shamshabad….and the reporting time was 9:30 but the registration was too late and students have come in huge numbers (I guess its around 1500 members ) and the college staff didnt manage these many people and hence they conducted the registration process first only for the ECE guys and then later for CSE and IT Students…My exam was started around 3:00 pm in the afternoon…The Paper is different for CSE and ECE students ..Beware of that and the technical questions were also different for the people of ECE in comparison of CSE..off course the pattern was same.
Be very patient in Filling the OMR Sheet…it would consume a lot of time..Dont forget to take Pencils with u.
COMPUTER SCIENCE OF ENGINEERING
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 you 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<<“thegiven below?
value is:”<
return 0;
}
A:d value is =0 B: d value is =1 C:compile error D:d value cannot be specified
7.wt wil be d o/p of d prog given below?
#include
using namespace std;
class CDummy
{
public;
static int n;
CDummy () {n++];
-CDummy() {n–};
};
int CDummy :: n =0;
int main()
{
CDummy a;
CDummy b[5];
CDummy *c=new CDummy;
cout<<a.n<<“, “;
delete c;
cout<<
return 0;
}
A:0,0 B:1,0 C:5,4 D:7,6