N
N
natan_892018-08-06 02:12:20
SQLite
natan_89, 2018-08-06 02:12:20

How to create an SQlite database for a quiz?

Hi all.
The question is, you need to create a database in SQLite for a quiz.
There will be a question and 4 different answers.
How to implement it? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-08-06
@natan_89

The easiest option is to create a base with one table, which will have 7 columns:

  1. id- question number;
  2. text- question text;
  3. answer1- the text of the first answer;
  4. answer2- the text of the second answer;
  5. answer3- the text of the third answer;
  6. answer4- the text of the fourth answer;
  7. right_answer- the number of the correct answer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question