From 0ea3988360171761c7cf18e52fbf198fcd7baa76 Mon Sep 17 00:00:00 2001 From: Mohsin Mamoon Hafiz Date: Thu, 21 Mar 2019 15:34:55 +0530 Subject: [PATCH 1/2] Fixed Issue: No evaluation of Question After Q5 --- src/lab/exp7/quizresults.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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
     		{
    
    From 79e420db9b9fefc008749c150f6d4064544ee82f Mon Sep 17 00:00:00 2001
    From: Mohsin Mamoon Hafiz 
    Date: Thu, 21 Mar 2019 15:45:38 +0530
    Subject: [PATCH 2/2] Fixed Issue: Q5 Typo
    
    ---
     src/lab/exp7/Quizzes.html | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    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
     		{