Amdocs Placement Paper

Paper: (Verbal, Quantitative, SQL, C, Unix etc)

1. All fat people are not dancers, food loving people are all fat
.Find the contradictory statement?

2. The day before yesterday was WEDNESDAY then the day after 2morrow is?

3. A goes to the party if B goes
B goes to the party if C goes
C goes to the party if D goes
Totally how many will go to the party?

4. Mary's father's brother is Andrews Andrews daughter's son is
Sunil Brothers name is Sam Who is Sam to Sunil?

5. If A>B,A<C,B>D,B<DFind the Shortest?

6. There are A,B techers and C,D doctors.Find the possible no of
combinations that should not be repeated more than once?

7. There are 3 males and 2 females,find the possible no of orders that
can be made by making the arrangement as in between two males one
women is allowed to sit?

8. Computer checking:eeeDD
1.eeggg 2.eeeDD3.eerrt,4.DDeee The write answer is 2)eeeDD

9. The syntax of command statement in UNIX

10. If the permission for a file is 000,then the file can be accessed by whom?

11. Where we can run two same programs on a UNIX console at the same time?

12. Which is the Shell of UNIX?

13. Wat is the number of the masked code ee@?

14. We are UPDATING a field in SQL and ALTER the row also.After giving
the COMMIT command the system is crashed.Wat will happen to the
commands given,whether it will UPDATE and ALTER the table r not?

15. If we r terminated at the middle of the program execution in
UNIX,wat will happen to the program,it will continue running r
terminate r the o/p will be send to ur mail?

16. How will add additional conditions in SQL?

17. How will u print TATA alone from TATA POWER using string copy and
concate commands in C?

18. If switch(n)
case 1:printf("CASE !");
case(2):printf("default")
break;
What will be printed?

19. How will u divide two numbers in a MACRO?

20. int a,b;
1.main()
2.{
3.scanf("............",&a,&b);
4.if...........{
5.printf("Print A");
6.else
7.Printf("...........");
8.endif}
9..........
A.Wat will come in the 9 dash?
B.Wat will happen if we replace Print A as Print X?
C.Wat will come in the 3 dash?
D.Wat will happen if we interchange 4 and 7?
E.Wat will come in the 4 dash?

Google Question Paper

GLAT (GOOGLE LABS Aptitude Test)

1. Solve this cryptic equation, realizing of course that values for M
and E could be interchanged. No leading zeros are allowed.

WWWDOT - GOOGLE = DOTCOM

This can be solved through systematic application of logic. For
example, cannot be equal to 0, since . That would make , but , which
is not possible.

Here is a slow brute-force method of solution that takes a few minutes
on a relatively fast machine:

This gives the two solutions

777589 - 188106 == 589483
777589 - 188103 == 589486

Here is another solution using Mathematica's Reduce command:

A faster (but slightly more obscure) piece of code is the following:

Faster still using the same approach (and requiring ~300 MB of memory):

Even faster using the same approach (that does not exclude leading
zeros in the solution, but that can easily be weeded out at the end):

Here is an independent solution method that uses branch-and-prune
techniques:

And the winner for overall fastest:

2. Write a haiku describing possible methods for predicting search
traffic seasonality.

MathWorld's search engine
seemed slowed this May. Undergrads
prepping for finals.

3. 1
1 1
2 1
1 2 1 1
1 1 1 2 2 1

What's the next line?

312211. This is the "look and say" sequence in which each term after
the first describes the previous term: one 1 (11); two 1s (21); one 2
and one 1 (1211); one 1, one 2, and two 1's (111221); and so on. See
the look and say sequence entry on MathWorld for a complete write-up
and the algebraic form of a fascinating related quantity known as
Conway's constant.4. You are in a maze of twisty little passages, all alike. There is a
dusty laptop here with a weak wireless connection. There are dull,
lifeless gnomes strolling around. What dost thou do?

A) Wander aimlessly, bumping into obstacles until you are eaten by
a grue.
B) Use the laptop as a digging device to tunnel to the next level.
C) Play MPoRPG until the battery dies along with your hopes.
D) Use the computer to map the nodes of the maze and discover an
exit path.
E) Email your resume to Google, tell the lead gnome you quit and
find yourself in whole different world [sic].

In general, make a state diagram . However, this method would not
work in certain pathological cases such as, say, a fractal maze. For
an example of this and commentary, see Ed Pegg's column about state
diagrams and mazes .

5. What's broken with Unix?

Their reproductive capabilities.

How would you fix it?

[This exercise is left to the reader.]

6. On your first day at Google, you discover that your cubicle mate
wrote the textbook you used as a primary resource in your first year
of graduate school. Do you:

