Você está na página 1de 5

1. What is .NET Framework Ans. The .NET Framework is the infrastructure for the new Microsoft .NET Platform.

The .NET Framework is a common environment for building, deploying, and running Web Services and Web Applications 2. What is MSIL : Microsoft Intermediate Language (MSIL) Ans. An intermediate language generated by compiler is called MSIL. All .Net assemblies are represented in MSIL.The main Advantage of using MSIL is it provides equal performance for multiple language programming, as code is compiled to native code. 3. What are Two main Components of .Net Framework Ans. 1.Common Language Runtime 2:Base Class Library. 4. Describe .Net Framework Class Library Ans. The Base Class Library (BCL), part of the Framework Class Library (FCL), is a library of functionality available to all languages using the .NET Framework. The BCL provides classes which encapsulate a number of common functions. 5. How many classes can a single .NET DLL contain Ans. Unlimited 6. Name the assembly that is required to build any sort of WCF application Ans. System.Servicemodel.dll 7. Explain the role of assembly in the .Net Framework Ans. .Net Framework keeps executable code or DLL in the form of assembly. .Net Framework maintains multiple versions of the application in the system through assembly. The assemblies have MSIL code and manifest that contains metadata. The metadata contains version information of the assembly. 8. What is the difference between un-safe code & un-managed code. Ans. Un-managed code runs outside the CLR control while the Un-safe code runs inside the CLR control. Both of these may use pointers & direct memory access. 9. What is the procedure to add assembly to GAC to make it shared one Ans. Go to visual studio command prompt use the following command GACUTIL -i "PATH of the dll". 10. What is DLL Hell and how is it solved Ans. Its slang used in COM technology where it was ambiguous to invoke assembly which has two different copies existing together with the same name. In .NET technology, it has been overcome with version control concept. 11. What is the core library of CLR Ans. MSCORLIB.DLL is the core library of CLR.

12. Difference between Namespace and Assembly Ans. Assembly is physical grouping of logical units,Namespace forms the logical boundary for a group of classes.Namespace can span multiple assembly. 13. What is difference between Compilation and Runtime. Ans. A high level language which means it is meant for humans to understand not for computers. For a computer to understand a program it has to be compiled, that is changed into machine language. Once a program is in machine language then the computer can understand it and perform the actions it describes (that is to run the program). A program need only be compiled once but (once compiled) it can be run any number of times. 14. Describe the difference between a Thread and a Process Ans. Threads are similar to processes, but differ in the way that they share resources. Threads are distinguished from processes in that processes are typically independent, carry considerable state information and have separate address spaces. Threads typically share the memory belonging to their parent process. 15. ________ does not need buffering Ans. Memory stream 16. To use any non .NET applications like PHP, ___________ should be installed over studio Ans. Plugin 17. Reference type holds the reference to the values on Ans. Heap. 18. The number of bytes a character takes is decided by the type of ________________ Ans. Encoding. 19. In a stream of Binary, the unit of data is ___________ Ans. not fixed. 20. ___________ is inherited from stream. Ans. 1. File stream, 2. emory stream, 3. Buffered stream.

21. Stream and its inherited classes provide us data in the form of _____________ Ans. Bytes. 22. _________________ is used to read from, write to, and manipulate file-related operations. Ans. File stream. 23. The write method is ____________ for all the basic datatypes

Ans. Overloaded. 24. In __________ serialization only the public instance members of a public class can be serialized Ans. XML 25. File stream objects support random access to files using the ___________ method. Ans. Seek. 26. If a thread executes ____________ the current thread state is changed to waiting and it remains in that state until th thread referred by "t" is terminated. Ans. t.Join(). 27. In .Net every thread has two objects associated with it. Custom object and object of type _____________ . Ans. System.Threading.Threads 28. A thread is said to be in ___________ state when the resources are not available to it and it is waiting for them. Ans. Blocked. 29. While in __________ state, the thread doesn't perform any task Ans. Sleeping. 30. A thread is waiting for processor to be allocated to it in __________ state. Ans. Ready 31. Scheduling is done based on the priority of __________ Ans. Thread

32. In _____________ scheduling, OS can un-schedule a thread even if it did not complete its task. Ans. Preemptive 33. Every process has _____________ Ans. its own memory address space 34. _____________ has no backing store and might be useful as a temporary buffer. Ans. Memory stream 35. In VB.Net, If main is written in class, it must be declared as Ans. Shared 36. Range for n-bits signed number a. -2n-1 to 2n-1 -1 b. 2n-1 to 2n-1 +1 c. 0 to 2n-1 d. 2n-1 to 2n -1

Ans. -2n-1 to 2n-1 -1 37. The return value of an application is called as __________ Ans. Exit code 38. The output of any .NET program is a ___________ Ans. PE file 39. .exe is an ____________ . It __________ run on it's own Ans. application, can 40. MS.NET framework SDK is used for _____________ of .NET applications Ans. development

Você também pode gostar