Sponsored Ad
Showing posts with label Technical Interview. Show all posts
Showing posts with label Technical Interview. Show all posts

Saturday, May 12, 2012

Interview Questions: Implement Same Name Method of two Interfaces in a Class using C#

This is most famous question in OOPs programming. if you have two interfaces and driving a class and these two interfaces have the same name method then how will you implement those same name methods.

The below program is an example of the above problem.

Here we have two interfaces Sparrow and Parrot, both have same method to print the BirdType.

So to implement the BirdType method in class Bird, use the interface name along with interface method name. This will fully qualify the method name. Program will execute without any error.

The example of the program is given below.

Interview Questions: Implement Same Name Method of two Interfaces in a Class using C#

using System;

namespace CSharpInterview
{
    interface Sparrow
    {
        void BirdType();
    }

    interface Parrot
    {
        void BirdType();
    }

    class Bird : Parrot, Sparrow
    {
        void Parrot.BirdType()
        {
            Console.WriteLine("Bird is Parrot.");
        }

        void Sparrow.BirdType()
        {
            Console.WriteLine("Bird is Sparrow.");
        }
    }

    class Programs
    {       
        static void Main(string[] args)
            {

                Parrot ObjParrot = new Bird();
                ObjParrot.BirdType();

                Sparrow ObjSparrow = new Bird();
                ObjSparrow.BirdType();
                Console.ReadLine();
            }
    }   
}

Inheriting and Method using with Multiple Interfaces in C#

The multiple inheritance can be implemented in C# by using the interfaces only. You can inherit a class from multiple interfaces but can inherit a class with only one class.

The below program inherit a class from two interfaces Laptop and PersonalComputer. Both the interfaces have a print method. The main function create an object of each interface and call the corresponding method.

While if we create a object of drive class then the both methods are accessible.

Inheriting and Method using with Multiple Interfaces in C#

using System;

namespace CSharpInterview
{
    interface PersonalComputer
    {
        void PCPrint();
    }

    interface Laptop
    {
        void LaptopPrint();
    }

    class Computer : Laptop, PersonalComputer
    {
        public void PCPrint()
        {
            Console.WriteLine("PC Print Method.");
        }

        public void LaptopPrint()
        {
            Console.WriteLine("Laptop Print Method.");
        }
    }

    class Programs
    {       
        static void Main(string[] args)
            {

                Laptop ObjLaptop = new Computer();
                ObjLaptop.LaptopPrint();

                PersonalComputer ObjPersonalComputer = new Computer();
                ObjPersonalComputer.PCPrint();

                Console.WriteLine("Computer Class...");
                Computer ObjComputer = new Computer();
                ObjComputer.LaptopPrint();
                ObjComputer.PCPrint();

                Console.ReadLine();
            }
    }   
}

Interview Questions: Handle the Exception and Execute Sequential Statement after the Exception in C#

If you want to execute the sequential statement even if a exception occur, use try and catch block and handle the exception or even do not write anything in catch block, it will automatically execute the next statement.

The below sample program is example of executing the next statement after the exception.

Interview Questions: Handle the Exception and Execute Sequential Statement after the Exception in C#

using System;

namespace CSharpInterview
{
    class Programs
    {       
        static void Main(string[] args)
            {

                Console.WriteLine("Example to execute the code after exception");
                Console.WriteLine("");
            Console.WriteLine("Before Exception");
                try
                {                  
                    throw new NullReferenceException();
                }
                catch (Exception ex)
                {
                    Console.WriteLine("Exception Handled: {0}", ex.Message);
                }
                Console.WriteLine("After Exception");

                Console.ReadLine();
            }
    }   
}

Interview Questions: How to Print 1 to 20 Numbers without using any loop in C#

One popular question in interview is that how to print a sequence with out using any loop. The simplest way is use the recursion to print the sequence. The below program is an example of this question. Which is using the recursion function to call and print the series.

Interview Questions: How to Print 1 to 20 Numbers without using any loop in C#

using System;

