Solved

Puzzels , Question and Problems in C#, 5-10 line program in C# and .net

Posted on 2008-10-01
5
392 Views
Last Modified: 2008-11-07
Hi Friends,


I need C# Programming Puzzles, Questions and Problems that are typically asked in Written test of software companies. Specially 5-10 line code problem asked in test or interview.


Thanks and Regards,
-Palhade
0
Comment
Question by:palhade
5 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 168 total points
Comment Utility
0
 
LVL 15

Assisted Solution

by:angus_young_acdc
angus_young_acdc earned 166 total points
Comment Utility
It would be rather impossible to give you specific coding problems, companies look for different things, and in my experience it is normally more than 5-10 lines.  Your best bet is to check out these questions/answers and see if you can programmatically come up with answers:
http://www.techinterviews.com/?p=157
http://www.coolinterview.com/type.asp?iType=170
http://blogs.crsw.com/mark/articles/252.aspx
http://www.dotnetuncle.com/Design-Patterns/dot-net-design-pattern-interview-questions.aspx
http://www.eggheadcafe.com/tutorials/aspnet/4ec5abf1-5956-4ffa-8fff-33ea933f5bf7/net-design-pattern-inter.aspx
http://aliraza.wordpress.com/2008/06/30/design-patterns-interview-questions/
0
 
LVL 7

Assisted Solution

by:joesthebighmoe
joesthebighmoe earned 166 total points
Comment Utility
I think it is completely brilliant to ask candidate developers to write a 5 to 10 line program. Well, of course we do this at our small business, so clearly it is brilliant.
People lie on there resumes...or at least exaggerate plenty.

Technical questions are good to point, but they can be misleading and only gauge what someone knows superficially or have been working on lately.

As an interviewer I am more interested in the developer's best practices (testing, code reviews, error handling, etc), , favorite kind of work (refactoring, UI, database, etc), latest projects (good/bad why), pros and cons of tools, etc. I always ask about the last couple of technical books they read.

Since C# is an object-oriented language I expect them to be able to talk-OO, not necessarily in perfect terms, but I expect them to understand and apply OO concepts. If they want to write database babysitting applications with grid views they should stick with VB6 jobs.

Finally we ask them to write a small app in any language they specified. In C# it is often as simple as asking them to create a User class with two attributes: Name and Password. Then create a form with a button and a text box. When the user enters a value and clicks on the button it should use the User Class to determine access. Display whether access is granted or not.

This takes them about 13 lines of code. We let them know we are not looking for professional grade error handling, etc.  Just proof of C# knowledge.





0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Using Simpleject with Class Library 11 25
How do I get the id from URL? 19 47
XML to SQL Table using c# 5 44
VB.NET HttpWebRequest 12 30
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now