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'
    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 "; 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/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)
    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
    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. 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 "; 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 @@ - +