Refresher quiz from Java, by use of fortune
game.
-
OOP - theory of OO, including definition, author, criteria, pillars, etc.
-
exceptions - error and exception handling in Java
-
keywords - questions about all Java keywords (till JDK11)
From the terminal:
-
git clone this-repository
-
cd powtorka
- change the dir name if you cloned or moved this elsewhere or renamed the dir name -
strfile -c % fileNameHere
- creates a binary file DB forfortune
-
fortune fileNameHere
- uses the file, giving the random fortune (that is, a random question) -
mv fileNameHere fileNameHere.dat /usr/games/fortune
- assuming your fortune dir is/usr/games/fortune
-
you can now delete the repo and use the fortune-quiz :-)
man fortune
to the rescue if you want to know more!