## Renault-Nissan placement paper (February 2012)

Renault Nissan Paper February 2012:

1. If the total number of marbles are 72, then the number of marbles with A at the starting

(a) 20
(b) 30
(c) 32
(d) 39

Ans. (d)

2.
struck a{
int x;
float y;
char c[10];
}
union b{
int x;
float y;
char c[10];
}
which is true?
a) size of(a)!=sizeof(b);
b)
c)
d)

3.
# define f(a,b) a+b
#defiune g(c,d) c*d

find valueof f(4,g(5,6))
a)26 b)51 c) d)

15). find avg access time of cache
a)tc*h+(1-h)*tm b)tcH+tmH
c) d) tc is time to access cache tm is time to access when miss occure

4.
main()
{
char a[10]="hello";
strcpy(a,'\0');
printf("%s",a);
}
out put of the program?
a) string is null b) string is not null c) program error d)

5.
simplyfy k map
1 x x 0
1 x 0 1

18).
int f(int a)
{
a=+b;

//some stuff
}
main()
{
x=fn(a);
y=&fn;
what are x & y types
a) x is int y is pointer to afunction which takes integer value

6. char a[5][15];
int b[5][15];
address of a 0x1000 and b is 0x2000 find address of a[3][4] and b[3][4]
assume char is 8 bits and int is 32 bits
a) b) c) d)

There are 20 questions all in technical paper and 36 questions in aptitude test in aptitude they have given all diagrams and asked to find what comes next they are quite easy and i hope if u practice r. s aggraval u can do it easily for technical they have given 1 hr for 20 questions and for not technical thay ha ve given only 40 min and 36 questions

7. main()
{
fork();
fork();
fork();
printf("\n hello");
}

How many times print command is executed?

8. main()
{
int i,*j;
i=5;
j=&i;
printf("\ni= %d",i);
f(j);

printf("\n i= %d",i);
}

void f(int*j)
{
int k=10;
j= &k;
}

output is
a 5 10
b 10 5
c 5 5
d none

9. In a class, except 18 all are above 50 years. 15 are below 50 years of age. How many people are there

(a) 30
(b) 33
(c) 36
(d) none of these.

Ans. (d)

10. A square plate of some size is cut at four corners. Equal squares of the same size are cut and is formed as open box.

If this open box carries 128 ml of oil. What is the size of the side of the plate?

(a) 17
(b) 14
(c) 13
(d) None of these