Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [quiz]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
41 views

Python CLI math game

I'm a self-taught programmer starting out with Python and my latest project is this game: It runs in the console, displays an equation, takes the user's answer, and increases your score if it's ...
user avatar
  • 23
3 votes
0 answers
80 views

Simple python quiz

I'm learning python and i'm trying to practice what I learned recently. I wanted to make a quiz game using pandas. What do you guys think? Is there anything I could do better? ...
user avatar
  • 31
4 votes
1 answer
76 views

This function creates dynamic multi-choice questions

I'm into Python from only about a month, coming from nothing. I didn't make any complex program yet, but I'm almost there, as one is almost ready to be used, like if I'd sit there for another hour or ...
user avatar
3 votes
1 answer
73 views

Quiz to help practice mental arithmetic

I made a tool that would help in practicing and increasing the speed of Mental Arithmetic, below is the code that I wrote in java. Please suggest if there are any improvements that I can make or any ...
user avatar
  • 31
2 votes
1 answer
35 views

Arithmetic quiz on the command line

I am writing a program that asks questions, takes the user's input, and responds according to whether the answer they gave is correct or not. I am looking to improve my code with respect to ...
user avatar
  • 21
6 votes
1 answer
2k views

U.S. State Capitals Quiz (Python)

I have a program that gives the player a random U.S. state, asks for its capital, and keeps score. This keeps going until the player decides to stop playing. At the end, it prints out both the amount ...
user avatar
  • 305
4 votes
1 answer
152 views

Python history quiz program

This program allows users to manage questions and quiz users from years of historical events. I'm looking for suggestions on how can I better organize my code, maybe apply OOP for functions and avoid ...
user avatar
4 votes
1 answer
993 views

I made a Java quiz program

I made a Java quiz program. The program will let you take the Java quiz and then display the quiz's result according to your score. ...
user avatar
2 votes
1 answer
459 views

Feedback on a Small Trivia Game in C#

I wanted to get some feedback concerning the program. It's console based and in C#. If I should try to add constraints like making sure only the 4 questions shown are able to be typed in and nothing ...
user avatar
4 votes
2 answers
1k views

Beginner Quiz game (True or False)

This time I made a quiz game, in which the player is asked questions and receives points for each question answered correctly. Some people told me I should learn about classes, so this is what I came ...
user avatar
  • 617
9 votes
2 answers
861 views

GUI for a quiz tool or game

I just started working on a little project to help me study for a course I'm taking. Is there anything I can do to improve code readability / bad practices? I had to remove most of the labels and ...
user avatar
0 votes
1 answer
3k views

simple python music quiz [closed]

I'm currently learning python and created a simple music quiz. the rules of the game are as follows: The user has two chances to guess the name of the song If the user guesses the answer correctly ...
user avatar
  • 85
1 vote
0 answers
285 views

Quiz with lifelines

The following code is of a quiz. Is there any way to generalize the code further? Example: If lifelines are used once, I've to a copy the code check the correct user each time. the same is for ...
user avatar
5 votes
1 answer
122 views

Bash script for speedreading training

I have coded a speedreading training bash script. My targed was to make some experience with bash in a funny way. It ...
user avatar
  • 497
1 vote
1 answer
234 views

Personal quiz with input validation

The object of the code is to prompt the user with a quiz and collect the g's, y's, 0's, and 1's and if there is more than one then the user passes (else, they fail). I am a beginner and would like to ...
user avatar
1 vote
1 answer
472 views

Browser quiz game

I have made a little game in JS. Are there any remarks? The game asks a question through the console and accepts the answer through prompt. If the answer is correct you'll get points. To stop the game ...
user avatar
  • 123
1 vote
1 answer
115 views

Multiple Choice Four-Function Math Game

I created a very simple multiple choice math practice game in C for a fun project. Essentially the user first enters how many questions they want, then they enter what operation (+, -, *, /) they want ...
user avatar
  • 23
