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.

You define a struct Node with a field initializer public int ID = 5;. In your Main method, you declare Node n; (without new) and then manually assign n.ID = 10;.

What is the value of n.ID after assignment?

A.

5

B.

10

C.

0

D.

Runtime error


1 / 14
...