Commit 8ba9f6b9 authored by vaishnaviravula's avatar vaishnaviravula
Browse files

code

parent 6dd69d93
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>DIVISIBILITYQUIZ</title>
</head>
<style>
body{
background-image: url(back_quiz.jpg);
background-size: cover;
background-attachment: fixed;
color: black;
font-size: 25px;
font-weight: bold;
padding-left: 70px;
margin-left: 200px;
}
h1{
text-align: center;
color: black;
font-size: 50px;
}
h3{
font-size: 30px;
}
#box{
font-size: 20px;
}
#button{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
#resetbutton{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
#backbutton{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
#score{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
#backbutton a{
text-decoration: none;
color: black;
}
</style>
<script type="text/javascript">
function check()
{
var a = document.getElementById("name").value;
if(a=="")
{
alert("NAME FIELD IS NOT FILLED");
}
else
{
alert("QUIZ SUBMITTED SUCCESSFULLY");
}
}
function check_score()
{
var score=0;
if(document.getElementById('correct1').checked)
{
score++;
}
if(document.getElementById('correct2').checked)
{
score++;
}
if(document.getElementById('correct3').checked)
{
score++;
}
if(document.getElementById('correct4').checked)
{
score++;
}
if(document.getElementById('correct5').checked)
{
score++;
}
document.write('Your score is '+score);
}
</script>
<body>
<h1>QUIZ</h1>
<center><h3>TOPIC: DIVISIBILITY RULES</h3></center>
<form id="quiz">
<label style="font-size: 25px;">ENTER YOUR NAME:</label>
<input id="name" type="text" required >
<br><br>
<div id="box">
<div>
<p>1. The number with unit digit 0 or 5 is divisible by</p>
<p><input type="radio" name="question1"> A. 2 </p>
<p><input type="radio" name="question1"> B. 7</p>
<p><input type="radio" name="question1"> C. 10</p>
<p><input type="radio" name="question1" id="correct1"> D. 5</p><br>
</div>
<div>
<p>2. The nearest number to 1240 which is divisible by 11 is</p>
<p><input type="radio" name="question2"> A.1234 </p>
<p><input type="radio" name="question2" id="correct2"> B.1232 </p>
<p><input type="radio" name="question2"> C. 1221</p>
<p><input type="radio" name="question2"> D.1212 </p><br>
</div>
<div>
<p>3. Which of these numbers are divisible by 2 and 5?</p>
<p><input type="radio" name="question3"> A. 675 </p>
<p><input type="radio" name="question3"> B. 674</p>
<p><input type="radio" name="question3" id="correct3"> C. 670</p>
<p><input type="radio" name="question3"> D. 673</p><br>
</div>
<br><br>
<div>
<p>4. State whether the following is true or false</p>
<p>1221 divisible by 11</p>
<p><input type="radio" name="question4" id="correct4"> A. True </p>
<p><input type="radio" name="question4"> B. False</p><br>
</div>
<div>
<p>5. Which one of the following numbers is divisible by 5?</p>
<p><input type="radio" name="question5" id="correct5"> A. 656565655 </p>
<p><input type="radio" name="question5"> B. 89898</p>
<p><input type="radio" name="question5"> C. 78742839743</p>
<p><input type="radio" name="question5"> D. 646464888</p><br>
</div>
</div>
<button type="submit" value="submit" id="button" onclick="check()">Submit</button>
<button type="reset" value="reset" id="resetbutton">Reset</button>
<button id="backbutton"><a href="number.html">BACK</a></button>
<button value="score" id="score" onclick="check_score()">View Score</button>
</form>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>QUIZ</title>
</head>
<style>
body{
background-image: url(quizimage.jpg);
background-size: cover;
background-attachment: fixed;
color: black;
font-size: 25px;
font-weight: bold;
padding-left: 70px;
}
h1{
text-align: center;
color: black;
font-size: 50px;
}
h3{
font-size: 30px;
}
#box{
font-size: 20px;
}
#button{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
#resetbutton{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
#backbutton{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
#scorebutton{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
#backbutton a{
color: black;
text-decoration: none;
}
</style>
<script type="text/javascript">
function check()
{
var a = document.getElementById("name").value;
if(a=="")
{
alert("NAME FIELD IS NOT FILLED");
}
else
{
alert("QUIZ SUBMITTED SUCCESSFULLY");
}
}
function check_score()
{
var score=0;
if(document.getElementById('correct1').checked)
{
score++;
}
if(document.getElementById('correct2').checked)
{
score++;
}
if(document.getElementById('correct3').checked)
{
score++;
}
if(document.getElementById('correct4').checked)
{
score++;
}
if(document.getElementById('correct5').checked)
{
score++;
}
document.write('Your score is '+score);
}
</script>
<body>
<h1>QUIZ</h1>
<h3>TOPIC: FACTORIZATION</h3>
<form name="quiz" id="quiz">
<label style="font-size: 25px;">ENTER YOUR NAME:</label>
<input id="name" type="text" required >
<br><br>
<div id="box">
<div>
<p>1. Which of the following are co-primes?</p>
<p><input type="radio" name="question1"> A. (2,6) </p>
<p><input type="radio" name="question1"> B. (6,12)</p>
<p><input type="radio" name="question1" id="correct1"> C. (4,5)</p>
<p><input type="radio" name="question1"> D. (4,8)</p><br>
</div>
<div>
<p>2. Which of the following is not a factor of 24?</p>
<p><input type="radio" name="question2">A. 1</p>
<p><input type="radio" name="question2">B. 2</p>
<p><input type="radio" name="question2" id="correct2">C. 7</p>
<p><input type="radio" name="question2">D. 4</p><br>
</div>
<div>
<p>3. The smallest prime number is</p>
<p><input type="radio" name="question3">A. 1</p>
<p><input type="radio" name="question3">B. 3</p>
<p><input type="radio" name="question3" id="correct3">C. 2</p>
<p><input type="radio" name="question3">D. 5</p><br>
</div>
<div>
<p>4. The number of factors for 12 are</p>
<p><input type="radio" name="question4">A. 3</p>
<p><input type="radio" name="question4" id="correct4">B. 6</p>
<p><input type="radio" name="question4" >C. 8</p>
<p><input type="radio" name="question4">D. 12</p><br>
<br><br>
</div>
<div>
<p>5. State whether the following is true or false</p>
<p> 1 is a prime number.</p>
<p><input type="radio" name="question5">A. True</p>
<p><input type="radio" name="question5" id="correct5">B. False </p><br>
</div>
</div>
<button type="submit" value="submit" id="button" onclick="check()">Submit</button>
<button type="reset" value="reset" id="resetbutton">Reset</button>
<button value="score" id="scorebutton" onclick="check_score()">View Score</button>
<button id="backbutton"><a href="number.html">BACK</a></button>
</form>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HCFQUIZscore</title>
</head>
<style>
body{
background-image: url(quiz_image.jpg);
background-size: cover;
color: black;
font-size: 25px;
font-weight: bold;
padding-left: 70px;
margin-left: 100px;
}
h1{
text-align: center;
color: black;
font-size: 50px;
}
h3{
font-size: 30px;
}
#box{
font-size: 20px;
}
#button
{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
#resetbutton{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
#backbutton{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
#backbutton a{
text-decoration: none;
color: black;
}
#score{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
</style>
<script type="text/javascript">
function check()
{
var a = document.getElementById("name").value;
if(a=="")
{
alert("NAME FIELD IS NOT FILLED");
}
else
{
alert("QUIZ SUBMITTED SUCCESSFULLY");
}
}
function check_score()
{
var score=0;
if(document.getElementById('correct1').checked)
{
score++;
}
if(document.getElementById('correct2').checked)
{
score++;
}
if(document.getElementById('correct3').checked)
{
score++;
}
if(document.getElementById('correct4').checked)
{
score++;
}
if(document.getElementById('correct5').checked)
{
score++;
}
document.write('Your score is '+score);
}
</script>
<body>
<h1>QUIZ</h1>
<center><h3>TOPIC: HCF</h3></center>
<form id="quiz">
<label style="font-size: 25px;">ENTER YOUR NAME:</label>
<input id="name" type="text" required >
<br><br>
<div id="box">
<div>
<p>1.The HCF of 12 and 16 is.</p>
<p><input type="radio" name="question1"> A. 2</p>
<p><input type="radio" name="question1" id="correct1"> B. 4</p>
<p><input type="radio" name="question1"> C. 6 </p>
<p><input type="radio" name="question1"> D. 1</p><br>
</div>
<div>
<p>2.The HCF of two consecutive ODD numbers is </p>
<p><input type="radio" name="question2">A. 3 </p>
<p><input type="radio" name="question2">B. 2</p>
<p><input type="radio" name="question2" id="correct2">C. 1</p>
<p><input type="radio" name="question2">D. 0 </p><br>
</div>
<div>
<p>3.The HCF of 66,77,88 </p>
<p><input type="radio" name="question3" id="correct3"> A.11 </p>
<p><input type="radio" name="question3"> B. 12</p>
<p><input type="radio" name="question3"> C. 13 </p>
<p><input type="radio" name="question3"> D. 17</p><br>
</div>
<div>
<p>4.The HCF of two consecutive EVEN numbers is </p>
<p><input type="radio" name="question4"> A. 3 </p>
<p><input type="radio" name="question4" id="correct4"> B. 2</p>
<p><input type="radio" name="question4"> C. 1 </p>
<p><input type="radio" name="question4"> D. 0</p><br>
</div>
<div>
<p>5.The HCF of two consecutive numbers is .</p>
<p><input type="radio" name="question5"> A. 0 </p>
<p><input type="radio" name="question5" id="correct5"> B. 1</p>
<p><input type="radio" name="question5"> C. 2 </p>
<p><input type="radio" name="question5"> D. 3</p><br>
</p>
</div>
<button type="submit" value="submit" id="button" onclick="check()">Submit</button>
<button type="reset" value="reset" id="resetbutton">Reset</button>
<button value="score" id="score" onclick="check_score()">View Score</button>
<button id="backbutton"><a href="number.html">BACK</a></button>
</form>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>LCMQUIZ</title>
</head>
<style>
body{
background-image: url(owlpic.png);
background-size:cover;
background-position: inherit;
background-attachment: fixed;
color: black;
font-size: 25px;
font-weight: bold;
padding-left: 70px;
margin-left: 100px;
}
h1{
text-align: center;
color: black;
font-size: 50px;
}
h3{
font-size: 30px;
}
#box{
font-size: 20px;
}
#button{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
#resetbutton{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
#backbutton{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
#backbutton a{
text-decoration: none;
color: black;
}
#score{
background-color: white;
color: black;
font-size: 20px;
border:2 px solid black;
border-radius:10px;
padding: 10px;
cursor: pointer;
}
</style>
<script type="text/javascript" src="script.js">
function check()
{
var a = document.getElementById("name").value;
if(a=="")
{
alert("NAME FIELD IS NOT FILLED");
}
else
{