Showing posts with label Wipro technical interview questions. Show all posts
Showing posts with label Wipro technical interview questions. Show all posts
What is the output? int i=7 printf("%dn",i++*i++);
Posted by Raj
What is the output? int i=7 printf("%dn",i++*i++);
Answer: The answer is 56
The compiler will use right to left associtavity here and when it gets i++ then for the value of i, nothing happens then it gets *, it puts it in stack. then gets another i++ by this time the 1st ++ is executed
what is the output of the program? int n=f,m; n==m++; m==++n; printf(n, m);.?
Posted by Raj
what is the output of the program?
int n=f,m;
n==m++;
m==++n;
printf(n, m);.?
Ans: compilation error occurs
int n=f,m;
n==m++;
m==++n;
printf(n, m);.?
Ans: compilation error occurs
Wipro written test question paper 2012 at Hyderabad
Posted by Raj
Wipro written test question paper 2012 at Hyderabad
1. Given the following statement enum day = { jan = 1 ,feb=4, april, may} What is the value of may?
(a) 4
(b) 5
(c) 6
(d) 11
(e) None of the above
2. Find the output for the following C program
main
{int x,j,k;
j=k=6;x=2;
x=j*k;
printf("%d", x);
3. Find the output for the following C program
fn f(x)
{ if(x<=0) > return;
else f(x-1)+x;
}
4. Find the output for the following C program
i=20,k=0;
for(j=1;j {k+=j<10?4:3;> }
printf("%d", k);
Ans. k=4
5. Find the output for the following C program
int i =10
main()
{int i =20,n;
for(n=0;n<=i;) > {int i=10;
i++;
}
printf("%d", i);
Ans. i=20
6. Find the output for the following C program
int x=5;
y= x&y
7.Find the output for the following C program
Y=10;
if( Y++>9 && Y++!=10 && Y++>10)
{printf("%d", Y);
else
printf("%d", Y);
}
Ans. 13
8. Find the output for the following C program
f=(x>y)?x:y
a) f points to max of x and y
b) f points to min of x and y
c)error
Ans. (a)
9. What is the sizeof(long int)
(a) 4 bytes
(b) 2 bytes
(c) compiler dependent
(d) 8 bytes
10. Which of the function operator cannot be over loaded
(a) <= > (b) ?:
(c) ==
(d) *
1. Given the following statement enum day = { jan = 1 ,feb=4, april, may} What is the value of may?
(a) 4
(b) 5
(c) 6
(d) 11
(e) None of the above
2. Find the output for the following C program
main
{int x,j,k;
j=k=6;x=2;
x=j*k;
printf("%d", x);
3. Find the output for the following C program
fn f(x)
{ if(x<=0) > return;
else f(x-1)+x;
}
4. Find the output for the following C program
i=20,k=0;
for(j=1;j {k+=j<10?4:3;> }
printf("%d", k);
Ans. k=4
5. Find the output for the following C program
int i =10
main()
{int i =20,n;
for(n=0;n<=i;) > {int i=10;
i++;
}
printf("%d", i);
Ans. i=20
6. Find the output for the following C program
int x=5;
y= x&y
7.Find the output for the following C program
Y=10;
if( Y++>9 && Y++!=10 && Y++>10)
{printf("%d", Y);
else
printf("%d", Y);
}
Ans. 13
8. Find the output for the following C program
f=(x>y)?x:y
a) f points to max of x and y
b) f points to min of x and y
c)error
Ans. (a)
9. What is the sizeof(long int)
(a) 4 bytes
(b) 2 bytes
(c) compiler dependent
(d) 8 bytes
10. Which of the function operator cannot be over loaded
(a) <= > (b) ?:
(c) ==
(d) *
What is the name given to the process of initializing a micro computer with its OS?
Posted by Raj
What is the name given to the process of initializing a micro computer with its OS?
- Cold booting
- Bbooting
- Warm booting
- Boot Recording
Major expressions used with find command to select file is it has been accessed in more than 375 days
Posted by Raj
Wipro Technical interview Questions
Major expressions used with find command to select file is it has been accessed in more than 375 days,is A)-a time +365 B) -m time +365 C)-a time -365 D) -m time -365
Ans:C (-a time -365)
Major expressions used with find command to select file is it has been accessed in more than 375 days,is A)-a time +365 B) -m time +365 C)-a time -365 D) -m time -365
Ans:C (-a time -365)