随机试卷生成 [英] Random Question paper Generation

查看:167
本文介绍了随机试卷生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

我明天下午在接受采访,因为我必须在.net,sql server和
中执行以下任务
测验模块:

管理员拥有问题数据库
用户-使用计时器随机看到10个问题
选择A,B,C,D的答案
参加问题后–使用%
得出结果 研究数据库结构和关系

请引导以在短时间内完成所述任务.

在此先感谢您.

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.

推荐答案

我们不做您的作业:它的设置是有原因的.这是家庭作业-它旨在找出您的想法,所知道的知识以及在非常非常小的时间压力下完成一项简单任务的能力.正是您正在申请这份工作:如果我将解决方案发送给您,并且他们向您提出问题,那么您将自动通过面试,因为您可能不理解您"编写和提交的解决方案.很明显,你被骗了,我一个人不会继续和你面试.

您是否真的认为以您从未尝试做过的代码为基础找工作是个好主意?如果得到这份工作,你会怎么做?让我也为您做您的项目吗?

自己尝试一下,您可能会发现它并不像您想的那样困难!
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!


就像上面的OriginalGriff所说的那样,您必须找出编码方式,否则他们将要知道那不是你的工作.

关于如何实现目标的简单指南可能是
1.将问题以1-20的序列号存储在数据库中
2.使用Randomize()类(在Google上进行搜索)生成随机数,并使用序列号中的数字提取问题.
3.放入if..else以确保相同的数字不会重复.
4.将这些问题存储在数据表或字符串中,并更改Label控件的文本以显示问题
5.找到答案的答案(是/否),否则,从另一个数据库表中拉出与每个问题相关的适当答案.
6.在页面上显示这些答案及其问题,答案可能是radiobuttons.
7.输入代码以将答案排列到A,B,C和D.这样您就会知道哪个是正确的答案,哪个是错误的答案.
8.在会话结束时,计算总百分比.

同样,以上只是完成其中一部分的一种可能方法,仅是为了给您一些开始.它不会像您认为的那么难.试一试,祝你好运.
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.


这篇关于随机试卷生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