Skip to content

Simple Tester inspired by the source code of @Lemm's 2004 Tester. Created by CS Student from GUT.

Notifications You must be signed in to change notification settings

damianStrojek/simple-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Tester 3.2 Release

Inspired by the source code of @Lemm Tester.

The program is made for students who want to learn abcd questions for the exam. The databases in the repository are prepared for one of the main Computer Science courses that have the abcd tests at the Gdańsk University of Technology.

Basic version has a system("clear") command implemented because I prefer to work on Linux. If you want it to work properly on Windows change it to system("cls").

Improved functions

  • The questions are randomly selected from the database - if you answered a given question correctly, it goes to the end of the queue and should not appear soon, but if you answered the question incorrectly, it will appear again soon.
  • Asnwers are also randomly selected, so you always have to read them and enter a different answer.
  • One answer is in the format a, ab, bc, dec, etc. Before submitting, it is sorted and all white spaces are deleted so you can type it in every combination you would like and it should work.
  • You can make comments in the source file by using the '#' symbol as the first symbol in the line. The line has to be before the question and after new line.
  • I've added a function that gives the information about amount of the correct answers.
  • There is a new type of questions - "open questions". Now you can learn how to answer open questions correctly. I didn't introduce any type of buffer for wrong questions - the answer has to be 100% perfect.

Compile GNU/Linux

g++ simple-tester.cpp -o simple-tester
chmod +x simple-tester

Database Source File

In order for it to work you need to provide a .txt database file. If you are worried about state of your database you can always use the checkQuestions(questions); function.

The source code is designed to work with the Databases/ folder. You need to create this folder and put there .txt database files if you didn't clone the repository from github.

Template of a question looks like this:

// abcd questions
<question>
<number of answers>
<answer nr n1>
<answer nr n2>
<answer nr n3>
<answer nr n4>
<proper answer>
<ENTER>

// open questions
<question>
o
<answer>
<ENTER>

For example:

W przypadku klas w Javie:
4
Nie istnieje możliwość implementowania wielu interfejsów
Nie istnieje możliwość dziedziczenia po wielu klasach bazowych
Wszystkie metody klasy bazowej muszą być nadpisane w klasie potomnej
Żadne z powyższych
b

# Below is an open question and this is example of a comment
Czym sa iBeacony?
o
iBeacony to male urzadzenia bezprzewodowe korzystajace z Bluetooth Low Energy. Glownym przeznaczeniem takich urzadzen jest regularne wysylanie ramek o stalych danych (z 1Hz do 10Hz)

Multi-line Questions

Since 06.2023 my program is supporting multi-line questions again. :)

Known Problems

Sometimes there is a problem with the source file. On Linux I've observed that the file has to be configured with End of Line Sequence that equals to LF (right bottom corner when editing file in Visual Studio Code).

About

Simple Tester inspired by the source code of @Lemm's 2004 Tester. Created by CS Student from GUT.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages