The “CASTING NASTURTIUMS” Quiz
Each of the 10 questions in this quiz takes the form of a sentence that may contain as many as 4 common errors in English. Your aim is to determine how many errors there are.
Each of the 10 questions in this quiz takes the form of a sentence that may contain as many as 4 common errors in English. Your aim is to determine how many errors there are.
Categories: Uncategorized Tags:
The quiz was quite fun- both easier and harder than I expected. It only took 5 minutes so I definitely recommend others giving it a try, surely everyone can find the time ["stop calling me Shirley"]. Scoring only 5/10 was a reality check, and I certainly learnt a few things [eg. my back is not very useful for winning solo("")]. Nothink more to say- time to learn somethink, don`t you think..!
Hi,
how can i add question numbers to my questions like yours. please send me to code sample!
thanks a lot.
You need to edit Show_Quiz.php and change two lines, where the bold text is what I added:
$result .=
“<div class=’show-question-content’>”. $ques->ID . ‘. ‘ . stripslashes($ques->question) . “\n”;
and:
echo “<div class=’question-content’>”. $ques->ID . ‘. ‘ . stripslashes($ques->question) . “”;
Good luck!
Well, what do you know, that doesn’t work, as you tried to point out to me (in a private email) if you have more than one Quiz, which I now have.
As you suggested the lines above now become:
$result .=
“<div class=’show-question-content’>”. $question-count . ‘. ‘ . stripslashes($ques->question) . “\n”;
and:
echo “<div class=’question-content’>”. $question-count . ‘. ‘ . stripslashes($ques->question) . “”;
However as you also pointed out, outside the questions “for each” loop you need to intialise $question-count to one and inside the loop you need to increment it.
That was fun. The two that got me:
2 – I missed the spelling error in remuneration
3 – The row to hoe… missed the word and…
I think it should be “on their fiftieth wedding anniversary”
Hi Paula,
Thanks for your feedback. I hope you enjoyed the quiz. Whilst I do not concede that “for their fiftieth …” is wrong I do agree that “on their fiftieth …” is better. As this was not intended to be an error (because it is not featured in “Casting Nasturtiums”) I have now changed the question to read, “on their fiftieth …”.
Regards Greg Shalless
In all the ‘questions’ with double inverted commas round words, these should be single inverted commas as they are not quoted speech but reported.
Hello,
Sorry to be bothering you. I read your comments on Quizzin wordpress plugin forum and made the modifications you had suggested in order to have the questions and answers numbered. They are numbered now for sure, but both start from 3 rather than 1. Could you please tell me how I can correct this?
Thanks!
You should use the $question-count code rather than the $ques->id code, and remember to initialise it to 1 before entering the “for each” loop, and increment it at the end before exiting the loop. The people hosting my site have upgraded to WordPress MU, in which you lose the ability to edit Plugins, so my Quiz no longer has numbers. Beware of this if you’re thinking of upgrading.
Thanks David. You are quite correct. I will fix it eventually.
Thank you for the rapid response Greg, but I don’t know much about coding. I don’t know how to “initialise it to 1 before entering the for each loop” or how to “increment it at the end before exiting the loop”. Could you qrite out the code if it is not too much trouble. (If you can’t afford the time, it’s OK. I’ll try to sort it out somehow.)
Sorry about the delay for some reason I thought I had already replied to this.
To initialise it to 1 before each of the two “for each” loops:
$question_count = 1;
foreach ($all_question as $ques) {
To increment it at the end before exiting the loop:
$question_count++;
}
Regards Greg
Hi Greg.
Lots of fun, many thanks.
It appears that your book/website is the grammatical and malapropistic equivalent of “Eats Shoots and Leaves” !
Thanks John,
Glad you think so. Now if I could only sell half as many copies as Lynne Truss did, I’d be a very happy man.
Regards Greg
I only succeeded 3 out of 10, because I was a bit too alert – I thought that any word that didn’t sound right counted as an error. I mean, if they write a book about it, there must be more errors…
As long as you had fun and learnt something in the process that’s all that matters. You would of course learn a whole lot more if you bought the book, and that goes for people who think they know it all.
Regards Greg