What are Scripting Objects?

What are Scripting Objects?Ans)Select from following answers: TextStream objectFileSystemObject objectDictionary objectAll of the Above All the above mentioned objects are said to be scripting obje [...]

How do we check Array out of range error in C#

How do we check Array out of range error in C#Ans)In C# we have IndexOutOfRange exception which is used to check the index out of range exception.Example:try{------}catch(IndexOutOfRangeException ex){ Console.WriteLine("An index was out of range!");}catch(Exception ex){ Console.WriteLine("Error occured: " + ex.Message [...]

In what Software Paradigm, "Test Driven Development (TDD)" fall ?

In what Software Paradigm, "Test Driven Development (TDD)" fall ?Ans)Select from following answers: Agile MethodologyExtreme ProgrammingPrototype Ans is Extreme ProgrammingTDD is one of the basic requirement of Extreme Programming.Extreme Programming is based on Agile Software Development in which software quality and responsiveness is maintained to changing customer requirements. Extreme Programming enhances software development projects in 5 key ways:Communication, simplicity, feedback, respect, and coura [...]

How do we read XML Schema and Data into a Dataset ?

How do we read XML Schema and Data into a Dataset ?Ans)We can read the XML Schema and data into Dataset using --Dataset.ReadXml command.example Follows : DataSet DemoDataSet = new DataSet();DataTable DemoDataTable = new DataTable("Table Name");DemoDataTable .Columns.Add("Column Name", typeof(string));DemoDataSet .Tables.Add(DemoDataTable);string strXMLData = "Add an xml data"System.IO.StringReader xmlSR = new System.IO.StringReader(strXMLData);DemoDataSet .ReadXml(xmlSR, XmlReadMode.IgnoreSchem [...]

What is the use of Assembly Manifest ?

What is the use of Assembly Manifest ?Ans)Generally assembly contains a collection of data where it describes the relation between different elements in the assembly which relate to each other. This assembly manifest contains the assembly metadata. Assembly manifest can be stored in either executable file like an .exe file or .dll file with MSIL. Assembly Manifest has below mentioned information: Assembly Name Culture Type Reference Information Information on referenced Assemblies Version Culture List of all the files in the Assem [...]

What is the need for Hash Table and Serialization in .Net ?

What is the need for Hash Table and Serialization in .Net ?Ans)The Hashtable object contains items in key/value pairs. The keys are used as indexes. We can search value by using their corresponding key. In .NET, the class that implements a hash table is the Hashtable class. By using Add Method we can add elements to the Hashtable as shown below: ----------private Hashtable table = new Hashtable(); public void AddEntry(BookEntry entry){ table.Add( entry.GetPerson(), entry );}-----------Once the Hashtable gets populated,you can search and retrieve [...]

WCF Interview Questions Part_2

Previous Questions                                                                                 Next [...]

WCF Interview Questions Part_1

Next Questions1)What is WCF? First let us give a short answer to this: - “WCF (Indigo was the code name for WCF) is a unification of .NET framework communication technologies “.WCF is a unification technology, which unites the following technologies:- • NET remoting • MSMQ • Web services • COM+. Below [...]

Dot Net Interview Questions

What is .NET 3.0 ? What are the main components of WCF? Can you explain how End points, Contract, Address and Bindings are done in WCF? What is a service class? What is a service contract, operation contract and Data Contract? What are the various ways of hosting a WCF service? What are the major differences between services and Web services? What is the difference WCF and Web services? What are different bindings supported by WCF? Which are the various programming approaches for WCF? What is one way operation? Can you explain duplex contracts [...]

SQL Server Interview Questions

1) What is the difference between CAST and CONVERT in SQL?Ans)You can use either CAST or CONVERT. Because CAST and CONVERT provide similar functionality.The difference is CASE is more ANSI standard and use this only if you are writing a program which you will need to use in many database platforms. Where CONVERT is Microsoft specific and more powerful.---------------------------------------------------------------------------------2) Which of the following are the limitations of VIEWS?Ans)Select from following answers:Views cannot be relied on [...]

