
Reflection

Quiz
•
Computers
•
1st - 5th Grade
•
Medium
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
Similar Resources on Wayground
9 questions
Angular

Quiz
•
1st - 5th Grade
15 questions
WRITING PROCEDURES IN LOGO

Quiz
•
4th Grade
14 questions
INTRODUCTION TO MEDIA AND INFORMATION LITERACY HUMSS

Quiz
•
KG - 11th Grade
11 questions
CPU Components

Quiz
•
5th - 10th Grade
10 questions
Term 2 - Grade 1 ICT - Basic Excel

Quiz
•
1st Grade
11 questions
BTEC DIT: Revision 1-6

Quiz
•
1st - 12th Grade
6 questions
What is Fake News?

Quiz
•
4th - 6th Grade
10 questions
Cyber Security

Quiz
•
5th - 8th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade