Hey Guys !! To move forward in ASP.NET framework latest versions, I would like to refresh your memory.Here is some basic puzzles about ASP.NET.All Questions are very easy.Try to solve and get ready for my next post :) .
Brush Up Your ASP.NET Basics
Heart of ASP.NET Framework?
Which component is responsible for converting IL Code to Native Code?
Name the types of JIT compiler
Which component is responsible for service orinted communication?
Which component contains the subset of types and rules for language interoperation?
Which component is responsible to allow the programmer to insert 2-D and 3-D graphics and animation?
List of new components of .NET 3.0 and above versions?
>Which component is responsible to take care of controlling the flow of different operations in an application?
Name a component working across platforms / devices / languages using HTTP and XML?
Hai Ritu, Thanks for posting good and tricky questions in DNS. These questions will really helpful for those who are ready to go for interviews: I am trying to post the answers for the questions. Please if anything is wrong then please correct me and provide the correct answer with explanation:
1. Heart of ASP.NET Framework? A. I would go with CLR(Common Language Runtime) which is used for running the application. Not only for running the application but taking care of many things- Like Automatic Memory management, CasPol, version system etc.
2. Which component is responsible for converting IL Code to Native Code? A. My answer will be JIT(Just In Time) Compiler which is used to convert the MSIL(IL) code to machine level code(native Code).
3. Name the types of JIT compiler A. 3-types a. Pre JIT b. Econo JIT c. Normal JIT
4. Which component is responsible for service oriented communication? A. SOA(Service oriented Architecture) which is the framework for designing the Service Oriented Application. It has mainly 4 rules on which each SOA application is conform to.
5. Which component contains the subset of types and rules for language inter-operation? A. RCW(Runtime Callable Wrapper) and CCW(COM Callable Wrapper) are used for the interoperability in .Net
6. Which component is responsible to allow the programmer to insert 2-D and 3-D graphics and animation? A. WPF(Windows Presentation Foundation)
7. List of new components of .NET 3.0 and above versions? A. There are 4 new componenets added with the .Net Framework 3.0 a. WWF(Windows Workflow Foundation) b. WPF(Windows Presentation Foundation) c. WCF(Windows Comunication Foundation) d. WC(Windows Cardspace)
8. Which component is responsible to take care of controlling the flow of different operations in an application? A. WWF(Windows Workflow Foundation)
9. Name a component working across platforms / devices / languages using HTTP and XML? A. Web Services and WCF(Windows Communication Foundation)
10. MVC means A. Model View Controller
11. Name the types of Polymorphism. A. 2-types a. Classical Polymorphism (Overloading) b. Ad Hoc Polymorphism (Overriding)
12. Is multiple inheritance allowed in C#? A. Not directly. By using Interfaces, we can achieve the multiple inheritance feature.
13. Can static method access non-static data members? A. Yes, Create the object of the class and use its members.
14. Which keyword is used to declare indexer? A. Not sure about the keyword. We declare the indexer using [].
5. Which component contains the subset of types and rules for language inter-operation?
CLS - common language specification. this give the rules and contains definitions for common types which can be used across all .net languages like System.Int32
11. Name the types of Polymorphism.
compile time polymorphism and run-time polymorphism. the operation on which object should be executed is decided either on compile time or at run-time
12. Is multiple inheritance allowed in C#?
multiple inheritance is not allowed in c#. we can only implement multiple interfaces and it cannot be called pure inheritance because the behavior is not defined in the interface originally and we cannot say the derived class inherited a behavior from the interface.
13. Can static method access non-static data members?
No. static method access cannot directly non-static data members. for accessing instance members an object reference is required.
Thanks for posting answers.Good Job :) PFB answers of three questions, that I found incorrect.Let me know in case of any doubt or Query.
4) Which component is responsible for service oriented communication? A: WCF
5)Which component contains the subset of types and rules for language inter-operation? A: CTS (Common type System) CLS (Common language Specification) is a subset of CTS.
14)Which keyword is used to declare indexer? A: 'This' Keyword. Indexer allows members of an instance of a class to be indexed in the same way as elements of array.Indexers are same as properties except that the name of the indexer is this followed by a parameter list.
Hai Ritu,
Thanks for posting good and tricky questions in DNS. These questions will really helpful for those who are ready to go for interviews:
I am trying to post the answers for the questions. Please if anything is wrong then please correct me and provide the correct answer with explanation:
1. Heart of ASP.NET Framework?
A. I would go with CLR(Common Language Runtime) which is used for running the application. Not only for running the application but taking care of many things- Like Automatic Memory management, CasPol, version system etc.
2. Which component is responsible for converting IL Code to Native Code?
A. My answer will be JIT(Just In Time) Compiler which is used to convert the MSIL(IL) code to machine level code(native Code).
3. Name the types of JIT compiler
A. 3-types
a. Pre JIT
b. Econo JIT
c. Normal JIT
4. Which component is responsible for service oriented communication?
A. SOA(Service oriented Architecture) which is the framework for designing the Service Oriented Application. It has mainly 4 rules on which each SOA application is conform to.
5. Which component contains the subset of types and rules for language inter-operation?
A. RCW(Runtime Callable Wrapper) and CCW(COM Callable Wrapper) are used for the interoperability in .Net
6. Which component is responsible to allow the programmer to insert 2-D and 3-D graphics and animation?
A. WPF(Windows Presentation Foundation)
7. List of new components of .NET 3.0 and above versions?
A. There are 4 new componenets added with the .Net Framework 3.0
a. WWF(Windows Workflow Foundation)
b. WPF(Windows Presentation Foundation)
c. WCF(Windows Comunication Foundation)
d. WC(Windows Cardspace)
8. Which component is responsible to take care of controlling the flow of different operations in an application?
A. WWF(Windows Workflow Foundation)
9. Name a component working across platforms / devices / languages using HTTP and XML?
A. Web Services and WCF(Windows Communication Foundation)
10. MVC means
A. Model View Controller
11. Name the types of Polymorphism.
A. 2-types
a. Classical Polymorphism (Overloading)
b. Ad Hoc Polymorphism (Overriding)
12. Is multiple inheritance allowed in C#?
A. Not directly. By using Interfaces, we can achieve the multiple inheritance feature.
13. Can static method access non-static data members?
A. Yes, Create the object of the class and use its members.
14. Which keyword is used to declare indexer?
A. Not sure about the keyword. We declare the indexer using [].
Hope it will be helpful for the members.