Travis6876874
Posts: 0
Joined: Sat May 17, 2014 1:27 am

Inputting questions/answers into database, not using boolean

You did all that for me? Your the greatest now;) oh my god, I cant believe you went through all that for me. Your so nice.

Travis6876874
Posts: 0
Joined: Sat May 17, 2014 1:27 am

Inputting questions/answers into database, not using boolean

This has helped me so much)

Travis6876874
Posts: 0
Joined: Sat May 17, 2014 1:27 am

Inputting questions/answers into database, not using boolean

[{"answer": "Answer one", "correct": true}, {"answer": "Answer two", "correct": false}, {"answer": "Answer Tree", "correct": false}]

So if my question is how many points is a three pointer in basketball worth.
first column, type string, How many points is a three point in basketball worth?
second column, type array. Would I do the following when the answer is 3?
[{"answer": "3", "correct": true}, {"answer": "2", "correct": false}, {"answer": "5", "correct": false}]

Travis6876874
Posts: 0
Joined: Sat May 17, 2014 1:27 am

Inputting questions/answers into database, not using boolean

And can i shuffle the answers later, or do I need to put the answers in a different order so the 1st one is not always correct? I know you mentioned shuffle! Does that refer to both the shuffle of questions, and answers corresponding to questions in my circumstance?

THANK YOU)

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Inputting questions/answers into database, not using boolean

Hi Travis.

precode

Would I do the following when the answer is 3?
[{"answer": "3", "correct": true}, {"answer": "2", "correct": false}, {"answer": "5", "correct": false}]

/code/pre

Yes it's correct. You can also have next array:
[{"answer": "2", "correct": false}, {"answer": "5", "correct": false}, {"answer": "3", "correct": true}]

It would be correct too.

What about shuffle - you can shuffle answers in REST service by using for this service some "proxy". In appery.io this proxy called "Security generic context".

Alena showed you in prev message how can you use it.

Be sure it is possible. So you can start to develop. And if you will have some problems we will help. Just certain question needed.

Regards.

Travis6876874
Posts: 0
Joined: Sat May 17, 2014 1:27 am

Inputting questions/answers into database, not using boolean

Thank you, I was wondering about that.

Return to “Issues”