I applied through a staffing agency. I interviewed at Mastercard in July 2022
Interview
2 rounds of technical where in 1st round three people will took interview in second round 1 lady took interview
final will HR discussion. i really wonder 3 different people having hand on only 1 skill expects all skills and experties from one single person
Interview questions [1]
Question 1
multilevel inheritance and constructor
class Program
{
class a
{
public a()
{
Console.WriteLine("a");
}
public virtual void getname()
{
Console.WriteLine("pooja");
}
}
class b:a
{
public b()
{
Console.WriteLine("b");
}
public override void getname()
{
Console.WriteLine("sanjay");
}
}
class c : b
{
public c()
{
Console.WriteLine("c");
}
public override void getname()
{
Console.WriteLine("aps");
}
}
class d : c
{
public d()
{
Console.WriteLine("d");
}
public new void getname()
{
Console.WriteLine("isgreat");
}
}
public static class Test
{
public static void Main()
{
a dd = new d();
dd.getname();
Console.ReadLine();
}
}
}
tricky questions on above program
memory allocation
try catch
benefits of using keyword
angular module,observals,interceptors
accessing values from one cmponent in other
sql- executescaler,sql,index very deep question