Solved

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

Posted on 2008-10-01
5
409 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 168 total points
ID: 22613544
0
 
LVL 15

Assisted Solution

by:angus_young_acdc
angus_young_acdc earned 166 total points
ID: 22613553
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
ID: 22613946
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

691 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