Latest TCS Aptitude Question SOLUTION: Points A and B move with uniform speed along straight lines that intersect at right angles at point O. When A is at O, B is 400m from O. After 3 minutes they are equidistant from O

Please wait...
Advertisements

Sponsored Links

iitbrain
theblackberrygroup
0mrp
Quotesrain

Challenger of the Day

Deep Narayan Mojumder
Deep Narayan Mojumder
India
West Bengal
Time: 00:00:33
Points
20

Sponsored Links

User Comments

got placed in IBM..

this site is very useful, many questions repeated..

thanks alot to m4maths.com

Harish Konakandla 12 Days ago

Thanks to m4maths team and users because now i am an infocian..I have practiced from this site only..this is the best site to prepare for each and every exam.
Again, a very very big thanks to this site.

Mukesh Nayal 24 Days ago

Thank you M4MATHS, I got placed in TECH MAHINDRA. This site helped me a lot.

PRITHWIJIT DUTTA 1 Month ago

Thank you......m4maths.com....for your support..this site helped me get through tech mahindra....Thank you m4maths....Placed...a sigh of relief..earlier this site helped me..crack TCS aptitude..but could not go through the interview round....thanks again..a very good site....:)

Anuj Maji 2 Months ago

Maths Quotes

MATHEMATICS is a great motivator for all humans.. Because its career starts with "ZERO" but it never end(INFINITY)..

Kumar Purnendu

The person who can solve mathematical problems,can lead life easily ,Maths tellu that every problem as solution...we can find number of solutions for one problem ...Aplly it in the life also we can lead our life happily...

swetha

Infinity is a floorless room without walls or ceiling.

Unknown

God is real, unless declared integer.

Unknown

Placement Questions

Consider the following code:

function modify(a,b)
{
integer c, d = 2
c = a*d + b
return c
}

function calculate( )
{
integer a = 5, b = 20, c
integer d = 10
c = modify(a, b);
c = c + d
print c
}

Assume that a and b were passed by value. What will be the output of the function calculate( ) ?

Unsolved Asked In: C Programming

Consider the following code:

function modify(y,z)
{
y = y + 1
z = z + 1
return y - z
}

function calculate( )
{
integer a = 12, b = 20, c

c = modify(a, b);
print a
print space
print c
}

Assume that a and b were passed by reference. What will be the output of the function calculate( ) ?

Unsolved Asked In: C Programming

Sponsored Links