🧪 .NET Micro Framework MCQ Quiz Hub

.NET Framework MCQ

Choose a topic to test your knowledge and improve your .NET Micro Framework skills

What does JIT do in .Net?





✅ Correct Answer: 2

What is the difference between a stack and queue?





✅ Correct Answer: 4

Which group contains all official types of JIT compilations?





✅ Correct Answer: 4

What is Kestrel?





✅ Correct Answer: 3

What is the difference between a heap and a stack?





✅ Correct Answer: 1

When would you use asynchronous actions?





✅ Correct Answer: 3

What is CoreCLR?





✅ Correct Answer: 4

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





✅ Correct Answer: 3

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

What makes a strong-named assembly?





✅ Correct Answer: 2

What happens when you concatenate two strings?





✅ Correct Answer: 3

What is a delegate?





✅ Correct Answer: 2

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?





✅ Correct Answer: 3

What is the single responsibility principle?





✅ Correct Answer: 4

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





✅ Correct Answer: 2

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





✅ Correct Answer: 2

What is the Common Type System (CTS)?





✅ Correct Answer: 2

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





✅ Correct Answer: 4

What is an abstract class in .NET?





✅ Correct Answer: 4

What is the namespace for caching information in .NET?





✅ Correct Answer: 3

What is an interface in .NET?





✅ Correct Answer: 4

What does CAS stand for and what does it do?





✅ Correct Answer: 4

Which is NOT true about lambda statements?





✅ Correct Answer: 1

Which is NOT true about a read-only variable?





✅ Correct Answer: 4

What is the difference between System.String and string?





✅ Correct Answer: 3

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





✅ Correct Answer: 3

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





✅ Correct Answer: 4

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

What do code contracts do?





✅ Correct Answer: 2

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?





✅ Correct Answer: 1

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





✅ Correct Answer: 2

What is the dependency inversion principle?





✅ Correct Answer: 4

What is a namespace?





✅ Correct Answer: 4

Which of the following selects an anonymous type?





✅ Correct Answer: 1

Which is NOT true about a constant variable?





✅ Correct Answer: 3

What is the purpose of CLR?





✅ Correct Answer: 4

What is CIL?





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

Which statement describes a Dispose method?





✅ Correct Answer: 2

What is a thread?





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

How can you recieve form data without a model binder in a controller action? Note: The differences are IFormResult/IActionResult and Forms/Form





✅ Correct Answer: 4

Where should you store connection string information?





✅ Correct Answer: 3

Why use design patterns?





✅ Correct Answer: 4

What is a task?





✅ Correct Answer: 3

Which choice is NOT a component of .NET Framework?





✅ Correct Answer: 2

Which statement about the this keyword is not true?





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 4

What is .NET?





✅ Correct Answer: 1

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





✅ Correct Answer: 4

What is the Liskov substitution principle?





✅ Correct Answer: 2

What method do you use to explicitly kill a user's session?





✅ Correct Answer: 2

Which choice best describes the difference between globalization and localization?





✅ Correct Answer: 4

What does CIL stand for?





✅ Correct Answer: 2

What does IL stand for?





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 4

What is the interface segregation principle?





✅ Correct Answer: 1

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





✅ Correct Answer: 4