A) Fawn obsequiously and ask if you can have an autograph.
B) Sit perfectly still and use only soft keystrokes to avoid
disturbing her concentration
C) Leave her daily offerings of granola and English toffee from the
food bins.
D) Quote your favorite formula from the textbook and explain how
it's now your mantra.
E) Show her how example 17b could have been solved with 34 fewer
lines of code.

[This exercise is left to the reader.]

7. Which of the following expresses Google's over-arching philosophy?

A) "I'm feeling lucky"
B) "Don't be evil"
C) "Oh, I already fixed that"
D) "You should never be more than 50 feet from food"
E) All of the above

[This exercise is left to the reader.]

8. How many different ways can you color an icosahedron with one of
three colors on each face?

For an asymmetric 20-sided solid, there are possible 3-colorings .
For a symmetric 20-sided object, the Polya enumeration theorem can be
used to obtain the number of distinct colorings. Here is a concise
Mathematica implementation:

What colors would you choose?

[This exercise is left to the reader.]

9. This space left intentionally blank. Please fill it with something
that improves upon emptiness.

For nearly 10,000 images of mathematical functions, see The Wolfram
Functions Site visualization gallery .

10. On an infinite, two-dimensional, rectangular lattice of 1-ohm
resistors, what is the resistance between two nodes that are a
knight's move away?

This problem is discussed in J. Cserti's 1999 arXiv preprint . It is
also discussed in The Mathematica GuideBook for Symbolics, the
forthcoming fourth volume in Michael Trott's GuideBook series, the
first two of which were published just last week by Springer-Verlag.
The contents for all four GuideBooks, including the two not yet
published, are available on the DVD distributed with the first two
GuideBooks.

11. It's 2PM on a sunny Sunday afternoon in the Bay Area. You're
minutes from the Pacific Ocean, redwood forest hiking trails and world
class cultural attractions. What do you do?

[This exercise is left to the reader.]

12. In your opinion, what is the most beautiful math equation ever
derived?

There are obviously many candidates. The following list gives ten of
the authors' favorites:

1. Archimedes' recurrence formula : , , ,
2. Euler formula :
3. Euler-Mascheroni constant :
4. Riemann hypothesis: and implies
5. Gaussian integral :
6. Ramanujan's prime product formula:
7. Zeta-regularized product :
8. Mandelbrot set recursion:
9. BBP formula :
10. Cauchy integral formula:

An excellent paper discussing the most beautiful equations in physics
is Daniel Z. Freedman's " Some beautiful equations of mathematical
physics ." Note that the physics view on beauty in equations is less
uniform than the mathematical one. To quote the
not-necessarily-standard view of theoretical physicist P.A.M. Dirac,
"It is more important to have beauty in one's equations than to have
them fit experiment."

13. Which of the following is NOT an actual interest group formed by
Google employees?

A. Women's basketball
B. Buffy fans
C. Cricketeers
D. Nobel winners
E. Wine club

[This exercise is left to the reader.]

14. What will be the next great improvement in search technology?

Semantic searching of mathematical formulas. See
http://functions.wolfram.com/About/ourvision.html for work currently
underway at Wolfram Research that will be made available in the near
future.

15. What is the optimal size of a project team, above which additional
members do not contribute productivity equivalent to the percentage
increase in the staff size?

A) 1
B) 3
C) 5
D) 11
E) 24

[This exercise is left to the reader.]

16. Given a triangle ABC, how would you use only a compass and
straight edge to find a point P such that triangles ABP, ACP and BCP
have equal perimeters? (Assume that ABC is constructed so that a
solution does exist.)

This is the isoperimetric point , which is at the center of the larger
Soddy circle. It is related to Apollonius' problem . The three tangent
circles are easy to construct: The circle around has diameter , which
gives the other two circles. A summary of compass and straightedge
constructions for the outer Soddy circle can be found in " Apollonius'
Problem: A Study of Solutions and Their Connections" by David Gisch
and Jason M. Ribando.

17. Consider a function which, for a given whole number n, returns the
number of ones required when writing out all numbers between 0 and n.
For example, f(13)=6. Notice that f(1)=1. What is the next largest
n such that f(n)=n?

The following Mathematica code computes the difference between [the
cumulative number of 1s in the positive integers up to n] and [the
value of n itself] as n ranges from 1 to 500,000:

The solution to the problem is then the first position greater than
the first at which data equals 0:

which are the first few terms of sequence A014778 in the On-Line
Encyclopedia of Integer Sequences.

Checking by hand confirms that the numbers from 1 to 199981 contain a
total of 199981 1s:

18. What is the coolest hack you've ever written?

While there is no "correct" answer, a nice hack for solving the first
problem in the SIAM hundred-dollar, hundred-digit challenge can be
achieved by converting the limit into the strongly divergent series:

