Question-and-answer programs involving questions with a well defined correct answer, especially those that track the player's score.
10
votes
3answers
1k views
Simple math quiz in C#
I am only a beginner when it comes to programming, but after reading tons of tutorials on and offline, I have been able to create this simple math quiz. It does work as intended, and I'm really just ...
3
votes
1answer
43 views
Pygame Flash Game
I managed to finish this game I am sure you have encountered before. If you run it there are instructions on what to do. Any code suggestions / improvements?
...
8
votes
3answers
995 views
Ask the user random questions from a multiple-choice test
I'm quite new to programming and was hoping you wouldn't mind taking a look at my code and giving some points as to how I could clean it up.
Assignment guidelines:
Create a program that reads ...
17
votes
6answers
1k views
Capitals and countries game
This is my simple game that gives you a country and has you enter the corresponding capital. What do you think? (Before running it you need to do score.txt.)
...
3
votes
2answers
39 views
Haskell Arithmetic Quiz
I'm currently learning Haskell, and as one of my first "proper" programs have created a mathematics quiz. It works like this:
A question is generated, with two numbers from 1 to 10 which need to be ...
0
votes
1answer
62 views
Displaying quiz questions in a web app
I built this web app to present a random group of questions for quizzes and tests. The page opens with random questions. Clicking anywhere shows (only) the spinner div. Clicking anywhere again brings ...
1
vote
2answers
81 views
Displaying random elements for a quiz app
I'm a teacher and I built a one-page web app to display random question sets for quizzes and tests. The script I wrote selects one question from a set (array) of questions.
The script works fine, ...
1
vote
1answer
49 views
One-page quiz web app for teachers
I'm an EFL teacher, and I built this web app to present a random group of questions for quizzes and tests. The page opens with random questions. Clicking anywhere brings up the spinner. Clicking ...
8
votes
1answer
112 views
Multiplication or addition of decimals or integers for prehighschool; non deterministic testing
I'm creating a simple android app for pre-highschool students which teaches the very basics of addition or multiplication of integers or decimals.
The part of the program in this question is aimed ...
3
votes
0answers
103 views
Sesame Street project
I started a tutorial online to get a little bit more knowledge about views. But after I did the basic I decided to finish the game.
The game is a little "I spy" game where the user tries to guess the ...
8
votes
2answers
661 views
Creating a questionnaire
Im making a Python program. It is basically a questionnaire and I was just wondering if there is a shorter way of doing this as at the moment I'm writing out all of the questions in separate functions....
2
votes
1answer
69 views
A quiz game that can save data and ask trivia questions
This game has a few basic functions:
ask users trivia questions
based on user input, add or substract points.
save game data when user inputs save.
allow old user to log in and play the same old ...
11
votes
1answer
914 views
Solving for Bananas
This code creates a problem for the user to solve (very simple problem) it will then check if the user has got it right and will say so.
...
5
votes
1answer
72 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
410 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
28 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
88 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
184 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.
...
6
votes
1answer
107 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
177 views
1
vote
2answers
280 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
207 views
3
votes
3answers
112 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
155 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
597 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
95 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
314 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
127 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
75 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
85 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
66 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
209 views
3
votes
2answers
182 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
143 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
180 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
874 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
232 views
Simple JavaScript quiz
I'm learning JavaScript and have tried making a simple quiz from scratch.
JS Bin
...
1
vote
0answers
234 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
833 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
180 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
453 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
650 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
324 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
232 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
133 views
10
votes
2answers
493 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
493 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
111 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 ...