Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

SNAPDEAL QUESTIONS


1. A train is going at a speed of 60kmph towards Delhi
and returned back at a speed of 30kmph. What is its average
speed?
ANS : (2*30*60)/(30+60) = 40kmph
2. How many different 4 letter words can be framed that
have at least one vowel?
ANS : 264 - 214 (total no of 4 digits words – no of words
with no vowels)
3. Write an algorithm to find out a number from an
array of numbers where only one number occurs once and rest
all occurs twice.
ANS : XOR all the numbers ,you will get the number with
single occurrences .
4. Which among the following have the product of the
distance between opposite sides of a regular polygon and it
side equals one fourth of the area.
A. hexagon
B. octagon
C. n=16
D. n=18
ANS : n=16.(area of regular polygon = apothem*perimeter/2
Apothem = distance between opposite
sides/2
Area = (opp_side_dist * n * a )/4
Product of opp_side_dist and side of reg. polygon =
opp_side_dist * a
For n= 16 the ration becomes 1:4
5. Which of the following cannot be a relation between two
variables?







ANS = 4th diagram.

6.what will be the output of this program

Void print (int n)
{
If (n>0)
{
printf(“hello”);
print(n-1);
}
printf(“world”);
}
ANS : N times hello followed by N+1 times world.

7. Which among the following cannot be used for future
prediction?










ANS : 4th Diagram.

8. There are 25 horses. We have to find out the fastest 3
horses In one race maximum 5 horses can run. How many such
races are required in minimum to get the result.
ANS : 7 races (A. first run all horses = 5 races, eliminate
4th 5th of all races.
B. Run horses who came 1st in those
5 races = 1 race , the horse coming first is the fastest
Run horses
a. 2nd and 3rd with the fastest horse (in first time
race A)
b. 2nd and 3rd coming horse in B.
c. The horse who came 2nd with the horse(who came 2nd
in race B) in race A
You will have the fastest 3 horses.)


9. In a game of rolling dice you are given 2 dice and you
have to roll them. Whatever is the outcome the player will
win that many dollars. What should the game owner charge
each player (optimum) so that he doesn’t have to bear any
loss?
ANS : $7

10. We have a function REV(“string”,m,n).This function is
capable of reversing the caharacters in the string from mth
location to nth location.
e.g. REV(“abcd”,2,3) &#61672; the output will be acbd
We need to swap a string from a position,e.g.
SWAP(“abcdefg”,4) &#61672; output needs to be
efgabcd.
How can the REV function used do this.

ANS : L = string length,N= position given in SWAP function.
SWAP(“abcdefg”,4) = REV(REV(REV(“abcdefg”,N+1,L),1,N),1,L).

Answer Posted / pp

SNAPDEAL QUESTIONS


1. A train is going at a speed of 60kmph towards Delhi
and returned back at a speed of 30kmph. What is its average
speed?
ANS : (2*30*60)/(30+60) = 40kmph
2. How many different 4 letter words can be framed that
have at least one vowel?
ANS : 264 - 214 (total no of 4 digits words – no of words
with no vowels)
3. Write an algorithm to find out a number from an
array of numbers where only one number occurs once and rest
all occurs twice.
ANS : XOR all the numbers ,you will get the number with
single occurrences .
4. Which among the following have the product of the
distance between opposite sides of a regular polygon and it
side equals one fourth of the area.
A. hexagon
B. octagon
C. n=16
D. n=18
ANS : n=16.(area of regular polygon = apothem*perimeter/2
Apothem = distance between opposite
sides/2
Area = (opp_side_dist * n * a )/4
Product of opp_side_dist and side of reg. polygon =
opp_side_dist * a
For n= 16 the ration becomes 1:4
5. Which of the following cannot be a relation between two
variables?







ANS = 4th diagram.

6.what will be the output of this program

Void print (int n)
{
If (n>0)
{
printf(“hello”);
print(n-1);
}
printf(“world”);
}
ANS : N times hello followed by N+1 times world.

7. Which among the following cannot be used for future
prediction?










ANS : 4th Diagram.

8. There are 25 horses. We have to find out the fastest 3
horses In one race maximum 5 horses can run. How many such
races are required in minimum to get the result.
ANS : 7 races (A. first run all horses = 5 races, eliminate
4th 5th of all races.
B. Run horses who came 1st in those
5 races = 1 race , the horse coming first is the fastest
Run horses
a. 2nd and 3rd with the fastest horse (in first time
race A)
b. 2nd and 3rd coming horse in B.
c. The horse who came 2nd with the horse(who came 2nd
in race B) in race A
You will have the fastest 3 horses.)


9. In a game of rolling dice you are given 2 dice and you
have to roll them. Whatever is the outcome the player will
win that many dollars. What should the game owner charge
each player (optimum) so that he doesn’t have to bear any
loss?
ANS : $7

10. We have a function REV(“string”,m,n).This function is
capable of reversing the caharacters in the string from mth
location to nth location.
e.g. REV(“abcd”,2,3) &#61672; the output will be acbd
We need to swap a string from a position,e.g.
SWAP(“abcdefg”,4) &#61672; output needs to be
efgabcd.
How can the REV function used do this.

ANS : L = string length,N= position given in SWAP function.
SWAP(“abcdefg”,4) = REV(REV(REV(“abcdefg”,N+1,L),1,N),1,L).

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

speak 1min on topic Travelling,memorable moment ,memorable day?

2268


why didn't get placed so far?

1719


how did you celebrate your last birthday?

1810


A frog wants to climb a pole which is 15 feet in height, frog can jump 3 feet every minute after which he rests for a minute where he slips down 2 feet. How much time will the frog take to reach the top of the pole?

1091


i want the sample placement paper of goldman sachs urgently. please send it to me

4435


What are the frequently asked questions for interview in capital iq company ?

1904


Hi.. Guys Im pranitha, presently im working in a organisation & im look for job at MNC's like DELL, Delloitte, Bank of America, Genpect, etc., I have completed B.com . Pls help me...

1661


my question is : reverse a string in COBOL program (please write a code asap) input file: 1234abcdef output file: 8765_____ abc*$#1___ 1_2_3_4__ cdef____ghi h_k_z_a__ a_z_k_h___ ihg____ghi 4_3_2_1___ 1#$*cba__ ______5678 fedcb4321

1888


What kind of Issues/bugs arise in ETL projects? I would like to know few issues (critical to somewhat bugs ) normally occur in ETL process especially when testing? Domains can be banking, retail or any.

1927


printf("%d",printf("%d",printf("%d",printf("%s","ILOVECPROGRAM")))); whats the output

1979


your project to describe and tell about : 1. My favorite things 2. My favorite places at home 3. Animals *Choose one of them to describe *Write on your paper *If you done, Send me *Did you get it

1300


What were the occupations of the people who lived within the Mauryan Empire?

1164


Do we have vacancy for HR RECRUITER ?

1888


If anybody knows the recruitment procedure of IOTL & POWER MECHANICAL. send me the placement papers if u hav... very urgent ...

4411


HI SIR I WANT PREVIOUS QUESTION PAPER OF HPCL I M CHEMICAL ENGG.

2410