Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
1.00/5 (6 votes)
See more:
Dear Friends,

I am having interview on tomorrow afternoon for that i have to perform the task below in .net, sql server,

Quiz Module:

Admin has database of Questions
User- sees randomly 10 questions with timer
Answer in choice of A, B, C, D
After attending questions – result with %
Work on DB structure & relationship

Please guide in to achieve the stated task within this short period of time.

Thanks in advance.
Posted

We do not do your homework: it is set for a reason. And this is homework - it is intended to find out how you think, what you know and how well you can do a simple task under very, very minor time pressure. It is you that is applying for the job: If I send you my solution and they ask you questions on it, then you will automatically fail the interview because you may not understand the solution "you" wrote and submitted. It will be obvious you cheated, and I for one would not continue the interview with you.

Do you really think it is a good idea to get a job on the basis of code you haven't even tried to do? What would you do if you got the job? Get me to do your projects for you as well?

Try it yourself, you may find it is not as difficult as you think!
 
Share this answer
 
Well as OriginalGriff told above, you have to find out your way of coding that or else they are going to know that its not your work.

A simple guide on how you might be able to achieve it could be
1. store the questions in the database with serial numbers of 1-20 or something
2. use the Randomize() class( do a google on this) to generate random numbers and pull out the questions with these numbers in the serial number.
3. put a if..else to check that the same numbers do not repeat.
4. store these questions in a datatable or into strings and change the text of the Label control to display the question
5. find a way as to what the answers would be (would be a Yes/No) or else, pull the appropriate answers linked to each question from another database table.
6. display these answers along with their questions on the page with the answers probably being radiobuttons.
7. put a code to arrange the answers into A,B,C & D. so that you would know which is the right answer and the wrong one.
8. at the end of the session calculate the total %.

Again, the above is just a possible way to do some part of it and is only meant to give you some thing to start with. It wont be as hard as you think it is. Give it a shot and best of luck for the interview.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900