Reflection

Reflection

1st - 5th Grade

10 Qs

quiz-placeholder

Similar activities

BTEC DIT: Revision 1-6

BTEC DIT: Revision 1-6

1st - 12th Grade

11 Qs

site uzantıları

site uzantıları

5th Grade

10 Qs

Angular

Angular

1st - 5th Grade

9 Qs

HTTP & Webservices

HTTP & Webservices

5th Grade - Professional Development

15 Qs

WRITING PROCEDURES IN LOGO

WRITING PROCEDURES IN LOGO

4th Grade

15 Qs

Term 2 - Grade 1 ICT - Basic Excel

Term 2 - Grade 1 ICT - Basic Excel

1st Grade

10 Qs

Introduction to Excel

Introduction to Excel

2nd Grade

15 Qs

header and footer

header and footer

5th Grade

10 Qs

Reflection

Reflection

Assessment

Quiz

Computers

1st - 5th Grade

Medium

Created by

Nataly Revutska

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Choose the method defined by MemberInfo

GetCustomAttributes()

GetCustomAttributesData()

IsDefined()

All of the mentioned

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Choose the class from which the namespace ‘System.Type’ is derived?

System.Reflection.MemberInfo

System.Reflection

Both System.Reflection & System.Reflection.MemberInfo

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which class allows create instances of classes during late binding?

Type

Activator

Assembly

MemberInfo

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What can't be an attribute's target?

Parameter

Delegate

Module

Namespace

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The property signifies “Obtains a Module object that represents the module (an executable file) in which the reflected type resides”. Choose the property which specifies the following statement?

Type DeclaringType

int MetadataToken

Module Module

Type ReflectedType

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following C# code specify?

object Invoke(object obj, object[] parameters)

Calling a type using invoke()

The value returned by the invoked method is returned by Invoke()

Any arguments that need to be passed to the method are specified in the array parameters

All of the mentioned

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we get private fields ?

FieldInfo[] fields = myType.GetFields();

FieldInfo[] fields = myType.GetFields(

BindingFlags.NonPublic);

FieldInfo[] fields = myType.GetFields(

BindingFlags.NonPublic |

BindingFlags.Instance);

FieldInfo[] fields = myType.GetFields(

BindingFlags.Instance);

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Computers