Answer the question
In order to leave comments, you need to log in
How to create an application for testing?
Good afternoon. I want to create an application for preparing for exams. So clean, for yourself, something new to explore. There is a database of questions in the dock file - there in the table, the correct option is marked with one, and the wrong ones with zeros. I want my program to interact with this document, take 30 random questions, mix up the answer options, and after testing, show where the mistakes were made. Is it difficult for a person without programming skills to write such a program. In what language would it be easier to write it? What basic knowledge is needed. I found some good guides for C plus plus, I even downloaded VS, but I don’t know if it makes sense to watch. Maybe my task is too complicated, and I will have to spend a huge amount of time to obtain the necessary knowledge. I would like to hear something like:
- no, this task is not as easy as you think, you will spend a month studying, but if you decide to learn *name language* for a beginner, it will be easy to write this program
or something like:
- yes, it's really simple, but you have to freeze a little. Try to use the "name language", you can pretty quickly make this program
Answer the question
In order to leave comments, you need to log in
Take c# . windows form application. Throw a StackPanel on the main form, create a UserControl into it, pass the Question class containing the Answer classes with the IsCorrect field, when loading the main form, call the xml file deserialization method in the resulting collection of questions, use random sampling. After getting a collection of questions, run through it and add controls with questions to the StackPanel. In the control itself, you display the question and the answer options, when you select the option, the answerselected event occurs and you subscribe to it. In addition, you create an exam class with fields name start stop and a dictionary with questions and selected answers. If necessary, serialize it in xml. In general, I see it. Time to implement an hour 2.
Play around.
https://github.com/vkorotenko/SimpleLearn
The main is ready, just add beauty
Working with data directly from a doc document will not be easy for a beginner.
At a minimum, you need to transfer the list of questions and correct answers to a form that is more convenient for the program - an array, a database, or at least a simple text file with delimiters (CSV)
.
If you want a desktop application for Windows, c# is better than c++
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question