Search Placementyogi.com
 

Advanced .NET Framework Objective Questions and Answers

1

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

A.

gacutil

B.

ngen

C.

sn

D.

ildasm

E.

dumpbin

See Answer & Explanation Lets Discuss
Correct answer is : B
Explanation

Ngen is a utility by Microsoft that is a native CLR compiler for .NET assemblies.

Typically, methods in managed executables are just-in-time (JIT) compiled.

The machine code generated by the JIT compiler is thrown away once the process running that executable exits; therefore the method must be recompiled when the application is run again. Moreover, the generated code is tied to the process that created it and cannot be shared between processes that are running the same application.

 
2

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

A.

Private Assemblies

B.

Friend Assemblies

C.

Shared Assemblies

D.

Public Assemblies

See Answer & Explanation Lets Discuss
Correct answer is : C
Explanation

GAC(global assembly cache) is an area of memory reserved to store the assemblies that are intended to be shared by .NET applications running on a computer.

Assemblies should be shared by installing them into the global assembly cache only when it is necessary. As a general guideline, keep assembly dependencies private, and locate assemblies in the application directory unless sharing an assembly is explicitly required. In addition, it is not necessary to install assemblies into the global assembly cache to make them accessible to COM interop or unmanaged code.

The .NET Framework provides two tools for working with the cache. One is a Windows shell extension that allows you to work with the cache using a Graphical User Interface (GUI). The other is a command line tool, called the Global Assembly Cache tool (Gacutil.exe), that is typically used in build and test scripts.

 
3

Which of the following security features can .NET framework provide?

A.

PIN Security

B.

Role Based Security

C.

Code Access Security

D.

Authentication Security

E.

Biorhythm Security

See Answer & Explanation Lets Discuss
Correct answer is : B,C
Explanation

.NET framework provides two types of security:-

1. User security also known as role-based security

2. Code security also known as code access security

 
 

Banner to LogicGuns.com

Hide Page Information

.NET Framework Objective Questions and Answers

Here you can find .NET Framework interview questions with answers and explanation.

Why .NET Framework?

In this section you can learn and practice .NET Framework (Questions with Answers) to improve your skills in order to face the interview, competitive examination and various entrance test (CAT, GATE, GRE, MAT, Bank Exam, Railway Exam etc.) with full confidence.

Where can I get .NET Framework Questions and Answers with Explanation?

PlacementYogi provides you lots of fully solved .NET Framework questions and answers with explanation. Fully solved examples with detailed answer description, explanation are given and it would be easy to understand. All students, freshers can download .NET Framework quiz questions with answers as PDF files and eBooks.

Where can I get .NET Framework Interview Questions and Answers (objective type, multiple choice)?

Here you can find objective type .NET Framework questions and answers for interview and entrance examination. Multiple choice and true or false type questions are also provided.