linkedin-skill-assessments-quizzes

.NET Framework

Q1. What is the difference between a stack and queue?

Q2. Which group contains all official types of JIT compilations?

Q3. What is Kestrel?

Q4. When would you use asynchronous actions?

Q5. What is CoreCLR?

Q6. When you define an abstract method, how do you use it in a derived class?

Q7. Which code do you use if you want to trigger a garbage collection in .NET?

Q8. You want to include language elements in a program. Which design pattern best fits this objective?

Q9. What makes a strong-named assembly?

Q10. What happens when you concatenate two strings?

Q11. What is a delegate?

Q12. Which is a set of features that extends the query capabilities of the .NET language syntax by adding sets of new standard query operators that allow data manipulation, regardless of the data source?

Q13. What is the single responsibility principle?

Q14. When should a developer use the .NET Standard class library project type?

Q15. What is the difference between a SDK (software development kit) and runtime in .NET Core?

Q16. What is the Common Type System (CTS)?

reference link

Q17. Assuming y is a value type, which is an example of boxing?

Q18. What is an abstract class in .NET?

Q19. What is the namespace for caching information in .NET?

Q20. What is an interface in .NET?

Q21. What does CAS stand for and what does it do?

Q22. Which is NOT true about lambda statements?

Q23. Which is NOT true about a read-only variable?

Q24. What is the difference between System.String and string?

Q25. When break is used inside two nested for loops, does control come out of the inner for loop or the outer for loop?

Q26. You want to separate object construction from its representation. Which design pattern best fits this objective?

Q27. You want to encapsulate a command request as an object. Which design pattern best fits this objective?

Q28. Why would Pre-JIT be used by the .NET Framework?

Q29. What do code contracts do?

Q30. You must connect an app to an online identity provider using OAuth. For authentication, the app uses WebAuthenticationBroker object. You need to make sure the app registers with the provider. Which action do you take?

The requestUri parameter must be a HTTPS address and you call the AuthenticateAsync method to connect to the online identity provider and get an access token

Q31. You want to create a class of which only a single instance can exist. Which design pattern best fits this objective?

Q32. What is the dependency inversion principle?

Q33. What is a namespace?

Q34. Which of the following selects an anonymous type?

Q35. Which is NOT true about a constant variable?

Q36. What is the purpose of CLR?

Q37. What is CIL?

Q38. _ pattern works as a bridge between two incompatible interfaces? // wording in question is maybe changed?

Q39. Why would you use ahead-of-time (AOT) compilation?

Q40. Which statement describes a Dispose method?

Q41. What is a thread?

Reference link

Q42. You want to add responsibilities to object dynamically. Which design pattern best fit this objective?

Q43. Which choice creates an 8-tuple containing prime numbers that are less than 20?

Q44. How can you recieve form data without a model binder in a controller action?

Note: The differences are IFormResult/IActionResult and Forms/Form

public IFormResult ReceivedDataByRequest()
{
      string theName = Request.Forms["theName"];
      return View();
}
public IActionResult ReceivedDataByRequest()
{
      string theName = Request.Forms["theName"];
      return View();
}
public IFormResult ReceivedDataByRequest()
{
      string theName = Request.Form["theName"];
      return View();
}
public IActionResult ReceivedDataByRequest()
{
      string theName = Request.Form["theName"];
      return View();
}

Q45. Where should you store connection string information?

Q46. Why use design patterns?

Q47. What is a task?

Q48. Which choice is NOT a component of .NET Framework?

Q49. Which statement about the this keyword is not true?

Q50. When should you use the .NET Core class library project type?

Q51. Why would the .NET Framework use Normal-JIT (Just-in-Time)?

JIT (Just-In-Time) Compiler

Q52. What is .NET?

What is .NET?

Q53. The ASP.NET Core Module is a native IIS module that plugs into the IIS pipeline to either _.

ASP.NET Core Module

Q54. In the code below, what is the difference between RenderPartial and RenderAction?

@{
  Html.RenderAction("Add");
  Html.RenderPartial("Add");
}

Q55. What is the Liskov substitution principle?

Liskov substitution principle

Q56. What method do you use to explicitly kill a user’s session?

Session.Abandon Method

Q57. Which choice best describes the difference between globalization and localization?

Globalize and localize .NET applications

Q58. What does CIL stand for?

What is the full form of CIL?

Q59. Which choice best describes the difference between a namespace and an assembly?

Source

Q60. What is a tuple?

Q61. What does IL stand for?

Q62. You want to create an instance of several families of classes. Which design pattern best fits this objective?

Q63. Which statement about a read-only variable is not true?

Q64. What is the interface segregation principle?

Q65. Why would the .NET Framework use Econo-JIT (Just-inTime)?

Q66. What is the difference between a heap and a stack?

Q67. What is open closed principle?

Q68. How do you make sure that the garbage collector is done running when you call GC.Collect()?

Q69. What does JIT do in .Net?

Reference: Compilation by the JIT compiler

Q70. Which statement about a constant variable is not true?

Q71. What is the difference between managed and unmanaged code?

Q72. Why use the Configure method of startup class?

Q73. You want to match interfaces of different classes. which design pattern best fits this objective?

Q74. What is IL?

Q75. What is the difference between covariance and contravariance?

Reference: Covariance and Contravariance

Q76: There are many ways to perform redirection from an action method to another action method. Which choice is not one of them?

Redirect;
RedirectPermanent
RedirectToAction;
RedirectToActionPermanent
RedirectToRoute;
RedirectToRoutePermanent
RedirectUp;
RedirectUpPermanent

Reference: Redirection in .NET

Q77: Which choice is not part of an assembly?

Reference: Assembly