Question-and-answer programs involving questions with a well defined correct answer, especially those that track the player's score.

learn more… | top users | synonyms

5
votes
1answer
69 views

Program that teaches kids Chinese characters

I wrote code that chooses a random set of Chinese characters, asks the user what the characters are, and if they meet a certain criteria they level up (ex. get more than 50% correct). I want to know ...
4
votes
3answers
377 views

Simple Q&A game

I just wanted to get some criticism on my programming to make me better. I made a game in Unity, just a simple question and answer game. Demo ...
1
vote
1answer
25 views

Is this a good way to create a Javascript object? [closed]

I'm building a simple quiz app and wanted to make it more scalable by putting my code into an object. The parameters list looks a bit messy to me. Is this a normal way to use an object or is there a ...
-1
votes
2answers
70 views

Maths quiz with difficulty levels and a score database

How can I make the saving to the dictionaries more efficient as well as making my overall code more efficient? ...
3
votes
1answer
143 views

Arithmetic quiz with class database and score analysis

I have done this quiz project and I have tried as hard as I could when I was writing to make it user friendly to read. Could you help me on improving and making it more user friendly please. ...
5
votes
1answer
83 views

Script to pick random answers for a vocabulary quiz

I am making a small script, which, when run in the console on Vocabulary.com, picks one answer (the third or fourth) and clicks. Then the code checks if the answer was wrong or right and goes to the ...
3
votes
1answer
149 views

Python computing quiz

The following code is a computing quiz: ...
1
vote
2answers
222 views

Maths quiz that read/writes CSV files [closed]

Could this code possibly be shortened, or even better be rewritten in the fewest lines of code possible? ...
1
vote
1answer
194 views

Random maths quiz with sorting

...
3
votes
3answers
95 views

Simple multiplication quiz

I am learning Python, and would like to learn how to make this code simpler and easier to read. Things I am hoping to learn: What variables might be appropriate? How can I make it simpler? Is there ...
0
votes
1answer
77 views

Program for helping people practice their maths [closed]

Please mention anything that could help me. ...
4
votes
2answers
116 views

JavaScript/jQuery math game

I wrote this entire program earlier today, and would like to get it reviewed. It is an arcade style math game, where you are presented with two expressions on the left and right side. You will ...
5
votes
1answer
359 views

Model classes for a quiz app in Django

I am creating simple quiz app in Django. It works, but I think that way I've done it is not the best. I have Exam detail view, which display questions related to that exam and answers for these ...
-1
votes
2answers
88 views

Ten questions maths game

Like my previous question about my Mental Maths game , I have written a script for a ten questions Maths game and again it seems like there is a more simple method, can anyone take me out of the dark ...
4
votes
2answers
310 views

Mental Maths game

I have made a mental Maths game but it seems quite long, is there anyway in which I can simplify it? And can you also help me with my other Maths game, Ten quick questions ? ...
5
votes
1answer
119 views

Transform Python math game to OOP

Background: I'm trying to learn basic OOP with Python. I have this program I wrote to help my son practice math problems. It does addition, subtraction, multiplication, and division. He can choose ...
2
votes
2answers
66 views

Flashcard memory training

I have written a simple flashcard program that runs in the terminal: It loads the cards from an ordinary .txt file. It provides a way to add flashcard from within ...
3
votes
1answer
71 views

MVC flash card application

I am trying to learn how to build a very basic MVC structure before jumping on rails and other frameworks. I am working from a .txt file, and I organized a project into four parts: a model, a view, a ...
5
votes
1answer
53 views

Ranked beginner quiz program

I have been trying to learn JavaScript for the past few days and decided it was time to put what I had learnt into practice. Here is the program I created. It's a five-question quiz which counts the ...
-4
votes
1answer
204 views
3
votes
2answers
141 views

Java Console Quiz

I started learning Java 2 weeks ago, so I don't know that much. I recently made a working console quiz and I'm wondering if there is a simpler way to do it. ...
3
votes
2answers
127 views

Asking a user for the capital city of Peru, South America

Can this Python code be written in a more Pythonic way? ...
1
vote
2answers
149 views

Multiple choice game

This is a multiple choice game. It has a web page where you enter a question, which can have multiple answers along with multiple options. Can anyone recommend any improvements for my code? ...
1
vote
4answers
731 views

Generating arithmetic quiz questions

I have created a quiz in Python that will generate a series of 10 questions to test the basic arithmetic skills of primary school children. To do this, I have used a while loop and random functions to ...
1
vote
1answer
183 views

Simple JavaScript quiz

I'm learning JavaScript and have tried making a simple quiz from scratch. JS Bin ...
1
vote
0answers
202 views

Game server in Java querying MongoDB for JSON

I was hoping someone would have a look at how I retrieve the questions from the db, parse the JSON and process the results - possibly advise how I could improve efficiency by streamlining my code. I ...
4
votes
1answer
572 views

