var questions = new Array();
var choices = new Array();
var answers = new Array();
var response = new Array();
questions[0] = "1) A wall switch controlled light is required in _____.";
choices[0] = new Array();
choices[0][0] = "Kitchen";
choices[0][1] = "Hallway";
choices[0][2] = "Attic if there is storage or heating equipment";
choices[0][3] = "all of the above";
answers[0] = choices[0][3];

questions[1] = "2) An ARC-FAULT Circuit Interrupter is required for all outlets in bedrooms.";
choices[1] = new Array();
choices[1][0] = "True";
choices[1][1] = "False";
answers[1] = choices[1][0];

questions[2] = "3) In dwelling units, the general rule is to provide one 20-ampere branch circuit for the laundry area.";
choices[2] = new Array();
choices[2][0] = "True";
choices[2][1] = "False";
answers[2] = choices[2][0];

questions[3] = "4) A maximum of two 20-ampere 115/120 volt branch circuits shall be installed in dwelling units to serve kitchen receptacles.";
choices[3] = new Array();
choices[3][0] = "True";
choices[3][1] = "False";
answers[3] = choices[3][1];

questions[4] = "5) In dwellings floor receptacles shall not count in the receptacles required along the walls unless they are within ____ inches of the wall.";
choices[4] = new Array();
choices[4][0] = "10";
choices[4][1] = "12";
choices[4][2] = "18";
choices[4][3] = "24";
answers[4] = choices[4][2];

questions[5] = "6) A receptacle shall be installed at each counter space that is ____ inches wide or wider.";
choices[5] = new Array();
choices[5][0] = "6";
choices[5][1] = "12";
choices[5][2] = "18";
choices[5][3] = "24";
answers[5] = choices[5][1];

questions[6] = "7) At least ____ receptacle(s) shall be installed at each island that has a long dimension of ____ and a short dimension of at least _____.";
choices[6] = new Array();
choices[6][0] = "2    10   12";
choices[6][1] = "2    24   12";
choices[6][2] = "1    24   18";
choices[6][3] = "1    24   12";
answers[6] = choices[6][3];

questions[7] = "8) Receptacles above counter tops shall not be more than _____ mm above the counter.";
choices[7] = new Array();
choices[7][0] = "20";
choices[7][1] = "200";
choices[7][2] = "300";
choices[7][3] = "500";
answers[7] = choices[7][3];

questions[8] = "9) In dwelling units one receptacle shall be installed within _____ inches of the outside edge of bathroom basins.";
choices[8] = new Array();
choices[8][0] = "24";
choices[8][1] = "36";
choices[8][2] = "48";
choices[8][3] = "60";
answers[8] = choices[8][1];

questions[9] = "10) For a one-family dwelling and each unit of two-family dwellings that is at grade level, at least _____ receptacle outlet(s) accessible at grade level and not more than ____ feet above grade shall be installed at the ____ of the dwelling.";
choices[9] = new Array();
choices[9][0] = "2   2  side";
choices[9][1] = "1   5  front";
choices[9][2] = "2   3  front and side";
choices[9][3] = "1   6.5  front and back";
answers[9] = choices[9][3];

questions[10] = "11) GFCI's are required in the following locations of dwelling units: Bathrooms, Bedrooms, Garages, Outdoors, Crawl Spaces, Unfinished Basements, Kitchens, Wet Bars, and Boathouses.";
choices[10] = new Array();
choices[10][0] = "True";
choices[10][1] = "False";
answers[10] = choices[10][1];

questions[11] = "12) On balconies, decks, and porches accessible from inside a dwelling shall have one receptacle outlet installed if the area is greater than 20 square feet.";
choices[11] = new Array();
choices[11][0] = "True";
choices[11][1] = "False";
answers[11] = choices[11][0];

questions[12] = "13) Sleeping rooms in dormitories shall have receptacles installed as in dwellings.";
choices[12] = new Array();
choices[12][0] = "True";
choices[12][1] = "False";
answers[12] = choices[12][0];

// response for getting 100%
response[0] = "Excellent, top marks!";
// response for getting 90% or more
response [1] = "Excellent, try again to get 100%!";
// response for getting 70% or more
response[2] ="Well done, that is a good score, can you do better?";
// response for getting over 50%
response[3] ="Nice one, you got more than half of the questions right, can you do better?";
// response for getting 40% or more
response[4] ="You got some questions right, you can do better!";
// response for getting 20% or more
response[5] ="You didn't do too well, why not try again!?";
// response for getting 10% or more
response[6] ="That was pretty poor!  Try again to improve!";
// response for getting 9% or less
response[7] ="Oh dear, I think you need to go back to school (or try again)!";

