Quiz 02

0

/* css here */

{
border: 1px dotted black;
}

p.question {
font-family: Arial, sans-serif;
font-size:20px;
color: #2E2E2E;
margin-bottom:0px;
}

h2.quizHeader {
font-family: Arial, sans-serif;
font-weight:normal;
font-size:25px;
line-height: 27px;
margin: 24px 0 12px 0;
padding: 0 0 4px 0;
border-bottom: 1px solid #a2a2a2;
}

h2.quizScore{
font-family: Arial, sans-serif;
font-size:25px;
}

div.quizAnswers{
font-family: Arial, sans-serif;
font-size:16px;
color: #424242;
padding: 4px 0 4px 0;
}

label {
font-family: Arial, sans-serif;
font-size:14px;
color: #424242;
vertical-align:top;
}

input.answer[type=”radio”] {
margin-bottom: 10px;
}

input.quizSubmit[type=”submit”] {
-webkit-background-clip: border-box;
-webkit-background-origin: padding-box;
-webkit-background-size: auto;
-webkit-transition-delay: 0s, 0s;
-webkit-transition-duration: 0.2s, 0.2s;
-webkit-transition-property: color, background-color;
-webkit-transition-timing-function: ease, ease;
box-shadow: rgba(0, 0, 0, 0.498039) 0px 0px 5px 0px;
color: #ffffff;
background-color: #c30b0a;
margin: 0;
border: 0;
outline: 0;
text-transform:uppercase;
height:35px;
width:85px;
border: 1px solid #5E5E5E;
border-radius:5px;

}

input.quizSubmit[type=”submit”]:hover {
color: #ffffff;
background: #680f11;
text-decoration: none;
}

table {
background-color: #FFFFF;
border:1px solid #BDBDBD;
border-radius:5px;
padding:10px;
padding-left:25px;
box-shadow: rgba(0, 0, 0, 0.498039) 0px 0px 1px 0px;
}

th {

}

tr {

}

td {

}

.submitter {
width:85px;
}

.hide {
display:none;
}

/*SFS light red = #c30b0a;
SFS dark red = #9f2026; */

World Geography

Maximum score is 30, score for 1 correct ans is 3 and for incorrect 1/3rd score will be deducted.

1.Earth is at Greatest distance from the sun on….

    3 January

    4 July

    23 September

    22 December

2.Deepest Point of India is..

    Marnia Trench

    South East Indian Ridge

    Kuril Trench

    Java Trench

3.Greatest Barrier Reef is located in.

    North America Continent

    Asia Continent

    Australia

    South America Continent

4.North sea canal Joins..

    North Sea with Pacific Sea.

    North Sea with Amsterdam.

    North Sea with Baltic Sea

    Pacific ocean and Antlantic Ocean

5 .Goldilock zone is..

    Position of Earth in Solar System

    Place where Gold can be found

    in Pacific sea where fish can be found with small amount of Gold

    Position of India with World Map

6. Consider About Ladhakh Plateau

  1. Highest Plateau of The world.
  2. Known as Roof of the world
  3. Largest Plateau of The world

    1 and 2 only

    3 only

    2 and 3 only.

    1,2 and 3

7. Consider The following about Tropical Rainforest.

  1. Rainfall throught the year.
  2. Humidity is low
  3. Tree are invariably tall with thick foliage.

    1 only

    both 1 and 3.

    2 only

    Both 1 and 2

8.Consider the Following about Jupiter.

  1. Biggest Planet
  2. Also known as red planet
  3. Number of satellite are 62

    both 1 and 3

    1 only

    Both 2 and 3

    1,2 and 3

9.What is the correct order of Earth’s Atmospheric layers from bottom to top?

  1. Stratoshphere
  2. Mesoshpere
  3. Trosphere
  4. Theroshphere
  5. Exoshpere

    5,4,3,2,1

    3,4,2,1,5

    3,1,2,4,5

    4,2,1,5,3

10.Which of the following statement is true regarding coffee?

  1. Cultivation of the coffee requires high humus content in soil and low temperature.
  2. Brazil is largest producer and explorer of coffee in the world
  3. Yemen is the only country that produce Mocha Coffee

    1 only

    both 1 and 3.

    1,2 and 3

    both 2 and 3

// scripts here:

