.NET Questions

Q:

What is the role of the JIT compiler in .NET Framework?

Answer

The JIT compiler is an important element of CLR, which loads MSIL on target machines for execution. The MSIL is stored in .NET assemblies after the developer has compiled the code written in any .NET-compliant programming language, such as Visual Basic and C#.

JIT compiler translates the MSIL code of an assembly and uses the CPU architecture of the target machine to execute a .NET application. It also stores the resulting native code so that it is accessible for subsequent calls. If a code executing on a target machine calls a non-native method, the JIT compiler converts the MSIL of that method into native code. JIT compiler also enforces type-safety in runtime environment of .NET Framework. It checks for the values that are passed to parameters of any method.

For example, the JIT compiler detects any event, if a user tries to assign a 32-bit value to a parameter that can only accept 8-bit value.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

8 14838
Q:

What is the need of Response.Output.Write() in Asp.net ?

Answer

Response.Write() and Response.Output.Write() both does the same work for printing output on the screen. But their is a small difference between them. As we can write formatted output using Response.Output.Write() but Response.Write() can't allows the formatted output.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET
Job Role: Analyst , IT Trainer

4 4329
Q:

Which class is used to indicate Black Navigation Bar ?

A) .navbar-inverse B) .navbar-black
C) .navbar-dark D) .navbar-default
 
Answer & Explanation Answer: A) .navbar-inverse

Explanation:

.navbar-inverse is used to display in black color.

Report Error

View Answer Report Error Discuss

Filed Under: .NET
Exam Prep: Bank Exams
Job Role: Analyst , IT Trainer

2 3712
Q:

Can any object be stored in a View state in .NET ?

Answer

View state is a repository in an ASP.NET page that can store values that need to be retained during postback.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET
Job Role: Analyst , IT Trainer , Project Manager

2 4400
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 2921
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 3018
Q:

What are the different implementations of LINQ?

Answer

The different implementations of LINQ are:


      =>  LINQ to SQL - Refers to a component of.NET Framework version 3.5 that    provides a run-time infrastructure to manage relational data as objects.

      =>   LINQ to DataSet - Refers to a component that makes it easier and faster to query over data cached in a DataSet object.

      =>   LINQ to XML - Provides an in-memory XML programming interface.

      =>  LINQ to Objects - Refers to the use of LINQ queries with any IEnumerable or IEnumerable(T) collection directly, without the use of an intermediate LINQ provider or API, such as LINQ to SQL or LINQ to XML.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

1 5237
Q:

Which namespaces in .NET are used for XML?

Answer

The System.xml.dll is the real physical file, which contains the XML implementation. Some of the other namespaces that allow .NET to use XML are as follows:


    


      =>  System.Xml

      =>  System.Xml.Schema

      =>  System.Xml.XPath

      => System.Xml.Xsl

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

1 2491