PWC Interview Exp for Azure-DotNet Associate

pwc logo
pwc
Azure-DotNet Associate2.5 years
July 12, 20256 reads

Summary

I interviewed for an Azure-DotNet Associate role at PWC, discussing my projects, .NET core concepts, C# data structures, and database/unit testing. The interviewer noted I knew the concepts but lacked confidence, suggesting I work on certain areas.

Full Experience

My Highlighted skills in my recent Projects - .Net Core, xUnit+ Moq, Asp.Net Web API, SQL Server, Angular
  1. Introduce yourself and projects you worked on
    ans i told 2 projects i worked on first for core banking application my task was small code changes bug fixing and deployement, monthly deployement. second project i mostly workd on xUnit Framework and Moq also worked with database and backend
  2. So you have worked in dot net core how its different from dot net
  3. How dependency Injection is used in Dot Net and Dot Net Core whats diff in diff frameworks.
  4. How you do DI write syntax on notepad.
  5. Why we inject it in Program.cs
  6. What AddScoped Does
  7. What if i want new instance every time the service is requested.
  8. What is the real time scenario of question number 7.
  9. I have a interface a which having add method and interface b which same method add method how many times add method needed to implemented - -i think i did't understand the question properly but i answered only one time needed.
    public interface IA { void Add(); }
    public interface IB { void Add(); }
    

    public class MyClass : IA, IB { public void Add() => Console.WriteLine("Add called"); }

  10. what will be the output of this code
    List<int> intList = new List<int>();
    intList.Add(1);
    intList.Add(2);
    var intList2 = intList;
    intList.RemoveAt(0);

    foreach (var item in intList) { Console.WriteLine(item); }

    foreach (var item in intList2) { Console.WriteLine(item); }

  11. How we fix above code to get diff list and diff output
    ans - replace line with
    var intList2 = new List<int>(intList);
  12. Can you write update endpoints
  13. if there is two methods in diff controller file how http request will follow particular method.
  14. Can you write a method form where I call method it will give two values first name last name form method
  15. from c# code if we want to update 10 customer details in single task how we can do that.
    To pass 10 customer records at once to a stored procedure, the best way is using a Table-Valued Parameter (TVP).
  16. If there is TVP with 5 column what if i want to add one more how we can do that.
  17. Create one table customer table we have some customer active and inactive u want to save inactive what will the data type of isActive variable in C# and in query
  18. How do we unit test a custom Exception in xUnit
  19. How we hardcode that

Interviewer feedback - - you know things but you are not confident. Why ??How many months of exp do you have me- 2.5. he - In Some fields you need to work.

Interview Questions (19)

Q1
Introduce yourself and projects
Behavioral

Introduce yourself and projects you worked on

Q2
Difference between .NET Core and .NET Framework
Other

So you have worked in dot net core how its different from dot net

Q3
Dependency Injection in .NET and .NET Core
Other

How dependency Injection is used in Dot Net and Dot Net Core whats diff in diff frameworks.

Q4
Write Dependency Injection Syntax
Other

How you do DI write syntax on notepad.

Q5
Why inject DI in Program.cs
Other

Why we inject it in Program.cs

Q6
What AddScoped Does
Other

What AddScoped Does

Q7
Service Lifetime for new instance every request
Other

What if i want new instance every time the service is requested.

Q8
Real-time scenario for new service instance per request
Other

What is the real time scenario of question number 7.

Q9
Interface Implementation with Duplicate Method Signatures
Other

I have a interface a which having add method and interface b which same method add method how many times add method needed to implemented. I think I didn't understand the question properly but I answered only one time needed.

public interface IA { void Add(); }
public interface IB { void Add(); }

public class MyClass : IA, IB
{
    public void Add() => Console.WriteLine("Add called");
}
Q10
C# List Reference Output
Data Structures & Algorithms

what will be the output of this code

List<int> intList = new List<int>();
intList.Add(1);
intList.Add(2);
var intList2 = intList;
intList.RemoveAt(0);

foreach (var item in intList)
{
    Console.WriteLine(item);
}

foreach (var item in intList2)
{
    Console.WriteLine(item);
}
Q11
Fix C# List Reference Issue
Data Structures & Algorithms

How we fix above code to get diff list and diff output

Q12
Write Update Endpoints
System Design

Can you write update endpoints

Q13
HTTP Request Routing to Controller Methods
System Design

if there is two methods in diff controller file how http request will follow particular method.

Q14
Method to Return First Name and Last Name
Other

Can you write a method form where I call method it will give two values first name last name form method

Q15
Update Multiple Customer Details in C#
System Design

from c# code if we want to update 10 customer details in single task how we can do that.

Q16
Adding Column to Table-Valued Parameter (TVP)
System Design

If there is TVP with 5 column what if i want to add one more how we can do that.

Q17
Customer Table: isActive Data Type
System Design

Create one table customer table we have some customer active and inactive u want to save inactive what will the data type of isActive variable in C# and in query

Q18
Unit Test Custom Exception in xUnit
Other

How do we unit test a custom Exception in xUnit

Q19
Hardcoding Techniques
Other

How we hardcode that

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!