.NET Questions

Q:

What is the DataContext class and how is it related to LINQ?

Answer

After you add a LINQ to SQL Classes item to a project and open the O/R Designer, the empty design surface represents an empty DataContext class ready to be configured. The DataContext class is a LINQ to SQL class that acts as a conduit between a SQL Server database and the LINQ to SQL entity classes mapped to that database. This class contains the connection string information and the methods for connecting to a database and manipulating the data in the database. It is configured with connection information provided by the first item that is dragged onto the design surface.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 3451
Q:

Describe how to step through code in .NET.

Answer

Steps to step through the code in .NET:



  1. Start the program in debug mode.

  2. When the first breakpoint is reached then step through can be done in one of the two ways:



  •  Press F10 to move to next line.

  •  Select debug menu and click on step over. This would step over the breakpoint to next level.


       3. Other options are: “Step Into” and “Step Out”.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

1 3446
Q:

What technologies are being used in AJAX?

Answer

AJAX uses four technologies, which are as follows:




       => JavaScript

       => XMLHttpRequest

       => Document Object Model (DOM)

       => Extensible HTML (XHTML) and Cascading Style Sheets (CSS)

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

1 3445
Q:

What is the purpose of reserved word using in C#?

Answer

A keyword that specifies that types in a particular nemespace can be referred to without requiring their full qualified type names. 'using' reserved word always come with namespaces. eg. using systems so because of this useful classes supplied by Microsoft which are contained by system namespace are availble for user.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 3392
Q:

List different ways of deployment that are supported by .NET Framework 4.0.

Answer

       => Windows Installer

       => ClickOnce

       => XCOPY

       => Copy Web Site

       => Publish Web Site tool

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 3385
Q:

Mention the two major categories that distinctly classify the variables of C# programs.

Answer

Variables that are defined in a C# program belong to two major categories: value type and reference type. The variables that are based on value type contain a value that is either allocated on a stack or allocated in-line in a structure. The variables that are based on reference types store the memory address of a variable, which in turn stores the value and are allocated on the heap. The variables that are based on value types have their own copy of data and therefore operations done on one variable do not affect other variables. The reference-type variables reflect the changes made in the referring variables.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 3355
Q:

What is Language Integrated Query (LINQ)?

Answer

LINQ is a programming model that is the composition of general-purpose standard query operators that allow you to work with data, regardless of the data source in any .NET based programming language. It is the name given to a set of technologies based on the integration of query capabilities into any .NET language.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 3116
Q:

What is the difference between int and int32 ?

Answer

There is no difference between int and int32. System. Int is an alias name for System.Int32 which is a .Net Class.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET
Job Role: Analyst , IT Trainer

1 3100