SlideShare a Scribd company logo
Teacher:Bilal Shehzad
EAD REFLECTION
Presentation Topic:
Reflection(C#)
Prepared For:
Bilal Shahzad
Prepared By:
Nabell (BCSF12M060)
Sheraz Manzoor (BCSF13M009)
Arham Butt (BCSF13M025)
Farhan (BCSF13M058)
Zubair Dar (BCSF13M065)
Video link: https://youtu.be/MC1b3P4Mw3M
PUNJAB UNI COLLEGE OF INFORMATION &
TECHNOLOGY
Teacher:Bilal Shehzad
EAD REFLECTION
1. What can assembly do?
a. Define and load assembly
b. Define assembly
c. Load assembly
2. Which of these is true about assembly that contains the code that is
currently executing
a. var assembly = System.Reflection.Assembly (Type type);
b. var assembly = System.Reflection.Assembly.GetAssembly(Type type);
c. var assembly = System.Reflection.Assembly.GetAssembly(Type);
3. How can you load assembly
a. var assembly = System.Replection.Assembly.Load();
b. var assembly = System.Replection.Assembly.Load(string
assemblyString);
c. var assembly = System.Replection.Assembly();
4. Type class does
a. class types, enumeration types, type parameters,
b. interface types, array types
c. All of these
5. A TypeInfo instance contains:
a. definition for a Type, and a Type
b. Type
c. definition for a Type,
6. What does BindingFlags do?
a. specifies flags that control binding
b. Delete flags that control binding
c. Update flags that control binding
7. bitwise combination of its member values is aloowed by:
a. MethodInfo
b. FlagsAttribute
c. Bindingflags
8. information about the attributes of a member is obytained by
a. MethodInfo
b. FieldInfo
c. MemberInfo
9. member is a custom member type. It is specified by
a. Event
Teacher:Bilal Shehzad
EAD REFLECTION
b. Custom
c. Field
10.Event is a custom member type. It is specified by
a. Event
b. Custom
c. Field
11.field is a custom member type. It is specified by
a. Event
b. Custom
c. Field
12. Method Specifies that the member is a method, representing a:
a. MethodInfo member
b. MemberInfo member
c. feildInfo member
13. NestedType Specifies that the member is a nested type,
extending :
a. MethodInfo member
b. MemberInfo member
c. feildInfo member
14. Property Specifies that the member is a property, representing
a :
a. MethodInfo member
b. PropertyInfo member
c. feildInfo member
15. TypeInfo Specifies that the member is a type, representing a :
a. TypeInfo member.
b. PropertyInfo
c. MemberInfo
16. Which class discovers the attributes of a field and provides
access to field metadata.
a. MemberInfo
b. MethodInfo
c. fieldInfo
17. Which class discovers the attributes of a property and provides
access to property metadata
a. MemberInfo
Teacher:Bilal Shehzad
EAD REFLECTION
b. PropertyInfo
c. fieldInfo
18. Which class allows you to access a given module within a multi-
file assembly.
a. Assembly
b. Module
c. AssemblyName
19. Which class contains information for a given method.
a. Assembly
b. AssemblyName
c. MethodInfo
20. Which class holds information for a given parameter.
a. Assembly
b. Module
c. ParameterInfo
21. GetMethod() returns a
a. System.Reflection.MethodInfo object
b. EventInfo
c .PropertyInfo
22. What is system.reflection namespace hierarchy:
a. System.reflection -> MemberInfo -> Methodbase -> MethodInfo -
> .Net Reflection
b. System.reflection -> MemberInfo -> MethodInfo -> Methodbase -
> .Net Reflection
c. System.reflection -> MethodInfo -> MemberInfo -> Methodbase -
> .Net Reflection
23. The MethodInfo type allows you to obtain the method's return
value and parameter set.
a. True
b. False
24. Does reflection allows late binding?
Teacher:Bilal Shehzad
EAD REFLECTION
a. Yes
b. No
25. Reflection can also be used to create applications called type
browsers.
a. Yes
b. No
26.To discover information such as a parameter's name, data type,
whether a parameter is an input or output parameter,
a. PropertyInfo
b. ParameterInfo
c. MethodInfo
27.To discover information about custom attributes when you are
working in the reflection-only context of an application domain.
a. constructorInfo
b. Module
c. customerAttributeData
28.Which namespace provide a specialized form of reflection that
enables you to build types at run time.
a. System.reflection
b. System.type
c. System.Reflection.Emit
29.Locating the declaration is called Biding
a. True
b. False
30.How can you load an assembly at run time,
a. Late binding
b. Early binding
Teacher:Bilal Shehzad
EAD REFLECTION
c. Custom binding
31.Type.InvokeMember is used to invoke a member of a type
a. True
b. False
32.Which class is used for overload resolution and argument coercion in
methods.
a. Assembly
b. Binder
c. CustomBinder
33.ChangeType performs argument coercion (type conversion)
a. Yes
b. No
34. All code can use reflection to perform the following tasks:
a. Enumerate types and members, and examine their metadata.
b. Enumerate and examine assemblies and modules.
c. Both a & b
35.In reflection isSecurityCritical?
a. Yes
b. No
36.How to Get an array that contains the generic type arguments, using
the GetGenericArguments method.
a.Type[] typeParameters =
t.GetGenericArguments(type);
b.Type[] typeParameters = t.GetGenericArguments();
c.Type[] typeParameters = t.GetGenericArguments(t);
37.Can you create an instance of generic type?
a. Yes
b. No
Teacher:Bilal Shehzad
EAD REFLECTION
38.How can you determine whether type is generic or not?
a. By using IsGenericType
b. By using IsGenericMethod
c. By using MethodInfo
39.From where generic type Parameter might come
a. from an enclosing type,
b. from a generic method
c. Both a&b
40.Can we
use Type.GetGenericArguments and MethodInfo.GetGenericArgume
nts to obtain an array of Type objects that represent the type
parameters or type arguments of a generic type,
a. Yes
b. No
Teacher:Bilal Shehzad
EAD REFLECTION
Links:
http://www.codeproject.com/Articles/17269/Reflection-
in-C-Tutorial
https://dotnetcademy.net/Learn/4/Pages/1
http://www.tutorialspoint.com/csharp/csharp_reflection.
htm
https://msdn.microsoft.com/en-us/library/mt656691.aspx

More Related Content

What's hot

ASP.NET Core
ASP.NET CoreASP.NET Core
ASP.NET Core
Abhimanyu Singhal
 
Provider vs BLoC vs Redux
Provider vs BLoC vs ReduxProvider vs BLoC vs Redux
Provider vs BLoC vs Redux
Bartosz Kosarzycki
 
Workshop: An Introduction to API Automation with Javascript
Workshop: An Introduction to API Automation with JavascriptWorkshop: An Introduction to API Automation with Javascript
Workshop: An Introduction to API Automation with Javascript
Applitools
 
Web API or WCF - An Architectural Comparison
Web API or WCF - An Architectural ComparisonWeb API or WCF - An Architectural Comparison
Web API or WCF - An Architectural Comparison
Adnan Masood
 
Introduction to Cascading Style Sheets
Introduction to Cascading Style SheetsIntroduction to Cascading Style Sheets
Introduction to Cascading Style Sheets
Tushar Joshi
 
Intro to HTML & CSS
Intro to HTML & CSSIntro to HTML & CSS
Intro to HTML & CSS
Syed Sami
 
What is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | EdurekaWhat is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | Edureka
Edureka!
 
Automated testing APEX Applications
Automated testing APEX ApplicationsAutomated testing APEX Applications
Automated testing APEX Applications
Roel Hartman
 
React Interview Questions and Answers | React Tutorial | React Redux Online T...
React Interview Questions and Answers | React Tutorial | React Redux Online T...React Interview Questions and Answers | React Tutorial | React Redux Online T...
React Interview Questions and Answers | React Tutorial | React Redux Online T...
Edureka!
 
Pragmatic RESTful API Design: Apigee Webinar
Pragmatic RESTful API Design: Apigee WebinarPragmatic RESTful API Design: Apigee Webinar
Pragmatic RESTful API Design: Apigee Webinar
Apigee | Google Cloud
 
Spring beans
Spring beansSpring beans
Spring beans
Roman Dovgan
 
Soap and restful webservice
Soap and restful webserviceSoap and restful webservice
Soap and restful webservice
Dong Ngoc
 
Asp.net web api
Asp.net web apiAsp.net web api
Asp.net web api
Binu Bhasuran
 
Hibernate
HibernateHibernate
Hibernate
VISHAL DONGA
 
RESTful Web Services
RESTful Web ServicesRESTful Web Services
RESTful Web Services
Imran M Yousuf
 
Sling Component Filters in CQ5
Sling Component Filters in CQ5 Sling Component Filters in CQ5
Sling Component Filters in CQ5
connectwebex
 
Node.js Express
Node.js  ExpressNode.js  Express
Node.js Express
Eyal Vardi
 
Spring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
Spring I/O 2012: Natural Templating in Spring MVC with ThymeleafSpring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
Spring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
Thymeleaf
 
Building Automated REST APIs with Python
Building Automated REST APIs with PythonBuilding Automated REST APIs with Python
Building Automated REST APIs with Python
Jeff Knupp
 

What's hot (20)

ASP.NET Core
ASP.NET CoreASP.NET Core
ASP.NET Core
 
Provider vs BLoC vs Redux
Provider vs BLoC vs ReduxProvider vs BLoC vs Redux
Provider vs BLoC vs Redux
 
Workshop: An Introduction to API Automation with Javascript
Workshop: An Introduction to API Automation with JavascriptWorkshop: An Introduction to API Automation with Javascript
Workshop: An Introduction to API Automation with Javascript
 
Web API or WCF - An Architectural Comparison
Web API or WCF - An Architectural ComparisonWeb API or WCF - An Architectural Comparison
Web API or WCF - An Architectural Comparison
 
Introduction to Cascading Style Sheets
Introduction to Cascading Style SheetsIntroduction to Cascading Style Sheets
Introduction to Cascading Style Sheets
 
Intro to HTML & CSS
Intro to HTML & CSSIntro to HTML & CSS
Intro to HTML & CSS
 
What is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | EdurekaWhat is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | Edureka
 
Automated testing APEX Applications
Automated testing APEX ApplicationsAutomated testing APEX Applications
Automated testing APEX Applications
 
React Interview Questions and Answers | React Tutorial | React Redux Online T...
React Interview Questions and Answers | React Tutorial | React Redux Online T...React Interview Questions and Answers | React Tutorial | React Redux Online T...
React Interview Questions and Answers | React Tutorial | React Redux Online T...
 
Pragmatic RESTful API Design: Apigee Webinar
Pragmatic RESTful API Design: Apigee WebinarPragmatic RESTful API Design: Apigee Webinar
Pragmatic RESTful API Design: Apigee Webinar
 
Sightly - Part 2
Sightly - Part 2Sightly - Part 2
Sightly - Part 2
 
Spring beans
Spring beansSpring beans
Spring beans
 
Soap and restful webservice
Soap and restful webserviceSoap and restful webservice
Soap and restful webservice
 
Asp.net web api
Asp.net web apiAsp.net web api
Asp.net web api
 
Hibernate
HibernateHibernate
Hibernate
 
RESTful Web Services
RESTful Web ServicesRESTful Web Services
RESTful Web Services
 
Sling Component Filters in CQ5
Sling Component Filters in CQ5 Sling Component Filters in CQ5
Sling Component Filters in CQ5
 
Node.js Express
Node.js  ExpressNode.js  Express
Node.js Express
 
Spring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
Spring I/O 2012: Natural Templating in Spring MVC with ThymeleafSpring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
Spring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
 
Building Automated REST APIs with Python
Building Automated REST APIs with PythonBuilding Automated REST APIs with Python
Building Automated REST APIs with Python
 

Viewers also liked

C# Collection classes
C# Collection classesC# Collection classes
C# Collection classes
MohitKumar1985
 
13 collections
13   collections13   collections
13 collectionsTuan Ngo
 
Net framework і c# module 14
Net framework і c# module 14Net framework і c# module 14
Net framework і c# module 14
Andrii Hladkyi
 
12 events and delegates
12   events and delegates12   events and delegates
12 events and delegatesTuan Ngo
 
C# Generics
C# GenericsC# Generics
C# Generics
Rohit Vipin Mathews
 
Delegates and events
Delegates and eventsDelegates and events
Delegates and eventsIblesoft
 
Delegates and events
Delegates and events   Delegates and events
Delegates and events
Gayathri Ganesh
 
Dynamic Binding in C# 4.0
Dynamic Binding in C# 4.0Dynamic Binding in C# 4.0
Dynamic Binding in C# 4.0Buu Nguyen
 
C# Delegates, Events, Lambda
C# Delegates, Events, LambdaC# Delegates, Events, Lambda
C# Delegates, Events, LambdaJussi Pohjolainen
 
OOP - Benefits and advantages of OOP
OOP - Benefits and advantages of OOPOOP - Benefits and advantages of OOP
OOP - Benefits and advantages of OOP
Mudasir Qazi
 
C# Delegates and Event Handling
C# Delegates and Event HandlingC# Delegates and Event Handling
C# Delegates and Event HandlingJussi Pohjolainen
 
Advanced C#. Part 1
Advanced C#. Part 1Advanced C#. Part 1
Advanced C#. Part 1
eleksdev
 
Advanced C#. Part 2
Advanced C#. Part 2Advanced C#. Part 2
Advanced C#. Part 2
eleksdev
 
C# Exceptions Handling
C# Exceptions Handling C# Exceptions Handling
C# Exceptions Handling
sharqiyem
 

Viewers also liked (15)

C# Collection classes
C# Collection classesC# Collection classes
C# Collection classes
 
13 collections
13   collections13   collections
13 collections
 
Net framework і c# module 14
Net framework і c# module 14Net framework і c# module 14
Net framework і c# module 14
 
Collections in-csharp
Collections in-csharpCollections in-csharp
Collections in-csharp
 
12 events and delegates
12   events and delegates12   events and delegates
12 events and delegates
 
C# Generics
C# GenericsC# Generics
C# Generics
 
Delegates and events
Delegates and eventsDelegates and events
Delegates and events
 
Delegates and events
Delegates and events   Delegates and events
Delegates and events
 
Dynamic Binding in C# 4.0
Dynamic Binding in C# 4.0Dynamic Binding in C# 4.0
Dynamic Binding in C# 4.0
 
C# Delegates, Events, Lambda
C# Delegates, Events, LambdaC# Delegates, Events, Lambda
C# Delegates, Events, Lambda
 
OOP - Benefits and advantages of OOP
OOP - Benefits and advantages of OOPOOP - Benefits and advantages of OOP
OOP - Benefits and advantages of OOP
 
C# Delegates and Event Handling
C# Delegates and Event HandlingC# Delegates and Event Handling
C# Delegates and Event Handling
 
Advanced C#. Part 1
Advanced C#. Part 1Advanced C#. Part 1
Advanced C#. Part 1
 
Advanced C#. Part 2
Advanced C#. Part 2Advanced C#. Part 2
Advanced C#. Part 2
 
C# Exceptions Handling
C# Exceptions Handling C# Exceptions Handling
C# Exceptions Handling
 

Similar to Reflection Mcq's by Zubair Dar

Std 12 computer chapter 8 classes and objects in java important MCQs
Std 12 computer chapter 8 classes and objects in java important MCQsStd 12 computer chapter 8 classes and objects in java important MCQs
Std 12 computer chapter 8 classes and objects in java important MCQs
Nuzhat Memon
 
Tổng hợp câu hỏi ôn tập android có đáp án
Tổng hợp câu hỏi ôn tập android có đáp ánTổng hợp câu hỏi ôn tập android có đáp án
Tổng hợp câu hỏi ôn tập android có đáp ánbsb_2209
 
Java Programming.pdf
Java Programming.pdfJava Programming.pdf
Java Programming.pdf
RavinderKSingla
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1 UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
Knowledge Center Computer
 
Ganesh groups
Ganesh groupsGanesh groups
Ganesh groups
Ganesh Amirineni
 
Lecturespecial
LecturespecialLecturespecial
Lecturespecial
karan saini
 
OOP
OOPOOP
Java MCQs.pdf
Java MCQs.pdfJava MCQs.pdf
Java MCQs.pdf
IT Eagers
 
C++ Object Oriented Programming
C++  Object Oriented ProgrammingC++  Object Oriented Programming
C++ Object Oriented Programming
Gamindu Udayanga
 
Oop inheritance
Oop inheritanceOop inheritance
Oop inheritance
Zubair CH
 
C# interview questions
C# interview questionsC# interview questions
C# interview questions
Chetan Chaudhari
 
Reflection in C Sharp
Reflection in C SharpReflection in C Sharp
Reflection in C Sharp
Harman Bajwa
 
Reflection in java
Reflection in javaReflection in java
Reflection in javaupen.rockin
 
Inheritance and Interfaces
Inheritance and InterfacesInheritance and Interfaces
Inheritance and Interfaces
NAGASURESH MANOHARAN
 
Spring Certification Questions
Spring Certification QuestionsSpring Certification Questions
Spring Certification Questions
SpringMockExams
 
Lecture 3 __c_sharp
Lecture 3 __c_sharpLecture 3 __c_sharp
Lecture 3 __c_sharp
mahpara saaleem
 
Pega 7 CSA DUMPS,pega csa dumps
Pega 7 CSA DUMPS,pega csa dumps Pega 7 CSA DUMPS,pega csa dumps
Pega 7 CSA DUMPS,pega csa dumps
Ashock Roy
 
Java Reflection Concept and Working
Java Reflection Concept and WorkingJava Reflection Concept and Working
Java Reflection Concept and Working
Software Productivity Strategists, Inc
 
Object-oriented programming 3.pptx
Object-oriented programming 3.pptxObject-oriented programming 3.pptx
Object-oriented programming 3.pptx
Adikhan27
 

Similar to Reflection Mcq's by Zubair Dar (20)

Std 12 computer chapter 8 classes and objects in java important MCQs
Std 12 computer chapter 8 classes and objects in java important MCQsStd 12 computer chapter 8 classes and objects in java important MCQs
Std 12 computer chapter 8 classes and objects in java important MCQs
 
Tổng hợp câu hỏi ôn tập android có đáp án
Tổng hợp câu hỏi ôn tập android có đáp ánTổng hợp câu hỏi ôn tập android có đáp án
Tổng hợp câu hỏi ôn tập android có đáp án
 
Java Programming.pdf
Java Programming.pdfJava Programming.pdf
Java Programming.pdf
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1 UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
 
Ganesh groups
Ganesh groupsGanesh groups
Ganesh groups
 
Lecturespecial
LecturespecialLecturespecial
Lecturespecial
 
OOP
OOPOOP
OOP
 
Java MCQs.pdf
Java MCQs.pdfJava MCQs.pdf
Java MCQs.pdf
 
C++ Object Oriented Programming
C++  Object Oriented ProgrammingC++  Object Oriented Programming
C++ Object Oriented Programming
 
Oop inheritance
Oop inheritanceOop inheritance
Oop inheritance
 
C# interview questions
C# interview questionsC# interview questions
C# interview questions
 
Reflection in C Sharp
Reflection in C SharpReflection in C Sharp
Reflection in C Sharp
 
hi
hihi
hi
 
Reflection in java
Reflection in javaReflection in java
Reflection in java
 
Inheritance and Interfaces
Inheritance and InterfacesInheritance and Interfaces
Inheritance and Interfaces
 
Spring Certification Questions
Spring Certification QuestionsSpring Certification Questions
Spring Certification Questions
 
Lecture 3 __c_sharp
Lecture 3 __c_sharpLecture 3 __c_sharp
Lecture 3 __c_sharp
 
Pega 7 CSA DUMPS,pega csa dumps
Pega 7 CSA DUMPS,pega csa dumps Pega 7 CSA DUMPS,pega csa dumps
Pega 7 CSA DUMPS,pega csa dumps
 
Java Reflection Concept and Working
Java Reflection Concept and WorkingJava Reflection Concept and Working
Java Reflection Concept and Working
 
Object-oriented programming 3.pptx
Object-oriented programming 3.pptxObject-oriented programming 3.pptx
Object-oriented programming 3.pptx
 

Recently uploaded

Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 

Recently uploaded (20)

Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 

Reflection Mcq's by Zubair Dar

  • 1. Teacher:Bilal Shehzad EAD REFLECTION Presentation Topic: Reflection(C#) Prepared For: Bilal Shahzad Prepared By: Nabell (BCSF12M060) Sheraz Manzoor (BCSF13M009) Arham Butt (BCSF13M025) Farhan (BCSF13M058) Zubair Dar (BCSF13M065) Video link: https://youtu.be/MC1b3P4Mw3M PUNJAB UNI COLLEGE OF INFORMATION & TECHNOLOGY
  • 2. Teacher:Bilal Shehzad EAD REFLECTION 1. What can assembly do? a. Define and load assembly b. Define assembly c. Load assembly 2. Which of these is true about assembly that contains the code that is currently executing a. var assembly = System.Reflection.Assembly (Type type); b. var assembly = System.Reflection.Assembly.GetAssembly(Type type); c. var assembly = System.Reflection.Assembly.GetAssembly(Type); 3. How can you load assembly a. var assembly = System.Replection.Assembly.Load(); b. var assembly = System.Replection.Assembly.Load(string assemblyString); c. var assembly = System.Replection.Assembly(); 4. Type class does a. class types, enumeration types, type parameters, b. interface types, array types c. All of these 5. A TypeInfo instance contains: a. definition for a Type, and a Type b. Type c. definition for a Type, 6. What does BindingFlags do? a. specifies flags that control binding b. Delete flags that control binding c. Update flags that control binding 7. bitwise combination of its member values is aloowed by: a. MethodInfo b. FlagsAttribute c. Bindingflags 8. information about the attributes of a member is obytained by a. MethodInfo b. FieldInfo c. MemberInfo 9. member is a custom member type. It is specified by a. Event
  • 3. Teacher:Bilal Shehzad EAD REFLECTION b. Custom c. Field 10.Event is a custom member type. It is specified by a. Event b. Custom c. Field 11.field is a custom member type. It is specified by a. Event b. Custom c. Field 12. Method Specifies that the member is a method, representing a: a. MethodInfo member b. MemberInfo member c. feildInfo member 13. NestedType Specifies that the member is a nested type, extending : a. MethodInfo member b. MemberInfo member c. feildInfo member 14. Property Specifies that the member is a property, representing a : a. MethodInfo member b. PropertyInfo member c. feildInfo member 15. TypeInfo Specifies that the member is a type, representing a : a. TypeInfo member. b. PropertyInfo c. MemberInfo 16. Which class discovers the attributes of a field and provides access to field metadata. a. MemberInfo b. MethodInfo c. fieldInfo 17. Which class discovers the attributes of a property and provides access to property metadata a. MemberInfo
  • 4. Teacher:Bilal Shehzad EAD REFLECTION b. PropertyInfo c. fieldInfo 18. Which class allows you to access a given module within a multi- file assembly. a. Assembly b. Module c. AssemblyName 19. Which class contains information for a given method. a. Assembly b. AssemblyName c. MethodInfo 20. Which class holds information for a given parameter. a. Assembly b. Module c. ParameterInfo 21. GetMethod() returns a a. System.Reflection.MethodInfo object b. EventInfo c .PropertyInfo 22. What is system.reflection namespace hierarchy: a. System.reflection -> MemberInfo -> Methodbase -> MethodInfo - > .Net Reflection b. System.reflection -> MemberInfo -> MethodInfo -> Methodbase - > .Net Reflection c. System.reflection -> MethodInfo -> MemberInfo -> Methodbase - > .Net Reflection 23. The MethodInfo type allows you to obtain the method's return value and parameter set. a. True b. False 24. Does reflection allows late binding?
  • 5. Teacher:Bilal Shehzad EAD REFLECTION a. Yes b. No 25. Reflection can also be used to create applications called type browsers. a. Yes b. No 26.To discover information such as a parameter's name, data type, whether a parameter is an input or output parameter, a. PropertyInfo b. ParameterInfo c. MethodInfo 27.To discover information about custom attributes when you are working in the reflection-only context of an application domain. a. constructorInfo b. Module c. customerAttributeData 28.Which namespace provide a specialized form of reflection that enables you to build types at run time. a. System.reflection b. System.type c. System.Reflection.Emit 29.Locating the declaration is called Biding a. True b. False 30.How can you load an assembly at run time, a. Late binding b. Early binding
  • 6. Teacher:Bilal Shehzad EAD REFLECTION c. Custom binding 31.Type.InvokeMember is used to invoke a member of a type a. True b. False 32.Which class is used for overload resolution and argument coercion in methods. a. Assembly b. Binder c. CustomBinder 33.ChangeType performs argument coercion (type conversion) a. Yes b. No 34. All code can use reflection to perform the following tasks: a. Enumerate types and members, and examine their metadata. b. Enumerate and examine assemblies and modules. c. Both a & b 35.In reflection isSecurityCritical? a. Yes b. No 36.How to Get an array that contains the generic type arguments, using the GetGenericArguments method. a.Type[] typeParameters = t.GetGenericArguments(type); b.Type[] typeParameters = t.GetGenericArguments(); c.Type[] typeParameters = t.GetGenericArguments(t); 37.Can you create an instance of generic type? a. Yes b. No
  • 7. Teacher:Bilal Shehzad EAD REFLECTION 38.How can you determine whether type is generic or not? a. By using IsGenericType b. By using IsGenericMethod c. By using MethodInfo 39.From where generic type Parameter might come a. from an enclosing type, b. from a generic method c. Both a&b 40.Can we use Type.GetGenericArguments and MethodInfo.GetGenericArgume nts to obtain an array of Type objects that represent the type parameters or type arguments of a generic type, a. Yes b. No