Search Header Logo

C# Review

Authored by Salima HASSAINE

Information Technology (IT)

University

Used 5+ times

C# Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Is it possible to access a public non-static field through a static method of the class  ?

YES

NO

Answer explanation

If the field is not static, then a static method cannot directly access it (since instance members belong to an object). You would need to create an object inside the static method (or receive one as a parameter).

2.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Is it possible to override sealed methods ?

YES

NO

Answer explanation

  • In C#, sealed means "no further overriding allowed."

  • Usually, we use sealed with methods that are already override to prevent further derived classes from overriding them again.

3.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Is it possible to override any method from the parent class ?

YES

NO

Answer explanation

It is possible to override only the virtual, abstract and override methods

4.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Compiler creates automatically Default Constructor for all the classes.

YES

NO

Answer explanation

Compiler creates automatically Default Constructor only if the class does not have any constructor.

5.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Is it possible to implement multiple Interfaces ?

YES

NO

6.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Is it possible to use private access modifier with virtual methods ?

YES

NO

7.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Access Modifiers (public, private , protected) are allowed in Abstract Classes

YES

NO

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?