C# Review

C# Review

University

30 Qs

quiz-placeholder

Similar activities

Adobe After Effects Quiz

Adobe After Effects Quiz

University

25 Qs

IT 403 - QUIZ 2

IT 403 - QUIZ 2

University

25 Qs

PENILAIAN SUMATIF TENGAH SEMESTER I (PSTS I) - Keamanan Jaringan

PENILAIAN SUMATIF TENGAH SEMESTER I (PSTS I) - Keamanan Jaringan

12th Grade - University

25 Qs

Internet dan Google Workspace

Internet dan Google Workspace

4th Grade - University

25 Qs

Lesson 02: Understanding Cyber Security Threats

Lesson 02: Understanding Cyber Security Threats

University

25 Qs

Code.org lesson 3 and 4 quiz

Code.org lesson 3 and 4 quiz

7th Grade - University

25 Qs

Danger online

Danger online

7th Grade - University

25 Qs

Finals Quiz

Finals Quiz

University

25 Qs

C# Review

C# Review

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Salima HASSAINE

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?