and then using Mathematica's numerical function SequenceLimit to
trivially get the correct answer (to six digits),

You must tweak parameters a bit or write your own sequence limit to
get all 10 digits.

[Other hacks are left to the reader.]

19. 'Tis known in refined company, that choosing K things out of N can
be done in ways as many as choosing N minus K from N: I pick K, you
the remaining.

This simply states the binomial coefficient identity .

Find though a cooler bijection, where you show a knack uncanny, of
making your choices contain all K of mine. Oh, for pedantry: let K be
no more than half N.

'Tis more problematic to disentangle semantic meaning precise from the
this paragraph of verbiage peculiar.

20. What number comes next in the sequence: 10, 9, 60, 90, 70, 66, ?

A) 96
B) 1000000000000000000000000000000000\
0000000000000000000000000000000000\
000000000000000000000000000000000
C) Either of the above
D) None of the above

This can be looked up and found to be sequence A052196 in the On-Line
Encyclopedia of Integer Sequences, which gives the largest positive
integer whose English name has n letters. For example, the first few
terms are ten, nine, sixty, ninety, seventy, sixty-six, ninety-six,
?. A more correct sequence might be ten, nine, sixty, googol,
seventy, sixty-six, ninety-six, googolplex. And also note,
incidentally, that the correct spelling of the mathematical term "
googol" differs from the name of the company that made up this
aptitude test.

The first few can be computed using the NumberName function in Eric
Weisstein's MathWorld packages:

A mathematical solution could also be found by fitting a Lagrange
interpolating polynomial to the six known terms and extrapolating:

Syntel placement papers

Technical Test:

1. Graphics:Painters algorithm is used for...........
2. Graphics:Why is 'Lighting' operations done on World Coordinates?
3. Graphics:One more question
4. Some question on C External Variables.
5. How can you call a function written in FORTRAN from a C program ?
6. Normal question on pointer addition
7. Another question on pointer addition
8. A question on 64 bit OS's and Virtual Memory it will be having
9. Another question on 64 bit OS
10. A structure was given and it contained normal data as well as some bit-wise data.You had to find the total size taken up by the structure
11. A big code with lots of pointers. There was a struct which contained 2 arrays. Then an array of that structure was declared. The code used these structures and you had to find the values of a variable 'j' at various points inside the code
12. A code which had some declarations of some data items. There were a couple of normal data items(char,int..) and some pointers as well and a malloc call. You have to find the total memory taken up in the stack(Hint:Pointers and all are allocated in heap, not in stack, so dont count them).Also in most of these questions, they were specifying that the OS was 32 bit
13. A question on nesting of pointers. There was this pointer to a function which returned an array of char pointers.....You had to give the exact definition of the function
14. Value of 2 particular variables in C(MAXINT and some other constant)
15. What do you need to do to open more than 10 files simultaneously in Microsoft Operating System? -change stdio.h/change CONFIG.SYS/compiler dependent
16. A question on Macro( consisted of something like CTRL&037)
17. Another question on Macro expansion
18. Yet another question on Macro expansion
19. UNIX question on 'who' output and then doing some other operation and then asking you whats the output.
20. UNIX question on 'awd' operation.

Analytical Test:

21. 101^100 -1 is divisible by.....
22. Question on boat ( stream velocity given...)
23. Train Question( Goods and Passenger train.. their speeds given..)
24. Pipe question (with leak at the bottom..)
25. Salary & Proportion problem
26. Another problem on Salary & Proportion
27. Age question-father and son
28. Another age question
29. Question onratios(Sachin:Saurav=Saurav:Rahul=3:2....together they scored some runs,you had to find the runs scored by Sachin)
30. Angle between hands when time is 2:20
31. x^2 + 4 y^2 =4xy.Find x:y
32. A question on Arithmetic Progression(something like 5 times the 5th term is 8 times the 8th term..find 12th term...)
33. A and B's work units given.They were together gievn Rs.720.When C joined,they together completed the work in 5 days.Find C's wages
34. There was a circle.A square of max size was cut from it.From this square,a circle of max size was cut.What was the ratio of this final size w.r.t initial size?
35. A runs 3/4th faster than B.One of them was placed some metres ahead.How far should the finishing post be placed so that both of them finish at the same time?
36. Longest time one has to wait for next birthday?(366/365/4 years/8years)
37. Next no: in the seq: 7,11,__,19,23
38. Some question on steps...it was 10 ft high...an ant travelled upwards..and total time taken
39. Cricket-some data on runrate of the opposition being 15%....
40. Time & Distance..somebody was travelling along the circumference.... The questions are not at all complete because lack of memory :-)