namespace ConsoleInterview
{
    class Programs
    {       
        static void Main(string[] args)
            {

                Console.WriteLine("Printing 1 to 20...");
                string strOutPut = "";
                PrintSequence(1, ref strOutPut);
                Console.WriteLine(strOutPut.Trim().TrimStart(','));               

                Console.ReadLine();
            }

        private static void PrintSequence(int Sequence, ref string FinalString)
        {
            if (Sequence <= 20)
            {
                FinalString += " ," + Sequence;
                Sequence += 1;              

                PrintSequence(Sequence, ref FinalString);
            }
        }
    }   
}

Friday, May 27, 2011

Bechtel India Interview Questions and Interview Process for .NET

Required Position: SSEBechtel India

Required Technology: .NET, SQL, Windows Forms, OOPS

 

Bechtel is one of the top construction company and also located in gurgaon. One of my friend gone through the interview process of Bechtel India. He has gone through the following rounds of Bechtel.

1. Telephonic Discussion: The first round was telephonic discussion. The interviewer was matching the requirement with the candidate knowledge and experience.  The interviewer asked basic .NET questions, which includes questions from .NET architecture, web services, OOPS and SQL.

Sample Questions: Can we have two static constructor in a  class, Write a query to find duplicate records in a table. etc.

2. Personal Technical Discussion: This round held in Bechtel India office and they took 1.5 hours of interview. The interview was pure technical round and they asked questions from .NET, ASP.NET, C#, SQL, Web Services etc.

Example: How to call user control page event from parent page and vice versa.

3. Managerial Round: This was pure managerial round. The manager was trying to understand your understanding about company rolls and responsibilities. Then told about company , work process, growth plans etc.

4. Technology Head Round: This round was with the Bechtel technology head of gurgaon office and he asked few question like why you looking for change , what is your expectation etc.

 

Bechtel is construction company, they have internal websites and software products to help their construction business.  Company maintain ethical relationship and provide a good growth path. Bechtel have 8.5 hours of working and if you work any extra hours, will get paid.

Tuesday, May 24, 2011

Samsung India Technical Interview Procedure

Samsung India Technical Interview Procedure

 

Samsung Requirement: 3+ years
Position: Sr. Software Engineer/Project Lead
Location: Noida
Technology:  ASP.net, SQL Server, Web Services

One of my friend gone through the Samsung Noida Interview process. This requirement was for .NET technology and for their internal web application development. Samsung have their online application team which provide enhancement and new development. Samsung have good infrastructure in noida office and provide flat 25% discount on Samsung product to their employees. Also Samsung offers sort term visits to Korea and other countries. My friend gone through the following rounds.

1. One to One Technical Interview:
This was the pure technical round and held in Samsung noida office. They asked about web services, C#, OOPS concepts, design patterns, ASP.NET functioning.

There was some design problems also like design a system where every country database is present separate country also there is different websites for different countries. you have to design a system which can communicate to each other and use the data. Also how will you manage session in this distributed environment.

2. HR Round:
The HR person will tell you the requirement an offered position, job responsibilities etc. Salary negotiation will come in to picture.

As per my understanding Samsung is good pay master, so you can give a try.

My Experience with RMSI Noida Technical Interview Process

My Experience with RMSI Noida Technical Interview Process

RMSI Requirement: 4-6 years
Position: Sr. Software Engineer
Location: Noida
Technology:  ASP.net,WPF,WCF professionals

I have gone through the RMSI interview process for .NET requirement. This requirement was for SSE and for Noida location. I have gone through the 3 rounds of interview and it was good experience.

1. Telephonic Technical Discussion:
This was first round and done on phone. basically they asked about my qualification work experience and then for a brief technical discussion. The technical discussion involve regarding design patterns, WCF and web services.

2. Face 2 Face .Net Technical Round:
This round held in RMSI noida office and they asked questions regarding  WCF, XML, SOAP, Web Services etc. This round was totally based on C#, ASP.NET and had a long discussion on problem solving and design patterns. Clear you OOPS concepts for this round.

3. Managerial/HR Round:
This was managerial cum HR round. Project manager told me about requirement and position and work culture then we went for salary negation.