7 votes
1 answer
161 views

Quiz game with timer

This is my first Go program. I would like to know what could be improved, what is done wrong, and anything else that I should know. The CSV contains 10 questions with the 10 answers separated by a ...
user avatar
2 votes
1 answer
312 views

2-team fraction quiz/test in Python 3 with Tkinter

I created a math quiz/game called "Factions". In the game, there are 2 teams. Red team and Blue team. They take turns answering questions relating to fractions. If they get it correct, they gain ...
user avatar
  • 315
8 votes
2 answers
390 views

Quiz for random boolean expressions

Inspired by the various quiz programs on this site, as well as Simon Tatham's puzzle collection, I thought I'd write a quiz that constructs its questions automatically and randomly. A typical session ...
user avatar
  • 20.9k
4 votes
1 answer
2k views

Quiz program that asks 10 questions, repeats incorrectly answered ones a second time, gives results at end

I'm currently attending ERAU (online), and in my Computing for Engineers class we are learning C#. An ongoing project throughout the class is to build a "quiz" program that asks 10 questions, in order,...
user avatar
  • 41
1 vote
1 answer
113 views

A quiz to practice some of the notion of the chapter four of app development with swift

I just want feedback about the code. Better implementation, more commentary etc. app Delegate.swift ...
user avatar
6 votes
2 answers
1k views

General Knowledge quiz

I have made a General Knowledge quiz in python as a project from my school ...
user avatar
  • 482
5 votes
2 answers
11k views

Quiz programme for GCSE

I made a quiz programme for my GCSE Computer Science NEA. I just want to make sure it is OK to submit. There are also 5 files: Usernames, Passwords, Song Names, Artist Names and High Scores. Any ...
user avatar
1 vote
1 answer
138 views

Timed arithmetic quiz

In this program you have to solve 20 exercises. The time you need will be measured. If you break a record, you'll get an entry in the highscore list. The program can be downloaded here. You can only ...
user avatar
  • 2,006
1 vote
2 answers
450 views

Mathematical quiz game

I have been studying C#, and I have made a simple math quiz program. Is my program reasonable or is there anything I need to improve? ...
user avatar
5 votes
1 answer
180 views

Arabic language lesson program

The program I have been working on has been developed almost exclusively as "train-of-thought" style code. Things happen linearly (for the most part) thru the code. The goal of the program is to house ...
user avatar
3 votes
0 answers
156 views

Console based Vocabulary Trainer Version 2

After a long break I took the suggestions from Console based Vocabulary Trainer and reworked the Trainer. It contains of the following parts Vocabulary.h/cpp: Save and read vocabulary from/to text ...
user avatar
  • 2,976
3 votes
2 answers
1k views

Simple arithmetic game in Python

Coming from a C/C++ background, this was my first python code I wrote to grasp a few basic concepts. The game involves giving random arithmetic operations to the users and scoring their responses. ...
user avatar
  • 137
7 votes
2 answers
4k views

Simple Math Quiz Game

I have been studying C# for 2 weeks already, I wrote a simple math game but not quite sure how bad it is. I'm just teaching myself to code through internet references. If you could review my work, I ...
user avatar
1 vote
1 answer
15k views

Python Multi Choice Quiz with a score to count

I am trying to make a multi choice quiz with a score to count. This is the first time I've used Python and I'm finding it difficult to make the code work properly. How can I make the code shorter and ...
user avatar
  • 11
1 vote
1 answer
57 views

Quiz for studying word stems

I'm wondering how I could condense the following (redundant on many levels) code: ...
user avatar
  • 197
1 vote
0 answers
87 views

Correct Callback for each item

I have added a correct question callback for different types of questions like: radio, checkbox and descriptive.. QuestionListActivity.class (it shows the list of questions to attempt) ...
user avatar
3 votes
0 answers
4k views

Python quiz game

