Qtr No. 213, New Town Yehlanka Indore 454775
What will be the output for the below given code snippet?
namespace Infosys.TestYourCode
{
class Maths
{
public int functionSum(int valueX, int valueY)
{
return valueX + valueY;
}
public int functionSumMore(int valueA, float valueB)
{
return (valueA + (int)valueB);
}
}
class Program
{
static void Main(string[] args)
{
Maths obj = new Maths();
int iValueOne;
int iValueTwo = 90;
int iValueThree = 100;
int iValueFour = 12;
float fValueFive = 14.78f;
iValueOne = obj.functionSum(iValueTwo, iValueThree);
Console.WriteLine(iValueOne);
int j = (obj.functionSumMore(iValueFour, fValueFive));
Console.WriteLine(j);
Console.ReadLine();
}
}
}
190, 26.78f
0, 26.78f
190, 26
190, 0
To get all Basic CSharp Programming Assessment Exam questions Join Group https://bit.ly/infy_premium_group
We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.
Qtr No. 213, New Town Yehlanka Indore 454775
admin@prepflix.in