Rockwell Placement Paper : Rockwell Collins, Hyderabad ,4 December 2010
1. Written Test
Duration: 90 Minutes
Number of Questions: 75 (C-25, Basic Electronics-25 and Aptitude-25)
2. Technical Interview
3. HR Interview
C paper mainly consists of programs i.e., predicting the output. Some of the questions which I remembered are given below:
1. main()
{
int x=10, y=20, z=5, i;
i=x printf("\n%d", i);
Ans: Error bcoz closing brace is missing. (If closing brace is there, then ans will be 1).
2. The following statements are same?
a<=20? b=30: c=30;
(a<=20)? b:c=30;
3. f(int a, int a)
{
int a;
a=20;
return a;
}
Ans: Error: Multiple declaration of ,a,.
4. #define SQR(x) (x*x)
main()
{
int a, b=3;
a=SQR(b+2);
printf("\n%d",a);
}
Ans: 11
5. main()
{
printf("%c", "abcdefgh" [4]);
}
Ans: e
6. main()
{
char str[7]="Strings";
printf("%s", str);
}
Ans: StringsA
7. main()
{
char ch=,A,;
printf("%d %d", sizeof(ch), sizeof(,A,));
}
Ans: 1 2
8. main()
{
printf("\n%x", -1>>4);
}
Ans: ffff
9. main()
{
printf("\n%x", 16>>4);
}
Ans: 1
10. main()
{
unsigned char i=0*80;
printf("\n%d", i<<1);
}
Ans: 0
11. main()
{
printf(NULL);
}
Ans: Undefined symbol "Null".
12. main()
{
const int x=5;
const int *p;
p=&x;
*p=10;
printf("%d", x);
}
Ans: Error: can not modify constant object.
13. main()
{
const int x=get();
printf("%d", x);
}
get()
{
return(20);
}
Ans: 20
14. typedef struct{
int data;
NODEPTR link;
}*NODEPTR
Ans: Error (I am not sure about it).
15. A program on structures i.e., comparing of structure members.
16. Which bitwise operator is suitable for turning ON a particular bit?
Ans: OR
17. About external variable (extern).
In Basic Electronics some small problems were given. I didn,t remembered more questions.
1. The binary equivalent of (57)10 ?
2. Impurities in diode.
For Aptitude, just prepare R.S. Agarwal. It,s more than enough.
1. A light flashes once in 6 seconds. How many times, will the light flash in 3/4 hours?
Ans: 451 times (Not 450 times).
2. 0,5,8,17?
Ans: 24
3. Which is larger than 3/5?
Ans: 39/50
4. A programmer thinks 100 lines of code in 5 minutes. He writes 100 lines of code in 10 minutes. After every 15 minutes, he takes rest for 5 minutes. How many lines of code will the programmer write in 1 hour?
Ans: 300 lines of code in 1 hour.
5. A shopkeeper sells products with false weight of 950 gm instead of 1kg. What is the percentage of gain per kg?
Ans: 5%
6. Gavaskar,s average in 50 innings was 50. After the 51st inning, his average was 51. How many runs he has scored in his 51st innings, so that his average becomes 51?
Ans: 101 runs.
7. A labour works for 30 days at Rs. 10/- day wage. If he gets absent for 1 day, then Rs. 2/- will be deducted from his next day,s wage. After working for 30 days, he gets a total of Rs 216/-. How many days he was absent?
Ans: 7 days.