HTML/Javascript Multiple Choice Quiz Primer Tutorial

HTML/Javascript Multiple Choice Quiz Primer Tutorial

HTML/Javascript Multiple Choice Quiz Primer Tutorial

Today’s web application is a Multiple Choice Quiz modelled on the rules of a UK (BBC2) quiz television show called Eggheads, where a challenger team of 5 tries to defeat a champion team of 5 in a topic based head to head quiz followed by a General Knowledge round of the survivors to determine a winner.

In the real Eggheads there are sudden death questions, as necessary, in all rounds, but with our rules, we only do this for the final General Knowledge collaborative round.

This web application shares the yellow HTML canvas element as discussed in the recent HTML/Javascript/PHP Broadcast and Listen CSS Tutorial as well. This time, though, with the printing out, there are implied buttons under each word, via a white background (done with a call to the fillRect() HTML canvas method) to those bits of the canvas element. To click on one of these white areas …

  • allows the challenger team to answer the question posed … and then …
  • sets up the corresponding champion team question, updating scores and answer information

… using an HTML canvas element onclick event detection of mouse co-ordinates to achieve this functionality.

The web application makes a lot of use of the Javascript setTimeout method to synchronize all the toings and froings in an order that makes sense, and simulates the “Egghead” champion team, who, after all, are not with you, so their actions are delayed. By the way, with all this, don’t worry that there would be no chance of you winning against the champion “Egghead” team. The “warts and all” mistakes made by the “Eggheads” team in the episode aired on the 25/10/2015 in Sydney ABC are mimicked in the answers of the champion team you are up against, and you can win if you are “on your toes”.

We’d like to thank Clipart Panda for the background image used today in that similar manner as discussed with HTML/Javascript/PHP Broadcast and Listen CSS Tutorial.

For programmers interested in HTML and Javascript and CSS code (especially as you don’t need any special web hosting to test today’s code) you can see this at multiple_choice_quiz.html and because today’s code was based so much on the recent HTML/Javascript Hearing and Listening Primer Tutorial we also present, today, a “how we got there” differences link to peruse here.

We leave you with a live run link to take on the “Egghead” simulator!


Previous relevant HTML/Javascript Hearing and Listening Primer Tutorial is shown below.

HTML/Javascript Hearing and Listening Primer Tutorial

HTML/Javascript Hearing and Listening Primer Tutorial

We’ve got a web application on the theme of Listening and Hearing, today, written such that it doesn’t need serverside (in our case, PHP) constituents, just HTML and Javascript and CSS, with a lot of help from various sources as per …

We’ve designed this web application with ESL students in mind, but it might be useful for other purposes. The idea is the user types, or copies and pastes some wording of interest into the “words” textarea and sees it presented in the yellow HTML canvas element, printed out slowly in that same method as discussed in HTML/Javascript/PHP Broadcast and Listen CSS Tutorial as well. This time, though, with the printing out, there are implied buttons under each word, via a white background (done with a call to the fillRect() HTML canvas method) to those bits of the canvas element. To click on one of these white areas …

  1. opens a window.open() popup window of The Free Dictionary lookup for that word if your Language you’ve chosen in the HTML select (dropdown) element is English
  2. opens a window.open() popup window of Google Translate text to speech for that word in the Language you’ve chosen in the HTML select (dropdown) element

There are limits to the amount of text Google Translate text to speech allows, and in some cases where you leave totally blank lines in your text, we may be able to “chunk” the text into several calls to Google Translate text to speech when you’ve pressed the “Hear 👂 All the Words” button.

Also, as in HTML/Javascript/PHP Broadcast and Listen CSS Tutorial, we’ve included some Internationalization Emoji character helpers and like there, we found Emojipedia a great place to look up the concepts with better detail at the File Format Info website.

ESL students will probably have already experienced a variety of English accents, and there is no doubt this is a big thing to overcome in learning English, along with all the other challenges to do with learning another language. The Google Translate text to speech is no different in the sense that there is an accent you should not think is going to be a typical accent, necessarily, to do with living where you’re going to be living. But it does give you some guidelines into how words are pronounced, and it is good to have heard a word sometimes, before you hear it being spoken by a very fast speaker, for instance. So, why not copy and paste some words off the Internet, and see how they sound by using this live run link.

For you programmers interested in HTML and Javascript and CSS code (especially as you don’t need any special web hosting to test today’s code) you can see this at listen_to.html and because today’s code was based so much on the supervisor HTML code of HTML/Javascript/PHP Broadcast and Listen CSS Tutorial we also present, today, a “how we got there” differences link to peruse here.

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

