Solved

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

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

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

Suggested Solutions

Title # Comments Views Activity
MYSQL responding very slow 3 50
Installing .NET 3.5 on Windows Server 2012 1 62
Selenium and Xpath 4 32
Adjust the codes 3 34
Article by: Nadia
Linear search (searching each index in an array one by one) works almost everywhere but it is not optimal in many cases. Let's assume, we have a book which has 42949672960 pages. We also have a table of contents. Now we want to read the content on p…
Iteration: Iteration is repetition of a process. A student who goes to school repeats the process of going to school everyday until graduation. We go to grocery store at least once or twice a month to buy products. We repeat this process every mont…
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…
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…

733 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