Browse Source

weitere 5 Fragen und Antworten

remotes/origin/Pascal
Pascal Schneider 11 months ago
parent
commit
0f361d09d0
  1. 16
      src/timequiz.c

16
src/timequiz.c

@ -33,7 +33,12 @@ void timequiz() {
"Who is known as the 'Father of Computers'?", "Who is known as the 'Father of Computers'?",
"What is the capital of Canada?", "What is the capital of Canada?",
"Who discovered penicillin?", "Who discovered penicillin?",
"What is the chemical formula for table salt?"
"What is the chemical formula for table salt?",
"Which is the largest ocean on Earth?",
"Who is the author of '1984'?",
"What is the main ingredient in guacamole?",
"Who was the Greek god of the sea?",
"What is the square root of 144?"
}; };
char* answers[][4] = { char* answers[][4] = {
@ -52,10 +57,15 @@ void timequiz() {
{"Charles Babbage", "Alan Turing", "Ada Lovelace", "Bill Gates"}, {"Charles Babbage", "Alan Turing", "Ada Lovelace", "Bill Gates"},
{"Ottawa", "Toronto", "Vancouver", "Montreal"}, {"Ottawa", "Toronto", "Vancouver", "Montreal"},
{"Alexander Fleming", "Louis Pasteur", "Marie Curie", "Albert Einstein"}, {"Alexander Fleming", "Louis Pasteur", "Marie Curie", "Albert Einstein"},
{"NaCl", "H2O", "CO2", "HCl"}
{"NaCl", "H2O", "CO2", "HCl"},
{"Pacific Ocean", "Atlantic Ocean", "Indian Ocean", "Arctic Ocean"},
{"George Orwell", "F. Scott Fitzgerald", "Aldous Huxley", "J.D. Salinger"},
{"Avocado", "Tomato", "Onion", "Lime"},
{"Poseidon", "Zeus", "Hades", "Apollo"},
{"12", "10", "16", "14"}
}; };
int correctAnswers[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };
int correctAnswers[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };
for (int i = 0; i < sizeof(questions) / sizeof(questions[0]); i++) { for (int i = 0; i < sizeof(questions) / sizeof(questions[0]); i++) {
int j = rand() % 4; int j = rand() % 4;

Loading…
Cancel
Save