Quiz Program in Delphi for Biology Definitions

  • Thread starter Thread starter aychamo
  • Start date Start date
  • Tags Tags
    Program Quiz
AI Thread Summary
The discussion revolves around creating a definitions quiz program for subjects like parasitology, cell biology, and ecology. The user seeks a simple application that allows input of words and definitions, presenting either the word or definition for self-testing without requiring typed input. Suggestions include using a text file to store definitions, formatted with delimiters for easy reading. The conversation highlights the use of Delphi for programming, with recommendations to utilize data types such as arrays or TStringList for managing the definitions. The TStringList type is noted for its ability to handle string pairs effectively, making it suitable for the quiz application. Overall, the focus is on developing a straightforward tool to aid in memorization of key terms and definitions.
aychamo
Messages
375
Reaction score
0
Hey guys

A lot of my classes this semester (parastiology, cell biology, ecology) are a lot of definitions that I need to have nailed down solid.

I'm looking for a little definitions quiz program that I can use, I'd like to be able to enter the word and definition and have it ask my either the word or definition and I'd have to answer it. I don't have to be able to type it in, just show it to me then I hit a button and it tells me the answer (I'll know if I'm right or not, I don't need the program to tell me).

If I cant' find something, I'd like to write a simple one in Delphi on WinXP. What type of data type would you think I should do this in?

Should I do a big array of like [1..255] or something of Strings? I could put the definitions and words in a txtfile and have each separated by a <newline> (#10#14).

I took a Java class a few years ago and we learned about vectors which were like dynamic datatypes and you could define them as you needed them instead of making arrays. I don't know what the equivelant is in Delphi (I'm so far out of the programming loop it's not funny). Is there a better datatype than just an array, in delphi?

Anyways.. I just need to learn my junk :)

Thank you!
Aychamo
 
Computer science news on Phys.org
Hi
I don't know anything about Delphi,but in c++/VB/c#/Java etc (i think in all programming languages )you neednt keep the answers as strings.
Just write everything int a file in a suitable format like

$Defn1
blah blah blah blah blah bla...

$Defn2
blah blah blah blah blah bla...

Then just read the suitable Defn and answers

Pseudocode:

Read text file till $ is reached
Display everything till newline as question
...
Display everything until next $ as answer

This can be implemented as a loop easily

For input program replace Disply by Input,etc..
 
Delphi has a TStringList type, which stores a list of strings, but also has methods for dealing with strings of the form

name=value

The TValueListEditor component stores its values in a StringList, and so looks like what you need
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...

Similar threads

Replies
16
Views
2K
Replies
30
Views
9K
Replies
3
Views
2K
Replies
12
Views
2K
Replies
9
Views
2K
Back
Top