?
Solved

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

Posted on 2008-10-01
5
Medium Priority
?
415 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 672 total points
ID: 22613544
0
 
LVL 15

Assisted Solution

by:angus_young_acdc
angus_young_acdc earned 664 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 664 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

The greatest common divisor (gcd) of two positive integers is their largest common divisor. Let's consider two numbers 12 and 20. The divisors of 12 are 1, 2, 3, 4, 6, 12 The divisors of 20 are 1, 2, 4, 5, 10 20 The highest number among the c…
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…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

770 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