Basic JavaScript quiz app

I struggled my way through the first quiz and here are the results. Since I have some experience in jQuery I really wanted to use only vanilla JavaScript. I know the code is pretty choppy and there ...
1
vote
1answer
175 views

Math quiz for teachers & students - follow-up

I have been programming a maths quiz that can be used for teachers an I have have been trying to make the code as short as possible so it is easier to understand. If you have seen my previous post you ...
5
votes
2answers
421 views

Math quiz for teachers & students

I have been programming a maths quiz that can be used for teachers and I have have been trying to make the code as short as possible so it is easier to understand. If there is any way I could make it ...
6
votes
1answer
474 views

Multiple Choice Guessing Game

I've built an app for members of an organization I'm in--the app shows the picture of a member with four multiple choice buttons, and the user then tries to guess the member's name. Pretty simple, ...
8
votes
4answers
2k views

Math quiz in PHP

I coded a math quiz in PHP in which a user selects radio buttons as their answer choices. I retrieve the data of these ten radio buttons using $_POST[]; However, I ...
2
votes
1answer
191 views

True or false quiz logic

I am creating a true or false quiz game and when the user chooses an answer a tick or cross will appear on the screen telling the user whether they are right or wrong and then automatically bring the ...
6
votes
1answer
213 views

Quiz game logic

I spent a long time searching for ways to create a quiz app and to create a way to sort through non-random questions. The only way I was able to create was to use a series of 3 dictionaries that are ...
8
votes
3answers
127 views

Single Digit Math Quiz

I decided to write a very simple web-game: ...
10
votes
2answers
468 views

Classes for Questions and Answers

I made a simple Question "system": Answer Stores an answer (string) and a boolean value to check if the answer is correct or not. ...
6
votes
2answers
406 views

Math game with 'hard' and easy questions

In my competition, I was to create a game that asked at least 5 easy questions, and up to ten hard questions, summing fifteen questions. Please review my code, especially how I formatted it with the ...
1
vote
3answers
93 views

Formatting in webpage quiz

Particularly on the CSS page, in the #question_list id, you'll see I've put a transparent border. This is obviously pointless, but without that border, my footer ...
8
votes
3answers
3k views

Driver license program which grades an individual's responses

Are there any ways I can make my program more efficient? My program runs, but are there any things that are unneeded that I included? The local Driver's License Office has asked you to write a ...
5
votes
1answer
148 views

A Trivia game with SFML

So I've been making a trivia game with SFML and C++ for quite a while now for my school project and I would like to get some constructive criticism, anything helps from best practices to overall ...
6
votes
5answers
958 views

Simple technology quiz

This is my first program that uses more than just boring ol' if/else statements - I made a whole 246 line game that's still a ...
4
votes
4answers
216 views

Maths Q&A game in JavaScript

This used to be university work now I put it our here for review purposes. Could this be constructed better? Is there any easier path, performance-wise? Could this be optimised? Which features ...
3
votes
1answer
1k views

GUI flashcard program in Java

I'm new to Java and I've written a flashcard program in Java 8 that allows the user to create a collection of flashcards and then test themselves using those flashcards. Please provide any ...
2
votes
0answers
49 views

Correcting a quiz

I wrote this code that's supposed to correct quizzes on a webpage, but it feels bloated and I'm sure there's tons of ways to improve it. Any thoughts? ...
3
votes
1answer
78 views

correctGuess() and incorrectGuess() functions for a quiz

In my JavaScript quiz, I have two functions below which are not DRY. What i want to do is to cut it, so everything below var = text would be used only once not ...
5
votes
2answers
28k views

Algorithm maths quiz + write to a text file

Are there any ways I can clean this code up to make it more user-friendly? ...
8
votes
2answers
2k views

How much is 2 + 2?

I'm currently working on a kind of PHP Quiz about mathematical calculations. We show a mathematical equation, and user need to input his answer. Currently, this is what I have written: ...
6
votes
2answers
224 views

Saving preferences in localStorage

I am working on a small app to help my kids study their multiplication and addition. And I have various preferences I want to be persisted between visits. What do you think of the below to get the ...
3
votes
1answer
2k views

Simplistic flash card web-app

Feedback I would love to hear: Since this is really my first real JavaScript app, being that I can never find a project I want to actually work on, I want to know how I can improve my JS techniques. ...
4
votes
2answers
9k views

Math equation generator program

I am building this program in Python to generate 10 random arithmetic questions of either multiplication, addition or subtraction and then saves users scores to a .txt file. I just wanted some help ...
5
votes
1answer
507 views

AngularJS trivia game - separating controller from directive

I am creating a trivia game (purely for learning purposes) using AngularJS, NodeJS and MongoDB. My concern is related to the way I am organising the code in AngularJS. So far the game is functional, ...