diff --git a/src/lab/exp7/Quizzes.html b/src/lab/exp7/Quizzes.html index 585e1b5..03fea3f 100644 --- a/src/lab/exp7/Quizzes.html +++ b/src/lab/exp7/Quizzes.html @@ -120,7 +120,7 @@

Structures

a. True
b. False

-
  • What will be the ouptut of the following function call: fun4(4,3); where fun4 is defined as:
  • +
  • What will be the ouptut of the following program:
  •  		typedef struct S
     		{
    diff --git a/src/lab/exp7/quizresults.php b/src/lab/exp7/quizresults.php
    index 05c3a3d..1fe859c 100644
    --- a/src/lab/exp7/quizresults.php
    +++ b/src/lab/exp7/quizresults.php
    @@ -8,8 +8,10 @@
     $Q3 = $_POST['Q3'];
     $Q4 = $_POST['Q4'];
     $Q5 = $_POST['Q5'];
    -$Q6 = $_POST['fib1'];
    -$Q7 = $_POST['fib2'];
    +$Q6 = $_POST['Q6'];
    +$Q7 = $_POST['Q7'];
    +$Q8 = $_POST['Q8'];
    +$Q9 = $_POST['fib1'];
     
     echo "You answered the following questions correctly : ";
     if ($Q1==1)
    @@ -52,7 +54,7 @@
     $total=$total+1;
     echo "8 ";
     }
    -if ((strcasecmp($Q9,"single")==0)){
    +if ((strcasecmp($Q9,"single")==0) || (strcasecmp($Q9, "Single")==0) || (strcasecmp($Q9, "common")==0) || (strcasecmp($Q9, "Common")==0)){
     $total= $total+1;
     echo "9 ";
     }
    @@ -83,7 +85,7 @@
                     False

    -
  • What will be the ouptut of the following function call: fun4(4,3); where fun4 is defined as:
  • +
  • What will be the ouptut of the following program:
  •  		typedef struct S
     		{