C Sample Test,Sample questions

Question:
  
Which of the following .NET components can be used to remove unused references from the managed heap?

1.Common Language Infrastructure

2.CLR

3.Garbage Collector

4. Class Loader

Posted Date:-2021-02-20 07:18:33


Question:
  
Which of the following jobs are done by Common Language Runtime?

It provides core services such as memory management, thread management, and remoting.
It enforces strict type safety.
It provides Code Access Security.
It provides Garbage Collection Services.

1.Only 1 and 2

2.Only 3, 4

3.Only 1, 3 and 4

4.All of the above

Posted Date:-2021-02-20 07:18:33


Question:
  
Which of the following security features can .NET applications avail?

PIN Security
Code Access Security
Role Based Security
Authentication Security
Biorhythm Security

1.1, 4, 5

2.2, 5

3.2, 3

4.3, 4

Posted Date:-2021-02-20 07:18:33


Question:
  
Which of the following statements are correct about a .NET Assembly?

It is the smallest deployable unit.
Each assembly has only one entry point - Main(), WinMain() or DLLMain().
An assembly can be a Shared assembly or a Private assembly.
An assembly can contain only code and data.
An assembly is always in the form of an EXE file

1.1, 2, 3

2.2, 4, 5

3.1, 3, 5

4.1, 2

Posted Date:-2021-02-20 07:18:33


Question:
"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."

1.Only 1 and 2

2.Only 1, 2 and 4

3.1,2,3,4

4.Only 3 and 4

Posted Date:-2021-02-20 07:18:33


Question:
Code that targets the Common Language Runtime is known as

1.Unmanaged

2.Distributed

3.Legacy

4. Managed Code

Posted Date:-2021-02-20 07:18:33


Question:
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 executed remotely.
2. It provides a code-execution environment that minimizes software deployment and versioning conflicts.
3. It provides a code-execution 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.

1.1,2

2.2,4

3.4,5

4.1,2,4

Posted Date:-2021-02-20 07:18:33


Question:
Which of the following are parts of the .NET Framework?

The Common Language Runtime (CLR)
The Framework Class Libraries (FCL)
Microsoft Published Web Services
Applications deployed on IIS
Mobile Applications

1.Only 1, 2, 3

2.Only 1, 2

3.Only 1, 2, 4

4.Only 4, 5

Posted Date:-2021-02-20 07:18:33


Question:
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

1.1,5

2.3,4

3.1,2

4.4,5

Posted Date:-2021-02-20 07:18:33


Question:
Which of the following assemblies can be stored in Global Assembly Cache?

1.Private Assemblies

2.Friend Assemblies

3.Shared Assemblies

4. Public Assemblies

Posted Date:-2021-02-20 07:18:33


Question:
Which of the following assemblies can be stored in Global Assembly Cache?

1.Private Assemblies

2. Friend Assemblies

3.Shared Assemblies

4. Public Assemblies

Posted Date:-2021-02-20 07:18:33


Question:
Which of the following benefits do we get on running managed code under CLR?

Type safety of the code running under CLR is assured.
It is ensured that an application would not access the memory that it is not authorized to access.
It launches separate process for every application running under it.
The resources are Garbage collected.

1.Only 1 and 2

2.Only 2, 3 and 4

3.Only 1, 2 and 4

4. All of the above

Posted Date:-2021-02-20 07:18:33


Question:
Which of the following components of the .NET framework provide an extensible set of classes that can be used by any .NET compliant programming language?

1.NET class libraries

2.Common Language Runtime

3.Common Language Infrastructure

4.Component Object Model

Posted Date:-2021-02-20 07:18:33


Question:
Which of the following constitutes the .NET Framework?

1.ASP.NET Applications

2.CLR

3.Framework Class Library

4.WinForm Applications

Posted Date:-2021-02-20 07:18:33


Question:
Which of the following is the root of the .NET type hierarchy?

1.System.Object

2.System.Type

3.System.Base

4.System.Parent

Posted Date:-2021-02-20 07:18:33


Question:
Which of the following jobs are NOT performed by Garbage Collector?

Freeing memory on the stack.
Avoiding memory leaks.
Freeing memory occupied by unreferenced objects.
Closing unclosed database collections.
Closing unclosed files

1.1, 2, 3

2.3,5

3.1,4,5

4.3,4

Posted Date:-2021-02-20 07:18:33


Question:
Which of the following statements are correct about JIT?

JIT compiler compiles instructions into machine code at run time.
The code compiler by the JIT compiler runs under CLR.
The instructions compiled by JIT compilers are written in native code.
The instructions compiled by JIT compilers are written in Intermediate Language (IL) code.
The method is JIT compiled even if it is not called

1.1, 2, 3

2. 2, 4

3.3, 4, 5

4. 1, 2

Posted Date:-2021-02-20 07:18:33


Question:
Which of the following statements correctly define .NET Framework?

1.It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services.

2.It is an environment for developing, building, deploying and executing only Web Applications.

3.It is an environment for developing, building, deploying and executing Distributed Applications.

4. It is an environment for developing, building, deploying and executing Web Services.

Posted Date:-2021-02-20 07:18:33


Question:
Which of the following statements is correct about Managed Code?

1.Managed code is the code that is compiled by the JIT compilers.

2.. Managed code is the code where resources are Garbage Collected.

3.Managed code is the code that runs on top of Windows.

4.Managed code is the code that is written to target the services of the CLR.

Posted Date:-2021-02-20 07:18:33


Question:
Which of the following statements is correct about the .NET Framework?

1.NET Framework uses DCOM for achieving language interoperability.

2.NET Framework is built on the DCOM technology.

3.NET Framework uses DCOM for making transition between managed and unmanaged code.

4..NET Framework uses DCOM for creating unmanaged applications.

Posted Date:-2021-02-20 07:18:33


Question:
Which of the following utilities can be used to compile managed assemblies into processor-specific native code?

1.gacutil

2.ngen

3.sn

4.dumpbin

Posted Date:-2021-02-20 07:18:33


More MCQS

  1. C# MCQS -Programming (.NET Framework)
  2. C# MCQS -Programming(Control Instructions)
  3. C# MCQS - Functions and Subroutines(.NET Framework)
  4. C# Programming-Constructors
  5. C# Programming- Arrays
  6. C# Programming -Structures
  7. C# Programming-Properties
  8. C# Programming -Exception Handling
  9. C# Programming -Interfaces
  10. C# Programming -Delegates
  11. C# Programming -Generics
  12. C# Programming - Datatypes
  13. C# Programming- Operators
  14. C# Programming -Classes and Objects
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!