Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/lab/exp1/Quizzes.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,31 +179,31 @@ <h1 class="text-h2-lightblue">Expression Evaluation</h1><div class="content" id=
<input name="Q13" type="radio" value="4">3<br>
<br>
<b>Assume a='E' , b='5' and c='?' are char type variables for the following questions</b><br><br>
<li><b>Calculate b-2</b></li>
<input name="Q14" type="radio" value="1">'C'<br>
<input name="Q14" type="radio" value="2">'A'<br>
<input name="Q14" type="radio" value="3">'c'<br>
<input name="Q14" type="radio" value="4">'a'<br>
<li><b>Calculate b-2 (character output)</b></li>
<input name="Q14" type="radio" value="1">'3'<br>
<input name="Q14" type="radio" value="2">'C'<br>
<input name="Q14" type="radio" value="3">'2'<br>
<input name="Q14" type="radio" value="4">'B'<br>
<br>
<li><b>Calculate b+c</b></li>
<li><b>Calculate b+c (character output)</b></li>
<input name="Q15" type="radio" value="1">'t'<br>
<input name="Q15" type="radio" value="2">'s'<br>
<input name="Q15" type="radio" value="3">'T'<br>
<input name="Q15" type="radio" value="4">'r'<br>
<br>
<li><b>Calculate a%c</b></li>
<li><b>Calculate a%c (integer format)</b></li>
<input name="Q16" type="radio" value="1">0<br>
<input name="Q16" type="radio" value="2">1<br>
<input name="Q16" type="radio" value="3">6<br>
<input name="Q16" type="radio" value="4">9<br>
<br>
<li><b>Calculate a*3</b></li>
<li><b>Calculate a*3 (ascii value/integer output)</b></li>
<input name="Q17" type="radio" value="1">0<br>
<input name="Q17" type="radio" value="2">1<br>
<input name="Q17" type="radio" value="3">207<br>
<input name="Q17" type="radio" value="4">69<br>
<br>
<li><b>Calculate a*'3'</b></li>
<li><b>Calculate a*'3' (ascii value/integer output)</b></li>
<input name="Q18" type="radio" value="1">0<br>
<input name="Q18" type="radio" value="2">1<br>
<input name="Q18" type="radio" value="3">97<br>
Expand Down
2 changes: 1 addition & 1 deletion src/lab/exp1/quizresults.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
<br>
<b>Assume a='E' , b='5' and c='?' are char type variables for the following questions</b><br><br>
<li><b>Calculate b-2</b></li>
'C'<br>
'3'<br>
<br>
<li><b>Calculate b+c</b></li>
't'<br>
Expand Down
2 changes: 1 addition & 1 deletion src/lab/exp4/quizresults.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
$total=$total+1;
echo "5 ";
}
if ($Q6==4)
if ($Q6==1)
{
$total=$total+1;
echo "6 ";
Expand Down
2 changes: 0 additions & 2 deletions src/lab/exp5/quizresults.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@
<br>
<li><b> What is printed when this program is executed</b></li>
4 <br>
<li><b> The function prototype (or definition) gives a summary of the function</b></li><br>
<li><b> The default return type of a function is int (or Integer).</b></li><br>
<br>

</ol>";
Expand Down
4 changes: 2 additions & 2 deletions src/lab/exp6/Further Readings.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ <h2 class="text-h2-lightblue" style=" margin-bottom: 20px; margin-top: 10px; "><
<!--edit -->
<h1 class="text-h2-lightblue">Recursion</h1><div class="content" id="experiment-article-section-8-content">
<ol>
<li><a href="http://www.tech-faq.com/recursion.html">http://www.tech-faq.com/recursion.html </a></li>
<li><a href="http://en.wikipedia.org/wiki/Recursion_(computer_science)">http://en.wikipedia.org/wiki/Recursion_(computer_science) </a></li>
<li><a href="https://www.geeksforgeeks.org/recursion"/>https://www.geeksforgeeks.org/recursion/</a></li>
<li><a href="https://en.wikipedia.org/wiki/Recursion_(computer_science)">http://en.wikipedia.org/wiki/Recursion_(computer_science) </a></li>
</ol>
</div> </div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/lab/exp6/Quizzes.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<DOCTYPE html>
<html lang="en">
<head>

Expand Down Expand Up @@ -160,7 +160,7 @@ <h1 class="text-h2-lightblue">Recursion</h1><div class="content" id="experiment-
if(x == 0)
return y;
else
return fun1(x - 1, x + y);
return fun4(x - 1, x + y);
}
</pre>
<input name="Q5" type="radio" value="1">a. 13<br>
Expand Down
2 changes: 1 addition & 1 deletion src/lab/exp8/Theory.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ <h1 class="text-h2-lightblue">Strings</h1><div class="content" id="experiment-ar
The strcmp() function returns 1 if the two strings are identical and 0 otherwise. The strcat() function is used to concatenate 2 string. Writing
</p>
<p><pre class="prettyprint lang-c">
strcmp(str1,str2);
strcat(str1,str2);
</pre></p>
<p>
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 <a href="http://en.wikipedia.org/wiki/String.h">here</a>.
Expand Down
4 changes: 2 additions & 2 deletions src/lab/exp9/quizresults.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ";
Expand Down
7 changes: 6 additions & 1 deletion src/lab/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>

<style>
."nav navbar-nav navbar-right menu-ul"
{
position: sticky;
}
</style>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down