Monday, April 18, 2011

Inverview at HCL

Technical Interview.

Q: What is difference between abstract factory and factory method.

Q: What is difference between static class and singleton.

Q: What is difference between abstract class and interface.
A: Difference between interface and interface

Q: Explain situation where will you use abstract class and where will you use interface.
A: Its totally up to requirements. If we have requirement where we just wants particular function to be implemented by other classes then we will place them in interface and in a situation where we have some function which we wants to be implemented by child classes as well as we wants to provide a common functionality to particular function which may/may not be overridden in child class then we will use abstract class.

Q: Is is possible to change access specifier of members of interface.

Q: What is practical use of Encapsulation in programming.

Q: Where is practical implementation of Observer design patterns in .NET framework.

Q: Where the .NET framework has implemented singleton design pattern in its classes.

Q: Provide example where you implemented singleton design pattens in your application.
A: I have personally used it in a class which i made to upload file using FTP to remote server in i have created a circular linked list in a singleton class and those classes which wants to send/ftp their files takes its object and add their file to that link list and don't wait for completion of FTP process. its up to my singleton class to do FTP.
so to maintain single linked list (but it can easily maintained by taking a static variable/object but i found singleton class more appropriate for it.

Q: Abstract factory implements factory method or factory methods implements abstract factory.
A: Factory Method implements Abstract Factory means every factory method separately becomes abstract factory.

Q: How will you use component build in vb6/c++ in .NET

Q: What is MVP.

Q: What is WCF.

Q: Write a code to create a WCF service.

Q: What is end points in WCF services.

Q: What is procedure to deploy WCF Service.

Q: How will you define end points in WCF services.

Q: How will you use WCF services in you application.

Q: What all attributes you will require to set for a function to expose it as a service method in WCF.
A: you will have to set attribute [OperationContract] on every method which you wants to expose as service contract method in WCF service.

Q: Provide difference between WCF and Web services.
A: Mainly-

Web Services

1.It Can be accessed only over HTTP
2.It works in stateless environment


WCF is flexible because its services can be hosted in different types of applications. The following lists several common scenarios for hosting WCF services:
Managed Windows Service

Q: What is SOAP.

Q: What is SOA.

Q: How will you create web service for SOA.

Q: Do web service expose contract.
A: Using WSDL web service exposes contract.

Q: What is WSDL.

Q: What is DISCO.

Q: How to generate WSDL of a web service.
A: using WSDL.EXE

Q: How will you generate DISCO of web service using command prompt.

Q: What is AJAX and how will you use it in your web page (write code).

Q: What all new features introduces in versions of SQL server:
SQL server 7 -> SQL Server 2000 -> SQL Server 2005 -> SQL Server 2008
A: SQL server 7 and Sql Server 2000:

SQL Server 2000 and SQL Server 2005:
1)In Sql server 2005 Enterprise Manager and Query analizer combined as a sqlserver Management Studio
2)CLR Integration Avaliable
3)XmL Integartion
4)SSIS ,SSRS,SSAS services Avliable
5)DatabaseMail Integration,Notifications Services Avilable
6)Mirroring Avliable

SQL Server 2005 and SQL Server 2008:
Transparent Data Encryption. The ability to encrypt an entire database.
Backup Encryption. Executed at backup time to prevent tampering.
External Key Management. Storing Keys separate from the data.
Auditing. Monitoring of data access.
Data Compression. Fact Table size reduction and improved performance.
Resource Governor. Restrict users or groups from consuming high levels or resources.
Hot Plug CPU. Add CPUs on the fly.
Performance Studio. Collection of performance monitoring tools.
Installation improvements. Disk images and service pack uninstall options.
Dynamic Development. New ADO and Visual Studio options as well as Dot Net 3.
Entity Data Services. Line Of Business (LOB) framework and Entity Query Language (eSQL)
LINQ. Development query language for access multiple types of data such as SQL and XML.
Data Synchronizing. Development of frequently disconnected applications.
Large UDT. No size restriction on UDT.
Dates and Times. New data types: Date, Time, Date Time Offset.
File Stream. New data type VarBinary(Max) FileStream for managing binary data.
Table Value Parameters. The ability to pass an entire table to a stored procedure.
Spatial Data. Data type for storing Latitude, Longitude, and GPS entries.
Full Text Search. Native Indexes, thesaurus as metadata, and backup ability.
SQL Server Integration Service. Improved multiprocessor support and faster lookups.
MERGE. TSQL command combining Insert, Update, and Delete.
SQL Server Analysis Server. Stack improvements, faster block computations.
SQL Server Reporting Server. Improved memory management and better rendering.
Microsoft Office 2007. Use OFFICE as an SSRS template. SSRS to WORD.
SQL 200 Support Ends. Mainstream Support for SQL 2000 is coming to an end.

Q: What is difference between Stored Procedure and Functions.

Q: How many type of functions available in sql server.

Q: Write queries how will you use all type of functions in sql server.

Q: Create a Non-Normalized table and then convert it to all normalization forms one by one.
A: Please do this by your self. you will find it very interesting.

Q: Write a code to load a XML file and retrieve its attribute's value using XPath.
A: Step 1. add System.XML namespace.
Step 2. load xml document.
Step 3. Use XPath to fatch relevant record.
like:- xdoc.selectsinglenode("//rootelementname/childelementname[@attributename ='']);

Q: What is difference between Delegates and Events.

Q: What is HLD and LLD.
A: High Level Design (HLD) is the overall system design - covering the system architecture and database design. It describes the relation between various modules and functions of the system. data flow, flow charts and data structures are covered under HLD.

Low Level Design (LLD) is like detailing the HLD. It defines the actual logic for each and every component of the system. Class diagrams with all the methods and relation between classes comes under LLD. Programs specs are covered under LLD.

Q: What is difference between association and aggregation.

Q: What is difference between aggregation and composition.

PM Round

Q: How will you distribute work in your team. what parameters you will take care while doing so.
A: Please don't accept from me to answer this question :). its totally up to u.

Q: What all things will you take care while interacting with client.

Q: If you are to make your team, work for late night then how will you make them ready.
A: Please don't accept from me to answer this question :)

Q: What is use of XML.
A: As xml is text based language so it becomes platform independent, which makes it best to be used in data transfer on web. it has functionality to define rules in DTD/XSD and we can easily apply and parse it against rules. Its easy to query using XPath. We can create business specific tags and also encrypt it.

Q: What all documentation are needed in CMM level 5 company.
A: will answer it after joining CMM 5 :)

Q: How will you design HLD and LLD.
A: wait for next 2 Weeks :)

Q: How many people were there in your team which you have handled.
A: Well its about u.

Compiled By Rajesh Rolen

Share This!


Anonymous said...

can u post ans too..

Anonymous said...

can u post ans too

Rajesh Rolen said...

Sure dear, will update it soon.

KR Kumawat said...

This very useful article/post!!

Powered By Blogger · Designed By Seo Blogger Templates