Interview Questions on Asp.net,C#.net & Sql Server

Interview Questions on Asp.net,C#.net & Sql Server Part -IInterview Questions on Asp.net,C#.net & Sql Server Part -IIInterview Questions on Asp.net,C#.net & Sql Server Part -IIILatest Interview Questions1) How can you assign page specific attributes in an ASP.NET application?Ans)Select from following answers:@Page"scrip" attribute%page%The @Page directive is responsible for this.---------------------------------------------------------------------- [...]

Dot Net Interview questions for 3+ years of experience - Part-2

Previous questions Next Questions1)In MVC Framework, who decides what to render in the VIEW ?Ans)Select from following answers:ModelControllerViewController decides what to render in the VIEW.Only job of the VIEW in MVC is " how to render".-------------------------------------------------------2)Whats is the difference between API and WebServices?Ans)A)Web [...]

ASP.Net Interview questions part_2

1)In MVC Framework, who decides what to render in the VIEW ?Ans)Select from following answers:ModelControllerViewController decides what to render in the VIEW.Only job of the VIEW in MVC is " how to render".------------------------------------------------------------------2)Whats is the difference between API and WebServices?Ans) A)Web Services gives the output in the form of XML or JSON.Where as API return the output in the form of void,scalar or generic type B)We need to add web references for web-services and add references for [...]

In MVC Framework, who decides what to render in the VIEW ?

In MVC Framework, who decides what to render in the VIEW ?Ans)Select from following answers:ModelControllerViewController decides what to render in the VIEW.Only job of the VIEW in MVC is " how to rende [...]

how to caputure user control button click event in aspx page

Answer: in ascx page -------------------------------------------------------  ascx page start -----------------using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class WebUserControl : System.Web.UI.UserControl { public event EventHandler obj; public string st { get { return this.TextBox1.Text; } } protected [...]

What is LINQ?

Full form of LINQ is, LINQ - Language-Integrated Query which is available with .net version 3.5 and greater Tags :linq,.net [...]

What is difference between "String" and "string" ?

Answer: "string" is an alias for System.String . So technically, there is no difference between them. It's like int vs. System.Int32   Very Simple string is a type in c# while String is a type in .Net CLR. Ultimately c# type is converted into .net type. Tags : .net clr,difference between string & String in. [...]

What is the basic difference between "var" keyword in Javascript and C# ?

Answer: In C#, we have "dynamic" keyword. This dynamic keyword is somewhat similar to javascript's "var" . Here, both create a variable whose type will not be known until runtime, and whose misuse will not be discovered until runtime. C#'s var creates a variable whose type is known at compile time. For example:- dynamic dt= new DateTime(); dt.bar(); //compiles fine but gives an error at runtime Tags : var keyword in c#,Jqu [...]

Static members are 'eagerly initialized' ?

Select from following answers:  a.   True   b.  False   c.  No Idea Ans) True. Static members are 'eagerly initialized' because it is initialized immediately when a class is loaded for the first time. Example :- static int NumberOfTyres = 20; The above static variable will be initialized as soon as the class is load [...]

Is it good to load jquery from CDN(Content delivery network)

Answer: Yes, it is always good to load your jquery from content delivery network. It provides some benefits like :-  (1) Caching - It means that if any previously visited site by user is using jQuery from Google CDN then the cached version will be used. It will not be downloaded again.  (2) Reduces load - It reduces the load on your web server as it downloads from Google server's.  Example :- <script  type="text/javascript"     src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"> [...]

What is DataGrid in SilverLight?

DataGrid DataGrid control is one of the most important control in Silverlight to develop Line-of-Business (As per Wiki - Line of business (LOB) is a general term which often refers to a set of one or more highly related products which service a particular customer transaction or business need.) applications [...]