.NET Framework Interview Questions and Answers (547) - Page 26

What do we mean by NuGet in Dot Net?

Following points demonstrates about NuGet?
-> NuGet is a free and open source package manager for the .NET Framework.It was formerly known as NuPack.
-> NuGet is the package manager for the Microsoft development platform including .NET. The NuGet client tools provide the ability to produce and consume packages.
-> The NuGet Gallery is the central package repository used by all package authors and consumers.
-> NuGet is a Visual Studio extension that makes NuGet easy to install,uninstall and update libraries and tools in Visual Studio projects that use the .NET Framework.
-> When we add a library or tool, NuGet copies files to your solution and automatically makes whatever changes are needed in your project, such as adding and changing your app.config or

web.config file.
-> NuGet runs in Visual Studio 2010 or Visual Web Developer 2010.
What do we mean by Enum keyword?

The Enum keyword is used to declare an enumeration, a distinct type that consists of a set of named constants called the enumerator list.
Usually it is best to define an Enum directly within a namespace so that all classes in the namespace can access it with equal convenience. However, an Enum can also be nested within a class or struct.
What is Enum first enumerator value?

NOTE: This is objective type question, Please click question title for correct answer.
Which property affects how the .net framework handles dates,currencies,sorting and formatting issues?

NOTE: This is objective type question, Please click question title for correct answer.
Which of the following tool is used to manage the GAC?

NOTE: This is objective type question, Please click question title for correct answer.
Which of the following tool is used to install Windows Service?

NOTE: This is objective type question, Please click question title for correct answer.
What attribute will you use to hide a public .Net class from COM?

NOTE: This is objective type question, Please click question title for correct answer.
What do we mean by "Run To Cursor" option in Visual Studio?

Run to cursor is a great and an hidden features of Visual Studio. This can really boost up your productivity of work while debugging any application in Visual Studio. You can really avoid the step by step debugging and directly stop the debugger where you are targeting it to stop."Run to Cursor" is just like another breakpoint,but in this case you don’t need to start the Visual Studio debugger manually and the break points clears when it’s hit.When you select the run to cursor option,visual studio starts the debugger automatically and execution stopped to the selected line.
What is the process for having "Run To Cursor" option?

Right click on the line on the Code where we wanted to stop the debugger,we will get the "Run to Cursor" option from the context menu. Here,we will find,the Visual Studio start the execution of your application and it will stop on the line we had selected.
What is a shortcut key for Run to Cursor option?

We can launch Run to Cursor option by using "CTRL + F10" shortcut key in Visual Studio IDE.
What do we mean by "Output Window" in Visual Studio?

The Visual Studio IDE Output Window displays status messages for various features with in IDE include build errors,compilation error,Project configuration information, that occur when a project is compiled.
This window is very much important to see what your application doing during build.Now,this windows is by default turn off.So when ever you want to see the output window during build time,you have to go to
"View - > Output" or using shortcut key off "Ctrl + W,O".
What is the execution entry point in C# console application?

The Main method is the execution entry point of C# console application.

For Example:-
Public static void main(string[] args)

{
}

Can multiple Catch Blocks be executed in .NET applications?

It's not possible to execute multiple catch blocks in .NET.If once specific catch block executed then it will go directly to the finally block.

For Example:-
public static void main(String[] args)

{
int[] input = {2};
String str = "Dot net funda dot com";

try
{
int val1 = 5/args.length;
input[10] = 12;
int val2 = Integer.parseInt(str);
}
catch(ArithmeticException ae)
{
Console.WriteLine("Arithmetic Exception");
}
catch(ArrayIndexOutOfBoundsException abe)
{
Console.WriteLine("ArrayIndex Out Of Bounds Exception");
}
catch(NumberFormatException nfe)
{
Console.WriteLine("Number Format Exception");
}
}

What is #Region Block in Dot Net?

#Region Block lets us specify a block of code that we can expand or collapse when using the outlining feature of the Visual Studio Code Editor.

If the code is longer or bigger,then it is convenient to be able to collapse or hide one or more regions so that you can focus on the part of the file that you are currently working on.
In other words,we can say that The #Region directive partitions your code.With #region,we can organize code into blocks that can be expanded or collapsed visually.
We must indicate the start of the region and the end of the region.
Give some Examples of Region Blocks?

A #Region Blocks may be created for classes,variables, properties, methods or functions etc..

Below are the some examples:-
#region Global Variables

int _Val1;
int _Val2;
#endregion

#region Class definition
public class Employee_Master
{
static void Main()
{
}
}
#endregion

Which point is true regarding #REGION block?

NOTE: This is objective type question, Please click question title for correct answer.
Contents of an Assembly file can be investigated using?

NOTE: This is objective type question, Please click question title for correct answer.
Can infinite loop be achieved using While loop?

Yes,infinite loop is possible using While loop.When we write while(1 == 1) ,then control never stops means 1==1 will always be true.
Which statement is FALSE about Static(Shared in VB.Net) classes?

NOTE: This is objective type question, Please click question title for correct answer.
Which statement is TRUE about Constructors?

NOTE: This is objective type question, Please click question title for correct answer.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories