From 495467bbdc421ebc154dfa74ea17588a068f8e57 Mon Sep 17 00:00:00 2001 From: karsh tandon Date: Sun, 17 Mar 2019 23:06:20 +0530 Subject: [PATCH 1/7] ques 5 error fixed --- src/lab/exp6/Quizzes.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lab/exp6/Quizzes.html b/src/lab/exp6/Quizzes.html index 001abda..a8e4da0 100644 --- a/src/lab/exp6/Quizzes.html +++ b/src/lab/exp6/Quizzes.html @@ -1,4 +1,4 @@ - + @@ -160,7 +160,7 @@

Recursion

a. 13
From 10348b496851d7c5f95da9bbead3466a3e06ed94 Mon Sep 17 00:00:00 2001 From: karsh tandon Date: Mon, 18 Mar 2019 01:13:59 +0530 Subject: [PATCH 2/7] issue of extra answers on submitting fixed --- src/lab/exp5/quizresults.php | 2 -- src/lab/index.html | 7 ++++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lab/exp5/quizresults.php b/src/lab/exp5/quizresults.php index 4bb30a1..ef780a4 100644 --- a/src/lab/exp5/quizresults.php +++ b/src/lab/exp5/quizresults.php @@ -79,8 +79,6 @@
  • What is printed when this program is executed
  • 4
    -
  • The function prototype (or definition) gives a summary of the function

  • -
  • The default return type of a function is int (or Integer).


  • "; diff --git a/src/lab/index.html b/src/lab/index.html index d7842b4..9e4f4b5 100644 --- a/src/lab/index.html +++ b/src/lab/index.html @@ -1,7 +1,12 @@ - + From d5fb037e31726adb870de6162718ca578cec2fd9 Mon Sep 17 00:00:00 2001 From: karsh tandon Date: Mon, 18 Mar 2019 01:33:44 +0530 Subject: [PATCH 3/7] issues in output data type and q14 correct ans fixed --- src/lab/exp1/Quizzes.html | 18 +++++++++--------- src/lab/exp1/quizresults.php | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lab/exp1/Quizzes.html b/src/lab/exp1/Quizzes.html index 86db3d4..00848a5 100644 --- a/src/lab/exp1/Quizzes.html +++ b/src/lab/exp1/Quizzes.html @@ -179,31 +179,31 @@

    Expression Evaluation

    3

    Assume a='E' , b='5' and c='?' are char type variables for the following questions

    -
  • Calculate b-2
  • -'C'
    -'A'
    -'c'
    -'a'
    +
  • Calculate b-2 (character output)
  • +'3'
    +'C'
    +'2'
    +'B'

    -
  • Calculate b+c
  • +
  • Calculate b+c (character output)
  • 't'
    's'
    'T'
    'r'

    -
  • Calculate a%c
  • +
  • Calculate a%c (integer format)
  • 0
    1
    6
    9

    -
  • Calculate a*3
  • +
  • Calculate a*3 (ascii value/integer output)
  • 0
    1
    207
    69

    -
  • Calculate a*'3'
  • +
  • Calculate a*'3' (ascii value/integer output)
  • 0
    1
    97
    diff --git a/src/lab/exp1/quizresults.php b/src/lab/exp1/quizresults.php index ef66357..4e9e330 100644 --- a/src/lab/exp1/quizresults.php +++ b/src/lab/exp1/quizresults.php @@ -165,7 +165,7 @@
    Assume a='E' , b='5' and c='?' are char type variables for the following questions

  • Calculate b-2
  • - 'C'
    + '3'

  • Calculate b+c
  • 't'
    From 2e1703341e02bcb7cc983c4f147749c0a915fbc1 Mon Sep 17 00:00:00 2001 From: karsh tandon Date: Mon, 18 Mar 2019 01:46:36 +0530 Subject: [PATCH 4/7] results had wrong answers in q1 and q2 .issue is now fixed --- src/lab/exp9/quizresults.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lab/exp9/quizresults.php b/src/lab/exp9/quizresults.php index 1f604b2..d4e232d 100644 --- a/src/lab/exp9/quizresults.php +++ b/src/lab/exp9/quizresults.php @@ -10,12 +10,12 @@ $Q5 = $_POST['fib1']; echo "You answered the following questions correctly : "; -if ($Q1==2) +if ($Q1==4) { $total=$total+1; echo "1 "; } -if ($Q2==2) +if ($Q2==1) { $total=$total+1; echo "2 "; From 327700571f04e10ce73a3192d5bee7f1a33ed6bd Mon Sep 17 00:00:00 2001 From: karsh tandon Date: Mon, 18 Mar 2019 01:53:53 +0530 Subject: [PATCH 5/7] issue fixed --- src/lab/exp8/Theory.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lab/exp8/Theory.html b/src/lab/exp8/Theory.html index 7dd596b..da9aee9 100644 --- a/src/lab/exp8/Theory.html +++ b/src/lab/exp8/Theory.html @@ -149,7 +149,7 @@

    Strings

    -strcmp(str1,str2); +strcat(str1,str2);

    will add the contents of str2 to str1. Before writing this sentence make sure the there is enough memory allocated at str1 so as to hold both str1 and str2, and also a NULL character. Other useful string functions are listed here. From 4b728522884f8a0717f3df6577a477ab8be38541 Mon Sep 17 00:00:00 2001 From: karsh tandon Date: Tue, 19 Mar 2019 01:09:29 +0530 Subject: [PATCH 6/7] issue fixed --- src/lab/exp6/Further Readings.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lab/exp6/Further Readings.html b/src/lab/exp6/Further Readings.html index c9b7bfc..7011591 100644 --- a/src/lab/exp6/Further Readings.html +++ b/src/lab/exp6/Further Readings.html @@ -100,8 +100,8 @@

    <

    Recursion

      -
    1. http://www.tech-faq.com/recursion.html
    2. -
    3. http://en.wikipedia.org/wiki/Recursion_(computer_science)
    4. +
    5. https://www.geeksforgeeks.org/recursion/
    6. +
    7. http://en.wikipedia.org/wiki/Recursion_(computer_science)
    From 11613fad15a2b13b52f10854b6a8a5d9531dd58c Mon Sep 17 00:00:00 2001 From: karsh tandon Date: Tue, 19 Mar 2019 01:15:52 +0530 Subject: [PATCH 7/7] issue fixed --- src/lab/exp4/quizresults.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lab/exp4/quizresults.php b/src/lab/exp4/quizresults.php index c8dddc8..5ce8eaf 100644 --- a/src/lab/exp4/quizresults.php +++ b/src/lab/exp4/quizresults.php @@ -38,7 +38,7 @@ $total=$total+1; echo "5 "; } -if ($Q6==4) +if ($Q6==1) { $total=$total+1; echo "6 ";