Interview Questions Part 3 - Oracle , DotNet , SQL , C# , Javascript , UML , AJAX

 Interview Questions Part 3 - Oracle , DotNet , SQL , C# , Javascript , UML , AJAX

Question 1 :
What are parameter array ? How is parameter array declared ?

Answer 1 :
A parameter array allows variable number of arguments to be passed to a method. A parameter array is declared with the params modifier. Only the last parameter of a method can be a parameter array, and the type of a parameter array must be a single-dimensional array type.
Example :
public static void DisplayEmployeeDetails(string name, params object[] args) {...}
State different types of method parameters in C# ?Different type of method parameters in C# are :

  1. Value Parameter
  2. Reference Parameter
  3. Output Parameter
Question 2 :
State differences between BasicHttpBinding and WsHttpBinding ?

Answer 2 :
Criteria BasicHttpBinding WsHttpBinding
Security support This supports the old ASMX style, i.e. WS-BasicProfile 1.1. This exposes web services using WS-* specifications.
Compatibility This is aimed for clients who do not have .NET 3.0 installed and it supports wider ranges of clients. Many of the clients like Windows 2000 still do not run .NET 3.0. So older version of .NET can consume this service. As its built using WS-* specifications, it does not support wider ranges of client and it cannot be consumed by older .NET version less than 3 version.
Soap version SOAP 1.1SOAP 1.2 and WS-Addressing specification.
Reliable messaging Not supported. In other words, if a client fires two or three calls you really do not know if they will return back in the same order. Supported as it supports WS-* specifications.
Default security options By default, there is no security provided for messages when the client calls happen. In other words, data is sent as plain text. As WsHttBinding supports WS-*, it has WS-Security enabled by default. So the data is not sent in plain text.
Security options
  • None
  • Windows – default authentication
  • Basic
  • Certificate

  • None
  • Transport
  • Message
  • Transport with message credentials
Question 3 :
State few WebService attribute in XML Web Service ?

Answer 3 :
Various WebService attributes are :
  1. NameSpace : Specifies the namespace, which defaults to "http://tempuri.org",
  2. Description : Specifies description text for the XML Web service
Question 4 :
What are various webmethod attributes in Web Service ?

Answer 4 :
The WebMethod attribute in Web Service provides the following properties:

  1. BufferResponse
  2. CacheDuration
  3. Description
  4. EnableSession
  5. MessageName
  6. TransactionOption
Question 5 :
How to enable transaction in Web Service ?

Answer 5 :
Please follow below steps to enable transaction in Web Service :
1.Add a reference to System.EnterpriseServices.dll.
2.Add the System.EnterpriseServices namespace to the XML Web service
using System.EnterpriseServices;

3.Use the TransactionOption property of the WebMethod attribute, as shown below:
public class Service1 : System.Web.Services.WebService
{
[System.Web.Services.WebMethod(
TransactionOption=TransactionOption.RequiresNew)]
public string DoSomethingTransactional()
{
// The transaction was successful...
ContextUtil.SetComplete();
return ContextUtil.TransactionId.ToString();
}
}

Question 6 :
What are commonly used namespaces in .NET for XML ?

Answer 6 :
The commonly used namespaces in .NET for XML are :
  1. System.Xml
  2. System.Xml.Schema
  3. System.Xml.XPath
  4. System.Xml.Xsl
Question 7 :
What is well formed XML document ?

Answer 7 :
Well formed XML document follows below rules :
  1. Every start tag has end tag
  2. XML document has root element enclosing all other elements
  3. Opening and closing tag must match and must be written in same case
  4. Attribute values should be enclosed with double quotation marks.
  5. XML tags must be properly nested
Question 8 :
What are different implementations of LINQ ?

Answer 8 :
Different implementations of LINQ are :
  1. LINQ to SQL
  2. LINQ to DataSet
  3. LINQ to XML
  4. LINQ to Objects
Question 9 :
What are various message patterns in WCF ?

Answer 9 :
There are three message patterns :
  1. Request/Reply pattern : This is default message pattern. Every request from client has a reply from service
  2. One way pattern : client does not wait for reply from service for further processing.
  3. Duplex pattern : Service and client can send messages to each other simultaneously .
Question 10 :
How AJAX works ?

Answer 10 :








No comments:

Post a Comment

Labels

.NET Framework Interview Questions (7) .NET Interview Questions (10) .NET Remoting Interview Questions (1) ADO.NET and BLOB Error (1) ADO.NET Interview Questions (4) Agile Articles (9) AJAX Articles (5) AJAX Interview Questions (11) Algorithms (2) Analytics Articles (2) Analytics Interview Questions (3) Android FAQs - Part 1 (2) Articles (13) ASP.NET Articles (24) ASP.NET Error and Resolution (4) ASP.NET Interview Questions (23) ASP.NET Tutorial (8) AWS Interview Questions (16) Business Analyst Interview Questions (1) Cloud Computing Interview Questions (16) CSharp Articles (17) CSharp Interview Questions (32) CSharp Tutorial (17) Data Analysis (2) Data Structure (1) Design Pattern Articles (5) DevOps Tutorial (1) Digital Marketing Interview Questions (1) Download Templates (1) Error Resolution (6) Excel Articles (9) Excel Macros (1) Excel Tips and Tricks (10) HTML5 Interview Questions (3) HTML5 Tutorial (3) Interview Preparation (2) Interview Questions (24) Introduction to Business Analytics (10) Introduction to Python (7) Introduction to R Programming (23) JAVA Articles (6) Java Tutorial (5) LINQ Articles (4) LINQ Interview Questions (2) LINQ Tutorial (3) Microservices Interview Questions (1) MVCInterviewQuestions (2) OOPs Interview Questions (4) Oracle 9i Tutorial (14) Oracle Articles (2) Oracle Interview Questions (15) Outlook Error (1) PHP Interview Questions (3) PHP Tutorial (3) Product Management (12) Product Management Interview Questions (14) Product Owner Interview Questions (2) Program Management (5) Project Management (13) Project Management Articles (34) Project Management Interview Questions (25) Quiz (1) RallyDev Help (1) Scrum Master Interview Questions (11) Selenium Tutorial (1) Sharepoint Articles (1) SQL Interview Questions (23) SQL Server Articles (20) SSIS Interview Questions (6) SSRS Interview Questions (1) Technical Program Management (12) Technical Program Management - Interview Questions (24) TechnicalProgramManagement (5) Threading Interview Questions (2) Tutorial (8) UML Articles (3) UML Interview Questions (2) Unix (3) UNIX Tutorial (3) WCF Articles (20) WCF Interview Questions (9) WCF Quiz (2) WCF Tutorial (16) Web Service Articles (5) Web Service Interview Questions (3) Window Azure (1) XML Articles (6) XML Interview Questions (3) XML Tutorial (3)