function submitQuiz() {
console.log(‘submitted’);

// get each answer score
function answerScore (qName) {
var radiosNo = document.getElementsByName(qName);

for (var i = 0, length = radiosNo.length; i < length; i++) { if (radiosNo[i].checked) { // do something with radiosNo var answerValue = Number(radiosNo[i].value); } } // change NaNs to zero if (isNaN(answerValue)) { answerValue = 0; } return answerValue; } // calc score with answerScore function var calcScore = (answerScore('q1') + answerScore('q2') + answerScore('q3') + answerScore('q4') + answerScore('q5') + answerScore('q6') + answerScore('q7') + answerScore('q8') + answerScore('q9') + answerScore('q10')); console.log("CalcScore: " + calcScore); // it works! // function to return correct answer string function correctAnswer (correctStringNo, qNumber) { console.log("qNumber: " + qNumber); // logs 1,2,3,4 after called below return ("The correct answer for question #" + qNumber + ":  ” +
(document.getElementById(correctStringNo).innerHTML) + “
“);
}

// print correct answers only if wrong (calls correctAnswer function)
if (answerScore(‘q1’) === -1) {
document.getElementById(‘correctAnswer1’).innerHTML = correctAnswer(‘correctString1’, 1);
}
if (answerScore(‘q2’) === -1) {
document.getElementById(‘correctAnswer2’).innerHTML = correctAnswer(‘correctString2’, 2);
}
if (answerScore(‘q3’) === -1) {
document.getElementById(‘correctAnswer3’).innerHTML = correctAnswer(‘correctString3’, 3);
}
if (answerScore(‘q4’) === -1) {
document.getElementById(‘correctAnswer4’).innerHTML = correctAnswer(‘correctString4’, 4);
}
if (answerScore(‘q5’) === -1) {
document.getElementById(‘correctAnswer5’).innerHTML = correctAnswer(‘correctString5’, 5);
}
if (answerScore(‘q6’) === -1) {
document.getElementById(‘correctAnswer6’).innerHTML = correctAnswer(‘correctString6’, 6);
}
if (answerScore(‘q7’) === -1) {
document.getElementById(‘correctAnswer7’).innerHTML = correctAnswer(‘correctString7’, 7);
}
if (answerScore(‘q8’) === -1) {
document.getElementById(‘correctAnswer8’).innerHTML = correctAnswer(‘correctString8’, 8);

}
if (answerScore(‘q9’) === -1) {
document.getElementById(‘correctAnswer9’).innerHTML = correctAnswer(‘correctString9’, 9);

}
if (answerScore(‘q10’) === -1) {
document.getElementById(‘correctAnswer10’).innerHTML = correctAnswer(‘correctString10’, 10);

}

// calculate “possible score” integer
var questionCountArray = document.getElementsByClassName(‘question’);

var questionCounter = 0;
for (var i = 0, length = questionCountArray.length; i < length; i++) { questionCounter++; } // show score as "score/possible score" var showScore = "Your Score: " + calcScore +"/" + 3*questionCounter; // if 4/4, "perfect score!" if (calcScore === 3*questionCounter) { showScore = showScore + "  Perfect Score!
};
document.getElementById(‘userScore’).innerHTML = showScore;
}

$(document).ready(function() {

$(‘#submitButton’).click(function() {
$(this).addClass(‘hide’);
});

});

Explain

  1. 1.Earth is farthest from the Sun on about 4 July at Aphelion, with a distance around 94.5 million miles. And nearest at perihelion on 3rd Jan.
  2. Java trench is located south of Indonasia between the Australian Indian and the Eurasian plate ; it is the deepest point of the Indian ocean.
  3. Greate Barrier Reef is located in Australia
  4. North canal joins north seawith Amsterdam
  5. Goldilock Zone is zone of planet where life can be possible.
  6. In Tropical rainforest humidity is high.
  7. Highest Plateau of the world and so called roof of the world
  8. It is largest Planet with 67 satellite, 62 is of Saturn, red Planet is Mars and
  9. botton to top layers are Tropo,strato,Meso, Thermo, Exosphere.
  10. All 3 are true about coffee.

div.hide { display:none; [your properties]; }
div.show { [your properties]; }

function showText(show,hide)
{
document.getElementById(show).className = “show”;
document.getElementById(hide).className = “hide”;
}

LEAVE A REPLY

Please enter your comment!
Please enter your name here