如何在进行独立考试的应用程序中查看数据 [英] How to review data in an standalone exam conducting application

查看:80
本文介绍了如何在进行独立考试的应用程序中查看数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

程序员,
我正在使用C#语言在Microsoft Visual Studio 2008中做一个项目.
我正在制作一个独立的应用程序,可用于进行客观类型考试.
.我面临的问题如下.
我有一个包含
的表格 1.具有多行属性的文本框,用于显示数据库中的问题.
2.组框中的4个单选按钮,用于向用户显示选择.
3.名为上一个的按钮和名为下一个的按钮.

现在,假设用户尝试提问.
1.因此,在哪里以及如何保存正确答案,以便用户查看问题并尝试在表格上回答.

2.用户可能有可能首先选择一个答案,然后再转到下一个,然后再次希望更改前一个答案,然后如何实现.

请帮我...
谢谢.

Hi programmers,
I am doing a project in Microsoft visual studio 2008 using C# language.
I am making a standalone application which can be used to conduct objective type exams
. I am facing a problem which is as follow.
I have a form containing
1. textbox with multiline property used to display question from the database.
2. 4 radiobutton in a groupbox used to display choices to user.
3. A button named previous and a button named next.

Now suppose a user attempts the questions.
1. So WHERE and HOW i should save the correct answers so that if user want to review the questions and answer he attempted on a form.

2. It may be possible that user first select a answer and go to next then again he want to change the answer of the previous one then how this can be achieved.

Please help me ...
Thank you.

推荐答案

我建​​议您使用这两种类型
I suggest you have these two types
class Question
{
    ...
}

class Answer
{
    public Question Question {get;}
    ...
}



然后,您应该将所有答案存储在列表中,然后可以轻松检索用户希望查看的答案.用户对提供的所有答案满意后,可以将其存储在数据库中.您可能要添加的一个附加功能是自动保存功能,该功能可在发生崩溃时将答案保存到硬盘驱动器,然后在应用程序重新启动时恢复这些答案.



Then you should store all the answers in a list, and then you can easily retrieve an answer the user wishes to review. Once the user is happy with the all the provided answers you can store them in a database. An extra feature you might want to add is an auto save which saves the answer to the hard drive in-case of a crash and then restores these answers when the application restarts.


您将其称为基于多项选择问卷的考试考试"?比我不称它为教育".

严重的是,这是一个巨大的问题.经过这种教育"而上班的人们没有任何价值.他们几乎无能为力,但是如果没有这种教育",那些人可能可以做到.我们需要真正的基础教育,但不要那么大,而是要正确.我可以看到工程领域的大量教育欺诈行为.受过教育和有能力的人的确存在,很棒的人,但是他们与弱者"的斗争越来越浪费他们的宝贵时间,他们弱者"尽最大努力保护自己的工作,进行垃圾清理工作.这些选择题问卷考试"在所有这场灾难中占有很大的份额.我们无处可去-快速.

—SA
You call this test based on multiple-choice questionnaire an "exam"? Than I don''t call it "education".

Seriously, this is a huge problem. People coming to work after such "education" gets no value from it. They hardly can do anything, but those who can probably could do it without such "education". We need really fundamental education, let it be not so big but true. I can see massive educational fraud in engineering fields. Educated and capable people do exist, wonderful people, but their valuable time is more and more consumed by the struggle with the "weak-minded" who do the best to protect their jobs of doing their garbage-in, garbage-out. Those multiple-choice questionnaire "exams" takes a great share in all this disaster. We''re going nowhere — fast.

—SA


这篇关于如何在进行独立考试的应用程序中查看数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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