Sponsored Ad

Wednesday, June 1, 2011

Can we have Non Abstract Method in Abstract Class in C#

Yes, you can have non abstract methods in abstract class. Along with non abstract methods you can also have abstract methods in abstract class.

You can not directly use non abstract methods of abstract class, for the same you have to derive a class from abstract class and give new implementation of non abstract method in derived class.

In below example there is abstract class abstract_class_example which is having the non abstract method non_abstract_method_example.

 

using System;

namespace MyApp
{
    public class abstract_examples
    {
        public static void Main(string[] args)
        {
            Console.ReadLine();
        }

        //abstract class with non abstract methods
        public abstract class abstract_class_example
        {
            public void non_abstract_method_example()
            {
                Console.WriteLine("Non Abstract Method Example.");
            }
        }     
    }
}

Can a Class can be Derived from Abstract Class in C#

Yes, you can derive a class from abstract class the code is given below. write a abstract class with abstract function and drive a class from this abstract class and override the abstract method in derive class and give implementation. while calling this method you need to create instance of derive class only because parent class don't have any implementation.

Program Output

Code to derive a class from abstract class:

using System;

namespace MyApp
{
    public class abstract_derived_class
    {
        public static void Main(string[] args)
        {
            derived_class obj = new derived_class();
            obj.my_method();

            Console.ReadLine();
        }

        public abstract class abstract_class
        {
            public abstract void my_method();          
        }

        public class derived_class : abstract_class
        {
            public override void my_method()
            {
                Console.WriteLine("Derived Class Method.");
            }
        }
    }
}

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

4 people Cross the Bridge with a Flash Light - Technical Interview Puzzle

 

Puzzle description: There is 4 people and they have to cross a bridge. Person 1 takes 1 min to cross the bridge, Person 2 takes 2 min, Person 3 takes 5 min and person 4 takes 10 min to cross the bridge. They have 1 flashlight and need to cross a bridge in the minimum amount of time. at a time max two persons can move on the bridge?

4 people Cross the Bridge with a Flash Light - Technical Interview Puzzle

Puzzle Solution:

Person 1 + Person 2 cross the bridge = 2 min

Person 1 returns = 1 min

person 3 + person 4 cross the bridge = 10 min

person 2 returns =  2 min

person 1 + person 2 cross the bridge  = 2 min

Total Time taken = 2 + 1 + 10 + 2 + 2  = 17 min

Picture Source: goo.gl/WHApi

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

Monday, May 23, 2011

Rsystems Technical Interview Process

 

Rsystem Technical Interview Process

Interview Technology: C#, ASP.NET, SQL
Interview for Position: SSE/Tech Lead
Years of Experience: 5+ years

One of my colleague gone through the interview process of Rsystems. He is having 5 years of experience. There was three rounds of interview.

1. First Technical Round:
This was basic technical round and for checking the basic .net knowledge of candidate. They asked questions from every area of .net like
ASP.NET working process
Events and Delegates in C#
Generics in C#
SQL procedures and functions

2. Second round of technical interview:
This was advance technical round and interviewer were checking the hands on knowledge. like
write a code for delegates
how to implement multicast delegates
benefits of generics
how WCF works

3. Final HR Round:
This was a final HR round and HR person asked questions like
why you are looking for change
salary negation etc.

If you have basic knowledge you can clear the Rsystems interview. All the best.

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

What is Difference Between Layer Architecture and Tier Architecture?

 

Tier is physical separation of tiers. it basically specify different projects of .dll or .exe.

Layers are logical separation and divide the project logically. There is only one project and have logical division of files or folders.

Application Layer : basically soft
Application Tier : basically hard

Layer:
1)presentation layer
2)business layer
3)data access layer

Tiers:
1)Presentation tier (web server)
2)Application tier (application server)
3)data server tier (database server)

Thursday, January 13, 2011

Rat and Poison Bottle Interview Puzzle

Rat and poison bottle puzzle:

Rat and Poison Bottle Interview Puzzle

Puzzle: There 8 bottles and one of them have poison. How may minimum rats you want to find out in which bottol have poison. Condition is that you need to feed all rats at same time and only once?

Answer: You need to mix the bottles in different combinations and then find out on the basis of which rat is dead.

(2) power 3 = 8 so you need minimum 3 rats to find the poisonous bottle.

lets have 3 rats A, B , C and you have to mix 8 bottles in such way that you get unique mixture.

we have bottles b1, b2, b3, b4, b5, b6, b7, b8

lets mix and make 3 mixtures:

lets represent every bottle in binary:
b1: 001
b2: 010
b3: 011
b4: 100
b5: 101
b6: 110
b7: 111
b8: leave it.

mix 1: which contains 1 at right most - b1,b3, b5, b7
mix 2: middle onc - b2, b3, b6, b7
mix 3: leftmost one: b4, b5, b6, b7

now give mix 1 to rat A
mix 2 to rat B
and mix 3 to rat C

if all three rats die it means b7 is common in all three mixture so b7 have poison
if non will die it means b8 have poison
if rat A only die it means b1 have poison
if rat A, B die it means b3 have poison etc

Sponsored Ad

Followers

Follow Us