I have the following program for a multiple choice quiz game. Before I get stuck in some habits, can anyone please review and propose suggestions for improvements? ...
user avatar
3 votes
4 answers
2k views

Math Quiz program - programming excercise number 5 chapter 6 from "Art and Science of Java"

I have written the following program: Math Quiz. It is a programming exercise number 5 chapter 6 from the book "Art and Science of Java". The program seems to be working. However, I would be ...
user avatar
8 votes
2 answers
1k views

Python vocabulary trainer for terminal

To train my Python skills I have made a vocabulary trainer which runs on a terminal: ...
user avatar
  • 3,758
7 votes
3 answers
331 views

Console based Vocabulary Trainer

This code was reworked and repostet in Console based Vocabulary Trainer Version 2 I wrote a console based Vocabulary Trainer to practice C++. Its possible to add and remove vocabulary and practice ...
user avatar
  • 2,976
3 votes
1 answer
83 views

StackExchange quiz

I've made a quiz where you get a random question, and you have to guess which StackExchange site it's from. ...
user avatar
  • 1,094
3 votes
2 answers
168 views

Rails controller for a vocabulary quiz

I'm new to refactoring and I have just refactored an old Rails project that had bloated controller methods. I spun off the bloated methods into its own separate controller following this logic, since ...
user avatar
  • 131
5 votes
2 answers
4k views

Simple math game in JavaScript

Created a simple math (addition/subtraction) game to practice my JavaScript. Any feedback on the JavaScript appreciated. Can play in: CodePen Instructions: A math equation will show up and simply ...
user avatar
  • 461
3 votes
1 answer
578 views

Foreign language vocabulary trainer

This program has the goal to teach the user words of another language. The user has to learn words of a current section and than they get tested. The program can be modified easy. The programmer just ...
user avatar
  • 2,006
1 vote
0 answers
124 views

Creating a menu for a quiz

I've built a menu for a quiz, where everything is hard-coded apart from the categories, which I'm pulling from an API using Axios. Api.js ...
user avatar
  • 143
2 votes
1 answer
378 views

SQLite Quiz with Questions Table and Categories Table

Edit: I changed my approach. I am trying to add categories to my existing SQLite quiz. This is my approach, what do you think about it? Do you think the foreign key restriction is necessary? I am a ...
user avatar
3 votes
0 answers
237 views

Python CLI program to learn words using Wordnik API and SuperMemo2 algorithm

Motivation I wanted to write a simple console application to improve my vocabulary by using the Wordnik API to get words and definitions and using the SuperMemo2 spaced-repetition algorithm to ...
user avatar
  • 361
5 votes
1 answer
1k views

JavaScript quiz game

Here is the JavaScript code: ...
user avatar
  • 263
1 vote
1 answer
561 views

Multithreaded arithmetic quiz with 20-second time limit

I learned something about threads and I tried to use them in an programming exercise. The user of the program has to solve as many exercises as he can within twenty seconds. After that time the ...
user avatar
  • 2,006
2 votes
1 answer
611 views

Checking if all questions were answered with javascript

I made a quiz project and I made a code to see if all the questions were answered, using JavaScript. It works, but its way more exhaustive than I wanted it to be. I first check every single option ...
user avatar
  • 325
4 votes
2 answers
4k views

Quiz app from a JSON file

My code fetches quiz data from a JSON file, displays the questions sequentially and records the user’s answers. It keeps track of the user’s score and at the end displays their result based on a ...
user avatar
  • 372
3 votes
2 answers
3k views

Multiple-choice questionnaire

I'm new to C# and for my assignment I have to design a multiple choice questionnaire where the student can login and take the test, view the memo, etc. I'm not very concerned about the GUI, but rather ...
user avatar
1 vote
1 answer
119 views

Restoring the instance state of an SQLite quiz app in Android

The following class is the activity of a little SQLite quiz app, which takes care of showing the actual quiz. Other than that the app only has a starting screen. I want to save the instance state and ...
user avatar