Test for Juniors

What is a class and what is an object?

Name and explain access modifiers?

Name and explain access modifiers?

What is constructor and what is destructor?

Do we need parameters for constructor?

Can you make a function calls inside of a constructor?

Explain the this keyword.

What is singleton pattern? Please provide an example.

When extending an abstract class do we need to define all inherited abstract methods? Please explain.

If we define base class for all exceptions as E, class E1 extends E and class E2 extends E1, in which order you should write catch branches in order to handle all three exceptions separately.

What is the difference between static and nonstatic method? Is it possible to use keyword this in static method?

What is polymorphism? Please explain and provide one example.

What is encapsulation? Please explain and provide one example.

Is it allowed usage of constructors in abstract classes? Please explain.

Is it allowed usage of references and/or pointers to abstract class? Please explain.

What are delegates in C# and for what are they primarily used?

Please implement ICalculator interface bellow with the following methods: add, subtract, multiply, divide.


Your name? *