TCS Company Programming Functions

In a sequence of integers, A(n) = A(n-1) - A(n-2), where A(n) is the n th term in the sequence, n
is an integer and n >=3, A(1)=1,A(2)=1 . Calculate S(1000), where S(1000) is the sum of the first
1000 terms
a) 1
b) -1
c) 2
d) 0

Read Solution (Total 8)

TCS Other Question

Two identical circles intersect so that their centres, and the points at which they intersect,
form a square of side 1 cm. The area in sq. cm of the portion that is common to the two
circles is:
a) (π/2) – 1
b) 4
c) √2 – 1
d) √5
A man goes north 37km.turns left goes 2km.turns right goes 17km.turns right goes 2km. find distance b/w
starting ending point.
a) 54 b) 27 c) 81 d) 67