Hello!~
i'm currently doing a database about examination system.. i already have a database for login,registration, and questionaires.
my problem is on my question database.. i managed to connect the questions and choices in visual basic (or so i thought) questions are on multiple choices.. my question is : how can i put a value on the right answer. let's say, if the answer for a question is option 1 and the user chooses option two.. it should produce a "0" score.
Lacrecen
0
Newbie Poster
Recommended Answers
Jump to PostIn table create a field for right answar. After chooeing option it will compare with the right answar. And if return value =True then score=1 else 0.
Jump to PostEnsure that you have normalized your database fields and tables properly. You actually need (at least) two tables to store your multiple-choice questions: Questions and Answers. Questions will have the question number (primary key), title(optional), question text and the correct answer number(s). You could add other fields, but make sure …
All 5 Replies
Santanu.Das
125
Santanu Das
Nutster
58
Newbie Poster
Lacrecen
0
Newbie Poster
Nutster
58
Newbie Poster
Lacrecen
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.