How to design the table from the answer to the question table.

Hi all

I am creating an application for student review online.

There are two types of questions, the only choice of response and multi choice answers.

My question is less than
create table question_master
(
exam_id number references exam_master(exam_id),
marks_of_each_question number,
type_of_question char(1),-- single choice answer/multiple choices answer
q1 varchar2(2000),
q2 varchar2(2000),
q3 varchar2(2000),
q4 varchar2(2000))
my table to answer (I'm not satisfied with who is below
create table answers_of_questions
(
answer_id number primary key,
question_ID number referenes question_master(question_id),
answer varchar2(4000) not null,
is_answer_correct char(1),--y/n,
student_selection char(1),--y/n   student select it or not
....
...
now, I'm perfectly how to create the RESPONSE table to contain the answers.
the only choice is good, but several checkboxes choices, what to do?
How to design the table from the answer?

do I have to create 2 tables to contain the answers?
Note: the QUESTIONS and ANSWERS, all will be entered by the teacher. students will make a choice and I will store this choice in another table
may be called STUDENT_SELECTED_ANSWERS or something like that.
If anyone has some reference to the script retail scheme review online, kindly share with me.

Kind regards.

Kind regards.

If you need to have answers in another table:

Student (student_id, name, etc...)
Review (exam_id, exam_name, etc...)
Question (question_id, exam_id, question_text)

Response (question_id, a_text, b_text, c_text, d_text, a, b, c, d).<-- one-to-one="" with="" question="" table,="" a-d="" flags="" used="" to="" indicate="">
OR
Response (question_id, answer_id, answer_text, OK)<-- many-to-one="" with="" question="" table,="" correct="" flag="" used="" to="" indicate="" correctness="" for="" this="" single="">

Student_Answer (student_id, question_id, a, b, c and d)
OR
Student_Answer (question_id, student_id, answer_id)<-- creation="" of="" a="" question_id+answer_id="" in="" this="" table="" implies="" the="" student="" checked/selected="" it="" as="" an="">

To what extent you want to standardize, it is up to you.

Tags: Database

Similar Questions

  • How to design the oscilloscope... need idea, advice and suggestions...

    Hello...

    Student MI... so I'm new to LabVIEW... so I use LabVIEW 8.6 and NEITHER cDAQ-9178 for the connection between the material... and my PC... now, I have final project... I have to design digital oscilloscope using labview, but I have several problem...

    1) How to design the scope of design

    (2) I have the simple design pattern to display the wave... but stil have some problem, this block diagram... how I want to develop the other party such basis of design time, control vertecal, cityscape control, capture the wave... and etc.., I was the previous oscilloscope in labview reserch and I desgin again by reffer the previous... but still no function...

    Hopefully, someone can help me... to give me an idea, opinion or suggestion for me to complete my project... fnl plz... now, I declare my design... and all I recommend and agree with the suggestion of someone... Thank you very much

    Hello

    That must be validated in the jury of LabVIEW so I'll move it for you. The jury of feedback is used specifically to provide feedback on the forums and their features.

    In order to receive the best support on the Forums of Discussion OR, please post your question publicly on the map that best matches the products you use. This allows your question be seen by members of the forum in the world, thus allowing users the most expertise in this field for you help. Additionally, once your issue is resolved, users of the forum with the same question in the future can benefit from your experience.

    To start a new thread on the Forums OR, go to the correct product management on forums.ni.com Board and click on the "New Message" button. You will be directed through a search to see possible solutions. If you don't find a solution, you can proceed to post your question on this Board.

    Kind regards
    Jordan
    The Forum Moderator OR

  • How to design the multi-onglet in rtf report in oracle apps r12

    Hello


    How to design the multi-onglet in rtf report in oracle apps r12

    a consultant who works on multiple projects in this report... . How to design rich text using the multi tab.


    Thank you

    Praveen,

    Already sent an invitation to chat. It's [email protected]

    Kind regards
    Vinod

  • How to design the user interface of Indesign plugin cs6?

    Design of UI to the custom help c ++ library (SDK) for pluging is a work very tedious .so when I search on the net I found that we can do to help Adobe Creative Suite Extension Builder but I don't know how to use it to develop the user interface for the plugin and how to enable the management of events in this UI. I read a lot of document about it on the net, but they have all created a lot of confusion in my mind if someone can help me to know the steps I have to follow to develop the plugin using the this or whatever technology (action script, JavaScript etc)

    If you want to develop using Creative Suite Extension builder Extensions so I think that this is not the right forum for you. Thanks for posting your specific queries on the below mentioned link hotel

    http://forums.Adobe.com/community/creativesuites/cs_sdk

    To give a brief of how to develop the interface using JS ScriptUI user allows you to develop your user interface, it's a quick and an OS-independent approach to the development of the user interface. The user interface created using JS comes next. You can see the following link for more help on ScriptUI

    http://www.kahrel.plus.com/InDesign/scriptui.html

    I did not much info about the development of the CS SDK, but I can point you to one direction more than the dev called hybrid plugins that the user interface is created in CS SDK and appropriate methods are exposed plugin C++ (improve the script object model) to be called by the code CS for too and for communication between these two modules of code.

    Hope these pointer help you get started.

    Thank you

    -Manan

  • Write an xml file - how to value the question

    I'm writing an XML as follows:
    <? XML version = "1.0" encoding = "utf-8"? >... < attribute tag = VR "00080008" = "CS" > ORIGINAL\PRIMARY\WHOLE BODY\EMISSION < / attribute > < tag attribute "00080012" VR = "DA" = > 20100302 < / attribute >...
    I have no problem affecting the Tag = "00080008" and VR = "CS". What makes me mad is how to define the string ORIGINAL\PRIMARY...

    What I get is:
    < attribute tag = VR "00080018" = "User Interface" / > with no inserted string. (Ignore the fact that the tags are different, will make any tag). I would like the string, then the closing < / attribute >. Mine closes immediately.
    The code is:
    Attrib element;
    ....
    attrib = doc.createElement ("Attribute");
    tmp = makeHex4(grpEl[0]) + makeHex4(grpEl[1]);
    attrib.setAttribute ("Tag", tmp);
    attrib.setAttribute ("RV", varType);
    attrib.setNodeValue (metaVal);
    instance.appendChild (attrib);

    I thought that the attrib.setNodeValue (metaVal) would do the trick, but it doesn't. I have also thought about using attrib.appendChild (metaVal), but that does not make sense since I should add a node, not a string.

    Since I was the example file, I know that we can somehow, but I don't know how to do it. I would appreciate a suggestion from someone who knows more about the topic I am doing.

    Thank you
    Ilan

    Monitor all that supports the dom will return with this, assuming metaVal is the content string (with the backslash escaped well, say, if applicable).

    attrib.appendChild(doc.createTextNode(metaVal));
    

    If she supports (at least partially) dom level 3, it probably supports this as well.

    attrib.setTextContent(metaVal);
    
  • How to find the question after hp support assistant opening when the icon indicates the red exclamation point?

    Hi guys,.

    A new pavilion g6 and sometimes get the red exclamation on the HP SA but when I open the screen of the wizard how to find the issue which marked the icon?

    The Assistant has just opened, and I see the screen normal but not extra "Pavilion" to tell me what needs attention?

    Is this normal?

    See you soon!

    Ian

    screenshot of open SA HP...

    Hello again, TheHandyCrowd, and ionamartin123.

    Made this suggestion solves your problems?  I was curious about the result.

    I hope that you are having a great day!

  • How to separate the question slides?

    I'm working on a tutorial. I wish it was questions all the tutorial to reinforce what is taught. The order would be kind of like 2 content slides, 2 question slides, 2 content slides, slides of question 2. Unfortunately, all the question slides get mix and cannot be separated even when I try to add two slides in question at the end, they automatically appear just after the first 2 question slides. How can I solve this problem?

    What version do you use? This has been the case in the very old versions, but for some time, you should be able to have the content of the slides between the question slides. Unless you don't talk about normal question slides but pre-test slides: who should be in the sequence at the beginning of the project.

  • How to design the more specific field?

    Hello.
    How to make more precise form-page fields? I want to make fields one under the other and check the distance between them.

    Hello

    As Dominique said, you are limited by the HTML (not Apex) but if you are really, really desperate you can use something like this:

    style = "width:200px; position:absolute;top:100px;left:200px;"
    

    Simply put in the fields of cells in HTML table attributes for the label and the element of every single item you want to place and enjoy your maintenance nightmare when they ask you to change the layout or add a new field to the middle...

    Luis

    Note: the editor of this forum don't like no = s no spaces around them, so please delete

  • How to remove the question from the community?

    For some reason, one of my previous questions has been published twice, I was wondering how I might be able to delete one of them?

    You can not remove them on your own. I will report to the second question and ask the hosts to remove.

  • How to design the user interface

    Hey forumers.

    IM new to BB development and I would like to make a main page in a header, content and footer. What controls are suitable for this?

    Thank you.

    Set aside a few hours and take a good read through the documentation for Creating of User Interfaces . There are some very good tips and stuff in there.

  • How to design the network monitoring in crio-9012



  • How to set the question Yes/No Yes by default

    I create an Apex application and I created a simple form on a table.

    One of the points I chose to be a Yes / No article, but I can't seem to default to Yes instead of no.

    I tried to go to the default value property and enter Yes, Y, y, 'Yes', 'Y', 'y' and a variety of other values, but nothing seems to the default value of the element to Yes.

    Someone knows how to do by default yes?

    Hello

    3bcddad4-db48-43C9-B953-c983b6cedec1 wrote:

    An update:

    For this particular point, the DefaultValue property is not applied everything.

    I tried to change to a textbox control and then have a value by default, but the item still not display by default.

    Delete this and create a new item and try to set the default on this point.

    Hope this helps you,

    Kind regards

    Jitendra

  • How to solve the "question"OS not found"?

    Trying to install SagMath on Windows 7, 64-bit v6.9; VMware Workstation 12

    It is a virtual machine, the format of the ova, based on CentOS. They encourage the use of VirtualBox. I prefer the workstation.

    Tried several times.

    For the first time, everything worked: started virtual machine and displays the interface of Sage. Failed to install VMware tools. So, deleted and reinstalled VM: VM starts and displays the following message:

    Start-up of net AMD xxxxxxxx

    CLIENT MAC ADDR: xx xx xx xx xx xx GUID: xxxxxxxxxxxxxxxx

    PXE - E53: no boot file received

    PXE - M0F: Exit Intel PXE ROM

    Operating system not found

    Tried different settings. Reinstalled VMware Workstation. No use.

    What should I do?

    Hello

    You can press [Ctrl + Alt + F1] to switch to the system console (terminal) wise, then use the root/wise to connect. Please see the Install VMware Tools section to complete installation of the VMware Tools.

    BTW, the Sage Office isn't a full version of gnome or KDE desktop, "Fit Guest" function does not work with the Sage Office even if VMware Tools has been installed.

    So for a better user experience, I suggest you use this unit of Sage in Server mode and access from a browser on your host or other virtual machines with popular office systems (such as Windows and Ubuntu). Please refer to SageAppliance - Wiki of the Sage

    Kind regards

    Shawn

  • GREP: How to escape the question mark?

    I need to deal with all points of question marks in my text in the world. Can you help me to recognize by GREP? Thank you!

    \?

  • How to put in place short, single-answer to a question?

    Hi, I need to create a quiz that gives unique fill-in answers.  example below:

    question: name a base three branches of Government.

    answer: Executive, legislative, judicial

    Help, please!  Thank you.

    PS / I saw this: http://forums.adobe.com/thread/782091?tstart=150 but this configuration will not register the unique answers (it would be possible to meet Executive 3 times and my LMS would record it as the collar).

    Hello

    Find you my blog was so late last night that I forgot to post the link here. But since you got my Twitter handle in the AskAdobeTeam (thanks RJ) you saw my tweet about it. Thanks for your comment on the blog, now busy drafting of article to explain used advanced actions. In order other users who do not find me still in Twitterverse, here is the link to the blog:

    Widgets and custom issues - part 2

    I explain the use of the TextArea widget to create short answer questions in which:

    • You can check the presence of one or more keywords in a setting AND & OR
    • You can assign partial scores, based on the presence of keywords in the short answer

    As a bonus, I added a fill-in-the-Blank question, by using the same widget and allowing a partial quote as well.

    Lilybiri

Maybe you are looking for

  • My Bank, First Direct, informs me that I'm unable to print my credit if I use Firefox as my browser due to a change in the Firefox software.

    I have recently changed my Firefox browser and can no longer print my online bank statements. I asked this with my Bank, First Direct, and I am informed that this is due to my using Firefox and a recent change in Firefox software. I use XP and have t

  • Qosmio X 70-number of HARD drive

    Hello Toshiba has a lot of X 70 different models in Europe. But what are the real differences of them in the space of HARD drive. All models are supported by 3 hard drives?SSD 256 GB + 2 slots HARD drive? Where are these 2 HARD drive locations? Thank

  • LabView is not USB device

    Hallo, I have LabView 8.5 installed and two LogicBoxes (NIMbox NDL8 and NAD4) via the USB port connected. By typing in the good NIMbox NDL8 USB ID in the All VISA everything worked well. Then I realized that this does not work for the other module, s

  • Don't panic Ripple

    I closed all open apps and my laptop stop... I went to homeoffice... I turned on my laptop... I continued to develop... .. and then: I tried the following: -Reinstall Ripple -Waving to uninstall and reinstall -Reinstall chrome -restart the laptop and

  • That is it for Disk2 of Jdeveloper 12.2.1?

    Hi experts,I installed Jdeveloper 12.2.1 and the disk2 is not requested. What is this for?Thank youJose.