CAT1999 SEC-MATHS
2. There is only one correct answer to each question.
3. All questions carry four marks each.
4. Each wrong answer will attract a penalty of one mark.
Q1. ";
if($_POST["answer1"] == 'e1')
{
$score1=0;
echo "
The correct answer is: $ans1
The correct answer is: $ans1
Q2. ";
if($_POST["answer2"] == 'e2')
{
$score2=0;
echo "
The correct answer is: $ans2
The correct answer is: $ans2
Q3. ";
if($_POST["answer3"] == 'e3')
{
$score3=0;
echo "
Q4. ";
if($_POST["answer4"] == 'e4')
{
$score4=0;
echo "
Q5. ";
if($_POST["answer5"] == 'e5')
{
$score5=0;
echo "
Q6. ";
if($_POST["answer6"] == 'e6')
{
$score6=0;
echo "
Q7. ";
if($_POST["answer7"] == 'e7')
{
$score7=0;
echo "
Q8. ";
if($_POST["answer8"] == 'e8')
{
$score8=0;
echo "
Q9. ";
if($_POST["answer9"] == 'e9')
{
$score9=0;
echo "
Q10. ";
if($_POST["answer10"] == 'e10')
{
$score10=0;
echo "
Q11. ";
if($_POST["answer11"] == 'e11')
{
$score11=0;
echo "
Q12. ";
if($_POST["answer12"] == 'e12')
{
$score12=0;
echo "
Q13. ";
if($_POST["answer13"] == 'e13')
{
$score13=0;
echo "
Q14. ";
if($_POST["answer14"] == 'e14')
{
$score14=0;
echo "
Q15. ";
if($_POST["answer15"] == 'e15')
{
$score15=0;
echo "
Q16. ";
if($_POST["answer16"] == 'e16')
{
$score16=0;
echo "
Q17. ";
if($_POST["answer17"] == 'e17')
{
$score17=0;
echo "
Q18. ";
if($_POST["answer18"] == 'e18')
{
$score18=0;
echo "
Q19. ";
if($_POST["answer19"] == 'e19')
{
$score19=0;
echo "
Q20. ";
if($_POST["answer20"] == 'e20')
{
$score20=0;
echo "
Q21. ";
if($_POST["answer21"] == 'e21')
{
$score21=0;
echo "
Q22. ";
if($_POST["answer22"] == 'e22')
{
$score22=0;
echo "
Q23. ";
if($_POST["answer23"] == 'e23')
{
$score23=0;
echo "
Q24. ";
if($_POST["answer24"] == 'e24')
{
$score24=0;
echo "
Q25. ";
if($_POST["answer25"] == 'e25')
{
$score25=0;
echo "
Q26. ";
if($_POST["answer26"] == 'e26')
{
$score26=0;
echo "
Q27. ";
if($_POST["answer27"] == 'e27')
{
$score27=0;
echo "
Q28. ";
if($_POST["answer28"] == 'e28')
{
$score28=0;
echo "
Q29. ";
if($_POST["answer29"] == 'e29')
{
$score29=0;
echo "
Q30. ";
if($_POST["answer30"] == 'e30')
{
$score30=0;
echo "
You have attempted $attempted number of questions out of which $correct were correct" ;
/** ALL SCORES ARE CALCULATED **/
$scored1= $score1 + $score2 + $score3 + $score4 + $score5 +$score6 + $score7 + $score8 + $score9 + $score10 + $score11 +
$score12 + $score13 + $score14 + $score15 + $score16 + $score17 + $score18 + $score19 + $score20 + $score21 + $score22 +
$score23 + $score24 + $score25 +$score26 + $score27 + $score28 + $score29 + $score30;
$scored=($scored1/4);
if($scored<8)
{
echo "