This entry was posted in eLearning, Event-Driven Programming, Tutorials and tagged , , , , , , , , , , . Bookmark the permalink.

24 Responses to HTML/Javascript Multiple Choice Quiz Primer Tutorial

  1. I do accept as true with all of the ideas you have offered for your post. They’re very convincing and will certainly work. Still, the posts are too brief for novices. Could you please lengthen them a little from next time? Thank you for the post.

  2. Marketing says:

    I am no longer certain the place you are getting your information, however great topic. I must spend a while learning more or understanding more. Thank you for wonderful information I was looking for this information for my mission.

  3. Surgery says:

    What i do not realize is if truth be told how you are no longer really a lot more well-appreciated than you might be right now. You are very intelligent. You already know therefore considerably relating to this topic, made me for my part believe it from numerous various angles. Its like women and men aren’t fascinated unless it‘¦s something to do with Woman gaga! Your individual stuffs great. All the time deal with it up!

  4. hey, your internet internet site is superb. We do appreciate your work

  5. action says:

    You are my breathing in, I possess few blogs and rarely run out from to post .

  6. Terrific says:

    My internet searching seem complete.. thank you. So happy to possess identified this publish.. Supporting the piece of writing.. cheers I appreciate you sharing with us your perspective..

  7. Excellent post. I was checking constantly this blog and I’m impressed! Very helpful information particularly the last part :) I care for such information a lot. I was seeking this certain info for a very long time. Thank you and best of luck.

  8. Thanks for the sensible critique. Me and my neighbor were just preparing to do a little research about this. We got a grab a book from our area library but I think I learned more from this post. I am very glad to see such fantastic information being shared freely out there.

  9. Excellent beliefs you have here.. My personal internet surfing seem full.. thank you. Loving the publish.. all the best My personal web surfing seem complete.. thanks.

  10. boss says:

    So content to have discovered this publish.. So happy to have identified this post.. My personal internet searching seem complete.. thanks. I value you writing your viewpoint..

  11. KW 1..2015 says:

    What i do not realize is if truth be told how you are no longer actually a lot more well-favored than you may be right now. You are very intelligent. You recognize therefore considerably relating to this subject, produced me personally believe it from numerous varied angles. Its like men and women don’t seem to be involved until it’s one thing to accomplish with Lady gaga! Your individual stuffs great. At all times care for it up!

  12. Crisp says:

    I am continuously looking online for articles that can help me. Thank you!

  13. form says:

    certainly like your web-site but you have to take a look at the spelling on quite a few of your posts. A number of them are rife with spelling issues and I in finding it very troublesome to inform the reality then again I‘¦ll definitely come again again.

  14. gather says:

    Well I truly liked studying it. This subject procured by you is very practical for good planning.

  15. Very well written article. It will be beneficial to everyone who usess it, as well as yours truly :). Keep up the good work – can’r wait to read more posts.

  16. In this grand pattern of points you will get an A just for hard function. Exactly exactly where you confused me personally was first on your specifics. As folks say, the devil is in the detailsÒ€¦ And that could not be much more accurate here. Having said that, permit me say to you precisely what did deliver the outcomes. Your text is actually highly engaging and that is probably why I am producing an effort to comment. I do not make it a regular habit of doing that. Second, although I can easily see the leaps in reason you come up with, I am not convinced of exactly how you appear to connect your details which aid to make the conclusion. For now I will yield to your position however wish in the foreseeable future you link your facts a lot better.

  17. If conceivable, as you clear expertise, would you mind updating your blog with more info? It really is damned helpful in return me.

  18. Aw, this was a truly good post. In concept I wish to put in writing like this in addition – taking time and actual effort to make an outstanding articleÒ€¦ nevertheless what can I sayÒ€¦ I procrastinate alot and not at all appear to get something done.

  19. HOME ADVISOR says:

    This website is typically a walk-through you discover the info it suited you about it and didnÒ€ℒt know who need to have to. Glimpse here, and youÒ€ℒll undoubtedly discover it.

  20. You completed various excellent points there. I did a search on the theme and found the majority of folks will consent with your blog.

  21. I believe you might have remarked some extremely intriguing details , thankyou for the post.

  22. hide says:

    Is not it terrific if you get a fantastic post? Incredibly useful outlook, appreciate your blogging.. Mighty practical point of view, thanks for blogging.. I value you giving out your viewpoint..

  23. Right says:

    Wonderful ideas you have got here.. Truly appreciate the entry you presented.. So content to get located this publish.. Really beneficial viewpoint, thanks for blogging..

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>