Wednesday, November 6, 2019
Data Base Essays
Data Base Essays Data Base Essay Data Base Essay C# Programming :: . NET Framework Which of the following statements are TRUE about the . NET CLR? 1. It provides a language-neutral development execution environment. 2. It ensures that an application would not be able to access memory that it is not authorized to access. 3. It provides services to run managed applications. 4. The resources are garbage collected. 5. It provides services to run unmanaged applications. A. Only 1 and 2 B. Only and 4 c. 1, 23,4 D. Only 4 and 5 Only 3 and 4 Answer Explanation Answer: Option C Explanation: No answer description available for this question. Let us discuss. 2. Which of the following are valid . NET CLR JIT performance counters? 1. Total memory used for JIT compilation 2. Average memory used for JIT compilation 3. Number of methods that failed to compile with the standard JIT 4. Percentage of processor time spent performing JIT compilation 5. Percentage of memory currently dedicated for JIT compilation 3. Which of the following statements is correct about Managed Code? Managed code is the code that is compiled by the JIT compilers. B. Managed code is the code where resources are Garbage Collected. C. Managed code is the code that runs on top of Windows. Managed code is the code that is written to target the services of the CLR. E. Managed code is the code that can run on top of Linux. Answer: Option D 4. Which of the following utilities can be used to compile managed assemblies into processor-specific native code? gacutil ngen dumpbin ildasm Answer: Option B 5. Which of the following are NOT true about . NET Framework? 1 . It provides a consistent object-oriented programming environment whether object code is stored and executed locally, executed locally but Internet-distributed, or xecuted remotely. . It provides a code-execution environment that minimizes environment that promotes safe execution of code, including code created by an unknown or semi-trusted third party. 4. It provides different programming models for Windows-based applications and Web-based applications. 5. It provides an event driven programming model for building Windows Device Drivers. 6. Which of the followi ng components of the . NET framework provide an extensible set of classes that can be used by any . NET compliant programming language? .NET class libraries Common Language Runtime Common Language Infrastructure Component Object Model Common Type System Answer: Option A 7. Which of the following Jobs are NOT performed by Garbage Collector? 1 . Freeing memory on the stack. 2. Avoiding memory leaks. 3. Freeing memory occupied by unreferenced objects. 4. Closing unclosed database collections. 5. Closing unclosed files. 8. Which of the following . NET components can be used to remove unused references from the managed heap? CLR Garbage Collector Class Loader CTS 9. Which of the following statements correctly define . NET Framework? It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services. B. It is an environment for developing, building, deploying and executing only Web Applications. C. It is an environment for developing, building, deploying and executing Distributed Applications. D. It is an environment for developing, building, deploying and executing Web Services. Explanation 10. Which of the following constitutes the . NET Framework? 1 . ASP. NET Applications 2. CLR 3. Framework Class Library 4. WinForm Applications . Windows Services No answer description available for this question. Let us discuss. 11. Which of the following assemblies can be stored in Global Assembly Cache? Private Assemblies Friend Assemblies Shared Assemblies Public Assemblies Protected Assemblies No answer description available for this question. Let us discuss. View Answer Workspace Report Discuss in Forum 12. Unmanaged Distributed Legacy Managed Code Native Code 13. Which of the following statements is correct about the . NET Framework? .NET Framework uses DCOM for achieving language interoperability. B. .NET Framework is built on the DCOM technology. .NET Framework uses DCOM for making transition between managed and unmanaged code. D. .NET Framework uses DCOM for creating unmanaged applications. E. .NET Framework uses COM+ services while creating Distributed Applications. Answer 14. Which of the following is the root of the . NET type hierarchy? System. ObJect System. Type System. Base System. Root 15. Which of the following benefits do we get on running managed code under CLR? 1 . Type safety of the code running under CLR is assured. 2. It is ensured that an application would not access the memory that it is not authorized to access. 3. It launches separate process for every application running under it. 4. The resources are Garbage collected. Only 2, 3 and 4 only 4 All of the above Answer: Option E No answer description available for this question. Let us discuss. 16. Which of the following security features can . NET applications avail? 1. PIN Security 2. Code Access Security 3. Role Based Security 4. Authentication Security 5. Biorhythm Security 17. Which of the following Jobs are done by Common Language Runtime? It provides core services such as memory management, thread management, and remoting. 2. It enforces strict type safety. 3. It provides Code Access Security. 4. It provides Garbage Collection Services. only 3, 4 18. Which of the following statements are correct about a . NET Assembly? 1. It is the smallest deployable unit. 2. Each assembly has only one entry point Main(), WinMain() or DLLMain(). 3. An a ssembly can be a Shared assembly or a Private assembly. 4. An assembly can contain only code and data. 5. An assembly is always in the form of an EXE file. 19. Which of the following statements are correct about JIT? 1 . JIT compiler compiles instructions into machine code at run time. 2. The code compiler by the JIT compiler runs under CLR. 3. The instructions compiled by JIT compilers are written in native code. 4. The instructions compiled by JIT compilers are written in Intermediate Language (IL) code. 5. The method is JIT compiled even if it is not called 20. Which of the following are parts of the . NET Framework? 1 . The Common Language Runtime (CLR) 2. The Framework Class Libraries (FCL) 3. Microsoft Published Web Services . Applications deployed on 11S 5. Mobile Applications only 1, z 3 only only 1, z 4 only 4, 5 Datatypes Which of the following statements are correct about data types? 1 . If the integer literal exceeds the range of byte, a compilation error will occur. 2. We cannot implicitly convert non-literal numeric types of larger storage size to byte. 3. Byte cannot be implicitly converted to float. 4. A char can be implicitly converted to only int data type. 5. We can cast the integral character codes. Which of the following is an 8-byte Integer? Char Long Short Byte Integer
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.