Hi Kinyua
The short answer is ... yes.
As a proper answer, this is a bit of a general question, so I guess you are looking for pointers to get started. Here are my thoughts from first glance:
- You want teachers to be able to add the questions and students to log in, so the easiest way would be to use a database (probably MySQL) to store login details, the input questions and answers and the student's scores. If you cannot install/access a database at your school, you could do something with text or xml files, but this makes things a little trickier. I'll assume the database route.
- You will need a table to store the login details, so their name, password, if they are a pupil or a teacher, and possibly which class they are in.
- You would have a table with the main quiz details, so things like name, which teacher, maybe say which class can access it
- Next up is a table to store the questions, which is really just the text, its questin number and what quiz it is in.
- You need a table to store the options for each question,which is the text of the answer and if it is correct. You could store the correct answer with the question but this way allows you to have more than one correct answer.
- Finally, you would want a table to store the scores, which is just the students name, which quiz they took and their score.
- For the site, you just need a few pages for logging in, creating questions and the actual quiz page. These can be simple pages with forms and bit of session stuff to store who is logged in.
Of course you can expand this or try a completely different way, but I hope this has given you some ideas.
Phil
|