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
6
votes
1answer
295 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 ...
5
votes
1answer
95 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 ...
4
votes
1answer
284 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. ...
2
votes
1answer
316 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 ...
4
votes
2answers
692 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 ...
9
votes
2answers
803 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 ...
0
votes
1answer
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 ...
1
vote
0answers
214 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 ...
5
votes
1answer
111 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 ...
1
vote
1answer
194 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 ...
1
vote
1answer
341 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 ...
1
vote
1answer
105 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 ...
7
votes
1answer
148 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 ...
2
votes
1answer
256 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 ...
8
votes
2answers
349 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 ...
4
votes
1answer
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,...
1
vote
1answer
111 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 ...
6
votes
2answers
960 views

General Knowledge quiz

I have made a General Knowledge quiz in python as a project from my school ...
5
votes
2answers
10k 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 ...
1
vote
1answer
116 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 ...
1
vote
2answers
404 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? ...
5
votes
1answer
175 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 ...
3
votes
0answers
150 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 ...
3
votes
2answers
931 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. ...
7
votes
2answers
3k 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 ...
1
vote
1answer
11k 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 ...
1
vote
1answer
57 views

Quiz for studying word stems

I'm wondering how I could condense the following (redundant on many levels) code: ...
1
vote
0answers
85 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) ...
3
votes
0answers
3k 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? ...
3
votes
4answers
1k 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 ...
8
votes
2answers
1k views

Python vocabulary trainer for terminal

To train my Python skills I have made a vocabulary trainer which runs on a terminal: ...
7
votes
3answers
290 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 ...
3
votes
1answer
77 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. ...
3
votes
2answers
159 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 ...
5
votes
2answers
3k 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 ...
3
votes
1answer
432 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 ...
1
vote
0answers
119 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 ...
2
votes
1answer
357 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 ...
2
votes
0answers
221 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 ...
5
votes
1answer
1k views

JavaScript quiz game

Here is the JavaScript code: ...
1
vote
1answer
510 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 ...
2
votes
1answer
376 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 ...
4
votes
2answers
3k 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 ...
3
votes
2answers
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 ...
1
vote
1answer
116 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 ...
4
votes
1answer
49 views

Scoring a Behavioral Survey

I've written a script to calculate the user's scores as a part of a larger survey application written in React/Redux. The questions are all based on the Likert Scale, i.e. "How much do you agree with ...
1
vote
2answers
2k views

A Quiz game realized with MVC-Pattern (Java)

Project description The program can be tested here This project is an exercise designed to check if I understand the MVC pattern correctly and apply it correctly. A quiz is to be designed in which ...
4
votes
2answers
91 views

Measuring typing speed in terminal without a mistake

I tend to dislike my code. It's always a mess. I can't critique my own code though, because I just turn it into another mess. I've been programming slightly better every year, but this year it has ...
5
votes
3answers
336 views

Beginner solution to basic quiz exercise, a la Gophercises

I just started golang development about two weeks ago and recently finished the recommended introduction book. I'm now working my way through Gophercises - a sort of collection of exercises to ...
5
votes
2answers
204 views

A small but expandable Exam system

I'm trying to practice OO design as well as OOP in Java so I've created an Exam system that tries to be Object Oriented and expandable. This is what I haven't learned from Java so far: Java 8, ...