How to code a trivia app? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 19

How to code a trivia app?

Do trivia apps follow a particular pattern?

30th Mar 2018, 3:53 PM
Rahul Maheshwari
3 Answers
+ 13
thanks but already developed apps such as hq trivia ,loco etc . how they sort the question to be asked from users?
30th Mar 2018, 4:45 PM
Rahul Maheshwari
+ 8
It depends on lots of factors, but following is what i will recommend: If you have an expertise with any web development language than i think you can check for the cross platform tools available around like phonegap , sencha etc. The positive about this is , with one platform you will be able to develop apps for both iOS and Android. The downside is apps made using phonegap or any other cross platform tool is slower and doesnt have great access to phone features but in your case this approach can still work. Android uses java for native application development , iOS uses objective-c or swift , if you use these that will be great but , learning curve will a lot. Also depends if this is a school/college project work or a actual idea which will go in production mode. I hope this will help you sortlist your technology stack.
30th Mar 2018, 6:25 PM
Baraa AB
Baraa AB - avatar
+ 6
Off the top of my head, I would say create a database that stores your questions/answers/the category. That database table is how we'll do everything, from sorting the questions into categories, too retrieving questions to ask, to checking if their answer is correct. You'll want another table that stores users and anything to do with them (stats, achievements, account, etc..). I'd make a third table for a leaderboard also, it'll use the stats from the user accounts to create a ranking system based on the users. Not sure if this is what you're looking for. If you need help with something more specific, let me know and I'll assist as possible. Good luck on your game, Rahul!
30th Mar 2018, 3:57 PM
Fata1 Err0r
Fata1 Err0r - avatar