Siemens Paper On 22Nd July, 2008
Siemens Paper On 22Nd July, 2008
Hi frens.i wood wanna share tis resource about siemens for all the aspirants.SIEMENS had
come to our college on 22/july/2008.These were the aptitude question
1) The prototype declaration for a pointer to a function which returns a pointer to an integer is:
a. int (**pfi)();
b. int (*)(*pfi)();
c.(*int) pfi ();
d. int * (*pfi)();
Ans: D
2) main()
{
static int a[20];
int i=0;
a[i]=i++;
printf(%d%d%d, a[0],a[i],i );
}
a. 0 0 0
b. 0 0 1
c. 1 1 1
d. Error
ans: b
5) void main(void)
{
Int y=128;
Const int x=y;
Printf(%d,x);
}
a. 128
b. Garbage
c. 0
d. Error
ans a
11). Main()
{
Char arr[12];
Printf(%d,sizeof(arr));
}
a. 24
b. 12
c. 36
d. 2
ans:b
13). Main()
{
Int I;
I=010;
Printf(%d,i);
}
a. 2
b. 8
c. 10
d. 4
ans:b
14). Main()
{
Const int val=5;
Const int *ptrval;
Ptrval=&val;
*ptrval=10;
Printf(%d,val);
}
a. 5
b. 10
c. Garbage
d. Error
ans: d
OS questions:
1) a page fault occurs when
a. system crashes due to lack of memory
b. page reffered belongs to a different program,
c. request for the page currently made is not in memory,
d. 1 & 2
ans:c
2) the basic criteria of selecting a page replacement algorithm for virtual memory management
is
a. low page fault rate
b. high page fault rate
c. high page modification rate
d. low page size
ans b
aptitude was simple.work a lot on seriesits part of all companys aptitudein siemens
aptitude questions on blood relations, series, work were asked.To be frank. im bad in
aptituden so u rbetter strengthen your technical, C n C++.
C n C++ is a part of parcel of all interviews