Solved

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

Posted on 2008-10-01
5
399 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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 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