RMSI deals in geospatial and information technology, so if you like to work on satellite images, GIS etc, its good company for you.

 

Official Website: http://www.rmsi.com

Thursday, May 19, 2011

Clickable Technical Interview Questions

Clickable Technical Interview Questions

One of my colleague gone though the clickable interview process. He gone through two rounds of telephonic technical discussion. Clickable is PPC solution company and provide tools to easily manage PPC campaign.

Clickable First Round of Technical Discussion:

1. What is difference between finally and finalize?

2. What is garbage collector and how it works?

3. How to do in order traversal in binary tree. How to find a given cost while tree traversal , the cost will be measure on root to leaf node?

4. There is 100 coins in table you have 20 t and 80 heads. divide in two groups so that number of tells should be same?

Clickable Second Round of Technical Discussion:

1.What is architecture of you project?

2. What design patterns you used in you project tell me facade and singleton , factory use in your project  ?

3. You have a string you need to replace a given char 'a' with the h x occurrence. Write a logic. When you will use string builder what is difference?

for example for first ‘a’ replace with h

second a replace with hh

third a replace with hhh

4. You have an array find out the sequence to find the maximum running sum.

like -1,2,4,1,-3,2,-4,4 have 7 max sum for (2,4,1)

Ciena India .NET interview Questions

 

Ciena India .NET interview Questions

Here is few questions from Ciena India interview process for .NET requirement. This interview was conducted for 5+ years of requirement.

Telephonic Interview Questions:

  • Tell me something about you education background, work experience and technology used?
  • For what projects you used for wcf?
  • What features you used in 2.0?
  • What features you used in wcf?
  • What is your roles and responsibilities?
  • You do low level design or high level design, how to do low level design?
  • What is difference between product and project life cycle?
  • How many project you have done?
  • What is your responsibilities as a lead and what role you looking for?
  • Are you ready with some kind of support role?

Telephonic Technical Interview Questions:

This round was pure technical round and they asked questions like:

1. What is Web service? How to create it. What are the limitations of web services.

2. How to overload a web service method?

3. Can we have static and simple constructor in same class? Which one is first called?

Face 2 Face Technical Interview Questions:

1. What are advantages of string over string builder?

2. Why we use finalize and dispose?

3. What if we make a same interface as idisposable and use dispose method?

4. how string builder work internally?

5. How many Types of lock in threading?

6. What are mutex objects ?

7. What are multicast delegates?

8. What is difference between value type and ref type

Ciena India Technical Interview Process

 

One of my friend gone through the interview process of Ciena India located in Gurgaon. Ciena works in telecom and cable networks and have development team of approximate 500 employees in India. Apart from compensation they provide cab facility. Ciena office is good and basically have in-house projects.

my friend was having 5 years of experience in .NET. He has gone through the following rounds:

1. Telephonic Discussion: The first round was telephonic discussion and they asked basic .net questions with deep knowledge. like oops concept with static modifier.

2. Face to Face Technical Round: It was at Ciena office and one technical panel took the interview. The technical panel was having 2 members. They asked about remoting, web services, oops concepts, memory management etc.

3. Managerial Round: This round was conducted by project manager and asked some project based questions and oops concepts.

4. HR Round: This was just a formality and salary negation done in this round.

Prepare well with basics and you will clear the interview. All the best.

Saturday, March 12, 2011

Kaplan Technical Interview Questions - ASP.NET – C#

 

I have gone through the first round of telephonic interview of Kaplan, Delhi. Here is few questions asked during interview.

Kaplan Technical Interview Questions - ASP.NET – C#

Technology: .NET

Experience: 5+ years

Location: Delhi

Ques: What is difference between http module and http handler?

Ques: how url rewriting works ?

Ques: what is difference between asp.net 2003, 2005, 2008 and 2010 ?

Ques: diff between sql server 2000 and 2005 ?

Ques: abstract classes and interface ?

Ques: why cant we drive a class from interface ?

Ques: Session types ?

Ques: What is view state ?

Ques: What is form based authentication?

Ques: What is passport authentication and how it works?

Ques: What is cookie less session?

Ques: why we use cursor?

Headstrong Interview Process for Freshers

 

