Test Your Knowledge

Extra Topics (Full Section) Quiz

Answer all questions to test your understanding

1 What is Git?
2 What command initializes a new Git repository?
3 What is the purpose of a .gitignore file?
4 What does 'git add .' do?
5 What is a Pull Request?
6 What command creates a new branch in Git?
7 What is the purpose of unit testing?
8 What does the AAA pattern stand for in testing?
9 What is the difference between [Fact] and [Theory] in xUnit?
10 Which command runs unit tests in .NET?
11 What is the purpose of Assert in unit testing?
12 How do you test that a method throws an exception in xUnit?
13 What is the Singleton pattern?
14 What is the purpose of the Factory pattern?
15 What is the Repository pattern used for?
16 What is Dependency Injection?
17 What is the Strategy pattern?
18 Which pattern is commonly used with Dependency Injection?
19 What is the purpose of async/await in C#?
20 What type does an async method typically return?
21 What does the await keyword do?
22 What is Task.WhenAll used for?
23 What is the difference between Result and await on a Task?
24 How do you handle exceptions in async methods?
25 What does REST stand for?
26 What HTTP method is used to retrieve data in a REST API?
27 What HTTP method is used to create new data in a REST API?
28 What is the purpose of the [ApiController] attribute?
29 What does the [Route] attribute do?
30 What status code does CreatedAtAction return?
31 What is NuGet?
32 What command installs a NuGet package using the .NET CLI?
33 What command installs a NuGet package using Package Manager Console?
34 Where are installed NuGet packages listed?
35 What is Newtonsoft.Json used for?
36 What should you consider before installing a NuGet package?