# Nagarro Written Test January 2012

Posted on :05-04-2016

Q1. White collar sells a shirt for an amount. Due to off season sale white collar started offering a discount of 20% on tag price. Come Diwali, white collar offered a further discount of 10% on the reduced price. If I get the shirt for Rs. 108 what was the original price?

a. Rs.180
b. Rs.160
c. Rs.145
d. none

ANS: (d)

Q2. Two poles of height 7 m and 12 m stand on a play ground. If the distance between their feet is 12m, find the distance between their tops.

a. 12m
b. 13m
c. 11m
d. none

ANS: (b)

Q3. The monthly personal maintenance allowance for a family of an employee is determined by the average age of family and size of the family. Jacob was drawing Rs.570 as PMA after he got married 6 years back. At present he draws Rs 720 as PMA with his family of 3 after the birth of son?

a. 2 years
b. 3 years
c. 4 years
d. 5 years

ANS: (d)

Q4. FORTRAN implementation do not permit recursion because

a. they use static allocation for variables
b. they use dynamic allocation for variables
c. stacks are not available on all machines
d. it is not possible to implement recursion on all m/c s

ANS: (a)

Q5. The program fragment that follows is written in a block-structured language. Assume that it is syntactically correct and determine its output begin

integer x, y;
x:=3;y:=7;
begin
integer x;
begin
integer y;
y:=9;
x:=2*y;
end;
x:=x+y;
print(x);
end;
print(x);
end;

a. 25 27
b. 27 27
c. 27 3
d. 25 3
e. 25 25

ANS: (e)

Q6. The achronym DAN stands for

a. data acess network
b. distributed area network
c. desktop area network
d. disk access node

ANS: (a)

Q7. What is the output of the program?

void main()
{
int i,j,k;
i=2;
j=4;
k=i++>j&2;
printf(%d ,k);
if(++k && ++i<--j|| i++)
{
j=++k;
}
printf( %d %d %d, i,-j--,k);
getch();
}

a. 4,-3,2
b. 5,-3,2
c. 4,-2,2
d. 5,-2,2

ANS: (d)

Q8. What does the following code do?

var a,b :integer
begin
a :=a+b
b :=a-b
a :=a-b
end;

a. exchange a and b
b. doubles a and stores in b
c. leaves a and b unchanged
d. none

ANS: (a)

Q9. What will be the value of x and y after execution of the following statement (C language)?

n== 5; x = n++; y = --x;

a. 5,4
b. 6,5
c. 6,6
d. 5,5

ANS: (d)

Q10. Which network protocol IBM mainframe and midrange support?

a. SNA
b. TCP/IP
c. X.25
d. IEEE 802.5

ANS: (a)

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.

 ✖