One of my friend appeared in Headstrong interview for fresher's.

Headstrong Interview Process for Freshers

Round 1: Written test

This round have written test and if you clear this round only then can appear in next round of interview. This round include 50% c questions and 50% non technical questions like quantities and  reasoning.

Round 2: One to One Technical Round 

This round have face to face technical round and can ask subject like C, C++, java and data structures, OS etc.

Round 3: HR Interview:

you will be asked HR round of questions in this round . Once you clear this round will be awarded with a offer.

HCL Technologies Selection Process - Campus Placement - Fresher's

 

HCL Selection Process - Campus Placement

One of my friend gone through the selection process of HCL technologies in campus placement. It is very easy break interview during campus placement.

This is normal process followed by hcl tech:

Round 1: Written objective test

The written test consists of 60 questions which are divided into 4 sections .The total duration of the test is 90 minutes. There is negative marking .

include some c questions, oops concepts, OS, data structures, networking, computer organization etc.

Round 2: Technical face to face round:

This is pure technical round and they are going to ask most of the basic c questions or java questions.

Round 3: Technical Round (optional):

After round 2 you can again face another round of technical interview if required .

Round 4: HR Round:

This Round have basic HR questions and you will be offered a offer letter if successful.

Pitney Bowes (MapInfo) interview process, Noida

 

One of my friend gone through the interview process and here is experience of his interview process.

Post: SSE

Technology: .NET

Experience: 5+ years

Location: Noida

Round 1 – Pure Technical – Tuff Round:

This is the toughest round and you will get lot of basic questions with different angles and includes inheritance, delegates, ref, out parameters sql , oops concepts.

example: what is difference between ref obj and obj passing in function.

Round 2 – Technical Round

This is also pure technical round and you will get lot of technical questions from your area.

Example: write a program to merge and sort two arrays.

Round 3: HR Interview

This involve basic hr questions and salary negotiation.

example: why you want to leave current company?

Global Logic interview process - Experience

 

One of my friend gone through the interview process of global logic in noida. Here is summary of interview held in global logic.

Global logic is good company to work for and provide number of facilities along with flexible timing. Once you complete your work can go home without any problem.

Quality of work is very good, basically global logic work for product companies.

The below rounds are for 5+ years experience and can vary as per experience.

Round 1: Basic technical interview:

This is first round of technical interview and they will check you basic technical knowledge in different Areas.

for example : what is normalization?

Round 2: Advance Technical round:

This is somewhat tuff round and they will ask somewhat uncommon questions.

for example : what is friend assembly?

Round 3: Managerial Round:

This round can contain pure HR questions or pure technical questions or mix of both, so be ready for this round.

example : what is result of string str = “my name” + null;

Round 4: Director Round:

This round is there to give you a brief about your roles and responsibilities and project details.

After this there can be a normal client interview and then you will get a offer.

Friday, February 25, 2011

Interview Questions: Convert a String into Integer Without Using any Inbuilt Function in C#?

Some ask me in a interview and i searched on number of forums and at last i get to a conclusion that the best way is to use boxing. The sample and running C# code is given below.

 

using System;

namespace MyApp
{
    class my_class
    {
        static void Main(string[] args)
        {
            string strNumber = "1350";
            int intNumber = 0;
            try
            {
                foreach (char str in strNumber)
                {
                    intNumber += (int)str * 10;
                }            
                Console.WriteLine("Converted Number is: {0}", strNumber);
            }
            catch (Exception ex)
            {
                Console.WriteLine("Unable to Convert string to Number");
            }
            Console.ReadLine();
        }
    }
}

Saturday, January 29, 2011

Nagarro interview questions .net - C# - Design problems

 

First Round:
You will get three design problem in this round and either you do first two problems or do do third problem.

Design Problem 1: FTP Client Design

You have to design a FTP client which have the following features:
1. User should be able to login into FTP Server using user name and password along with other details.
2. User should be able to download the files.
3. User should be able to upload the files.
4. User should be able to see default directory when open first time and also list all files for a directory.

Design this system in term of system architecture, Class diagrams and functionality.

