Search⌘ K
AI Features

Quiz Yourself: Classes and OOP

Assess your understanding of C# classes and object-oriented programming.

We'll cover the following...
Technical Quiz
1.

What is the primary difference in how the compiler handles a const field versus a static readonly field?

A.

const values are resolved at runtime, while static readonly values are resolved at compile time.

B.

const values are baked into the calling assembly, while static readonly values are looked up at runtime.

C.

const fields allow any object type, while static readonly fields only allow primitive types.

D.

const fields require an instance of the class, while static readonly fields belong to the type itself.


1 / 14
...