# Nagarro Written Test 26th December 2012

Posted on :04-04-2016

Q1. The length of minute hand is 5.4 cm, area covered by this in 10 min is?

a) 50.97
b) 57.23
c) 55.45
d) 59.14

Q2. If tan A = 2- (3)^ 1/2 then what will be the value of tan (90-A)?

ANS: 2 + 3 ^ 1/2

Q3. What will be the maximum value of f(x) = (sin x-cos x)^ 2?

ANS: 1

Q4. Sin x+ sin 2x = 1, then cos 2x + cos 4x = ?

a) 1
b) 3
c) 0
d) none

Q5. x pow (a+b) . x pow(b+c). x pow (c+a)/ (x pow(a). x pow(b) . x pow(c)) pow(2) = ?

a) 0
b) 1
c) 8
d) 5

Q6. If Sec A*Sin A = 0 then what will be the value of Cos A?

ANS: Cos A = Cos 0 = 1

Q7. cos 30d/ sin 10d + cos 59d/ sin 31d =?

a) 1
b) 2
c) 3
d) 4

Q8. If xy = 6 and x^ 2y + xy^ 2 + x + y = 9 then find out the value of x^2 + y^2.

Q9. How many numbers are there, between 1000 to 9900 in which four digits of number are different?

Q10. If a shopkeeper sell 960 gm sugar in respect of 1000 g at same price, then what will be the profit?

ANS:  25/6

Q11. What will effect on the Area of a triangle if the side of triangle just double from its original side?

Technical:

Q12. Write a program to find out the combination of an element of each array gives a result 0.

For example:

array 1: {2,1,4,7}
array 1: {3,-3,-8,0}
array 1: {-1,-4,-7,6}

Output:

pairs =
{2,-8,6}
{1,3,-4}
{4,-3,-1}
{7,0,-7}

Q13. An array of size 5X5 is given to us. The elements from 1 to 25 are to be inserted in the array, such that starting from a particular position for an element i, the next element i+1can be inserted only at the mentioned positions (u,v), and if these all positions are occupied then it returns giving a count of how many positions have been occupied in the array:

(u,v) = (x+/-3 , y)
(u,v) = (x , y+/-3)
(u,v) = (x+/-2 , y+/-2).

Q14. Write a program to get the first non repeating alphabet from the given string by the user.

For example:

string = abcba
Output: c

string = abcdecbae
Output : d

string = naveen
Output : a

Q15. Write a program to get the subsequence of a bit 1 and 0 given in an array of bits.

For example:

array={1,0,1,1,0,1,1}
Output={1,0,1,0}

array={1,1,0,1,0,0,1,1}
Output={1,1,0,1,0,0}

Q16. Write a program to check whether 2 strings given by the user are anagram strings or not.

For example:

str1: Are you engineer.
str2: You are engineer.

Output: yes

str1: Am i fine.
str2: Im fine.

Output: No

str1: Am i fine.
str2: I am fire.

Output: No

FreshersLive - No.1 Job site in India. Here you can find latest 2018 government as well as private job recruitment notifications for different posts vacancies in India. Get top company jobs for both fresher and experienced. Job Seekers can get useful interview tips, resume services & interview Question and answer. Practice online test free which is helpful for interview preparation. Register with us to get latest employment news/rojgar samachar notifications. Also get latest free govt and other sarkari naukri job alerts daily through E-mail.

 ✖