Latest TCS Aptitude Question SOLUTION: There was a grandmother in a village who had a grandchild . Upon asking her grandchild’s age she told that she is older as many days old as her daughter’s age in weeks and as m

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 13 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 like a rain... When we know how to solve it, We will continouosly do it.

Syawal

THROUGH SCIENCE WE DEVELOPED, AND MATHEMATICS IS THE MOTHER OF THE SCIENCE.

Lukman Hussaini

Maths is like a proverb where there is a will there is a way.If you go deep into it you find someway

Faisal Rizwan

Calculus is the most powerful weapon of thought yet devised by the wit of man.

W. B. Smith

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