Design Problem 2: Task Scheduler Design
You need to design a task schedule as like windows task scheduler, which have the following properties.
1. User should be able to schedule multiple task at same time.
2. User should be able to schedule task like: run task at 5.00 pm or run task at 5.00 pm with interval of 4 hours etc.
3. There should be proper error handling log mountainous in fail our of any task and should not effect the other task running.

Design this system in term of Class diagram, Database design and functionality.

Design Problem 3: Quality Test Engine
Design a internal quality test engine tool to manage internal testing process
1. You can create multiple processes, new process, update those process
2. There should be multiple level of users and should be able to manage different type of data.
3. Admin or super user should be able to assign the roles to each user group.
etc.....

.NET and Silverlight - Polaris Technical interview questions

 

Hi All,

One of my friend gone through two rounds of Polaris interview first round was simple objective test and 15 questions from C#, .NET and ASP.NET and 5 questions from SQL.

Second round was personal technical interview. Here is some questions:

Ques: What is Abstract Classes?
Ques:What is interfaces?
Ques:What is difference between abstract classes and interfaces?
Ques:Give an example where do you use interfaces and abstract classes?
Ques:What is Silverlight?
Ques:How will you define an object in silverlight?
Ques:What is ria services?
Ques:What is data contract?
Ques:What is WCF?
Ques:What is latest version of silverlight?
Ques:What is left outer join?
Ques:Write a query to return non intersect area from two tables ?

Saturday, January 22, 2011

3000 Bananas, One Camel of Capacity 1000 Bananas Puzzle

 

There is a camel which can carry max 1000 bananas at a time and eat 1 banana for every one kilometer. There 1000 km desert and you need to move this 3000 bananas across the desert. How many maximum bananas you can transfer the other end of desert.

3000 Bananas, One Camel of Capacity 1000 Bananas Puzzle

if you think in strait way the max bananas will be 0.

but there is a solution:

lets talk about every km. you would like to transfer 1000 bananas 1 km. Now camel will take 1000 bananas and come back and again take 1000 bananas and come back and take 1000 bananas again. so there is total five trips to transfer 3000 banana 1 km. for this transfer camel will eat 5 bananas.

camel will take 5 trips until there is 2000 bananas so lets find out how main km camel will move until 2000 bananas left.

1000/5 =200 km

now for 2000 bananas camel will make 3 trips, so lets find out how many km camel will move until 1000 bananas left.

1000/3 = 333 km

so now there is only 1000 banana left and camel have moved to 200+333 = 533 km

left distance  = 1000-533 = 467 km

so at end left bananas  = 1000 - 467 = 533 bananas

there can be another solution when camel will not eat any banana while coming back and not carrying the bananas. in that can solution will be 833 bananas

Friday, January 21, 2011

25 Horses Puzzle to Find Top 3 Horses by Making the 5 Horses Group

 

you have 25 horses and 5 horse can race in a group. how many minimum races you have to do to find the top 3 horses in group.

ans:

step 1: divide 5 horses in 5 groups and race then (5 races).

Group A, Group B, Group C, Group D, Group E

step 2: take top from each race and race them ex. A1, B1, C1, D1, E1 (1 race)

step 3: Now suppose A1 top the race, so take second person from A's group and rest of person from step 2 ex. A2, B1, C1, D1, E1 (1 race ). Who ever will top the race will be top second

Step 4: Now Suppose B1 top the race,  so take second person from B's group and rest of person from step 3 ex. A2, B2, C1, D1, E1 (1 race ). Who ever will top the race will be top third

Congrats you got top 3 in just 5+1+1+1 = 8 races. 

Answer 2:

It can be more optimize and solution is 7 race.

After 6th race (step 2)

Discard the group C and D because we want only top 3.
Discard C2 onward (C2, C3 ..) because they will never come in top 3
Now Discard B3 onwards because B1 can be second and B2 can be third max.
So A1 is top 1
and you have qualified horses for second and third position is: A2, A3, B1, B2, C1
race then and find the top 2 and top 3.

Total races 5+1+1 = 7

Sponsored Ad

Followers

Follow Us