Skip to content

Commit

Permalink
Updated quiz in prequiz
Browse files Browse the repository at this point in the history
  • Loading branch information
mrudhvika940 committed May 19, 2020
1 parent 7aea58d commit 97562b1
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 46 deletions.
57 changes: 47 additions & 10 deletions src/lab/final-build/EXP_1sep2010/exp4/Quiz.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<link href="../../../vendors/font-awesome/css/font-awesome.css" rel="stylesheet"/>
<!-- Custom CSS -->
<link href="../../../css/style.css" rel="stylesheet"/>
<script src="quizval.js" type="text/javascript"></script>
<!-- <script src="tabs.js" type="text/javascript"></script>
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-67558473-1', 'auto');ga('send', 'pageview');</script> -->
</head>
Expand Down Expand Up @@ -113,16 +114,50 @@ <h3 class="text-h3-darkblue" style="margin-top: 2px;">Feedback</h3>
<!--edit -->
<h1 class="text-h1-lightblue"> Schematic Design Of Pass Transistor Logic &amp; Multiplexer</h1>
<div class="content" id="lab-article-section-5-content">
<p>
<b><u style="color:#B0171F;">Pre Quiz Questions</u>:</b><br/><br/>
</p>
<p>
Test your Understanding Pass Transistor and Multiplexer , by going through the following quiz:<br/>
<a href="preQuiz4.php"><i style="color:green"><u></u></i></a>
</p>
<ul>
<li><a href="preQuiz4.php"><i style="color:green"><u>Start the Quiz</u></i></a></li>
</ul>
<form name="quiz">
<!-- <font size="3"> -->
<ol>
<li><b>1. Multiplex is a ?</b><br/>
<span id="correct1"><input name="q1" type="radio" value="correct"/> Combinational Circuit </span><br/>
<input name="q1" type="radio" value="wrong"/> Flip Flop<br/>
<input name="q1" type="radio" value="wrong"/> Sequential Circuit<br/>
<input name="q1" type="radio" value="wrong"/> None of the above <br/>
</li>
<br/>
<li><b>2. Transmission gate is a ?</b><br/>
<input name="q2" type="radio" value="wrong"/> Parallel combination of two NMOS .<br/>
<input name="q2" type="radio" value="wrong"/> Series combination of NMOS and PMOS .<br/>
<span id="correct2"><input name="q2" type="radio" value="correct"/> Parallel combination of NMOS and PMOS .</span><br/>
<input name="q2" type="radio" value="wrong"/> None of the above .<br/>
</li>
<br/>
<li><b>3. Transmission gate is preferred over Complementary CMOS logic because ____</b><br/>
<input name="q3" type="radio" value="wrong"/> Transistor count required to implement a logic function in transmission gate is low .<br/>
<input name="q3" type="radio" value="wrong"/>Low Delay .<br/>
<span id="correct3"><input name="q3" type="radio" value="correct"/> Both of them .</span><br/>
<input name="q3" type="radio" value="wrong"/> None of the above .<br/>
</li>
<br/>
<li><b>4. How many 2x1 multiplexer will be require to design 8x1 multiplexer ?</b><br/>
<input name="q4" type="radio" value="wrong"/> Three <br/>
<span id="correct4"><input name="q4" type="radio" value="correct"/></span>Seven<br/>
<input name="q4" type="radio" value="wrong"/> Four <br/>
<input name="q4" type="radio" value="wrong"/> Eight <br/>
</li>
<br/>
<li><b>5. Multiplexer is also known as:</b><br/>
<input name="q5" type="radio" value="wrong"/> Counter <br/>
<span id="correct5"><input name="q5" type="radio" value="correct"/></span> Data Select <br/>
<input name="q5" type="radio" value="wrong"/> Single Input Many Output <br/>
<input name="q5" type="radio" value="wrong"/> None <br/>
</li></ol>
<br/>
<input onclick="checkQuiz()" type="button" value="check quiz"/>
<input onclick="window.location.reload();document.quiz.reset();" type="button" value="Reset"/>
<hr/>
<textarea cols="80" name="output" rows="10"></textarea>
<br/>
</form>
</div>
</div>
</div>
Expand Down Expand Up @@ -227,4 +262,6 @@ <h4>Follow Us</h4>





</body><!-- jQuery --></html>
23 changes: 7 additions & 16 deletions src/lab/final-build/EXP_1sep2010/exp4/quizval.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

//highlight color of answer - can change this color to a hex code or recognized color name
var highlightColor = "#0066cc";
document.write(radioGroup);
var radioGroup=5;

//this should not be changed
function checkQuestionRadio(radioGroup) {
Expand Down Expand Up @@ -29,36 +30,26 @@ function highlightCorrectButton(radioButton) {
}

function checkQuiz() {
//The orange highlighted code may need to be changed
//you will need to match these question types(Radio/DropDown)
//and names (q1, q2, ...) to the ones in your quiz
numCorrect = 0;
numCorrect += checkQuestionRadio( document.quiz.q1);
numCorrect += checkQuestionRadio( document.quiz.q2);
numCorrect += checkQuestionRadio( document.quiz.q3);
numCorrect += checkQuestionRadio( document.quiz.q4);
numCorrect += checkQuestionRadio( document.quiz.q5);
numCorrect += checkQuestionRadio( document.quiz.q6);
numCorrect += checkQuestionRadio( document.quiz.q7);
numCorrect += checkQuestionRadio( document.quiz.q8);
numCorrect += checkQuestionRadio( document.quiz.q9);
numCorrect += checkQuestionRadio( document.quiz.q10);



//highlight correct answers from radio button groups...use span id name
highlightCorrectButton("correct1");
highlightCorrectButton("correct2");
highlightCorrectButton("correct3");
highlightCorrectButton("correct4");
highlightCorrectButton("correct5");
highlightCorrectButton("correct6");
highlightCorrectButton("correct7");
highlightCorrectButton("correct8");
highlightCorrectButton("correct9");
highlightCorrectButton("correct10");


//produce output in textarea.
document.quiz.output.value =
"You got " + numCorrect + " out of 10 questions correct.\n" +
"You got " + numCorrect + " out of 5 questions correct.\n" +
"The correct answers are highlighted."

}
}
17 changes: 3 additions & 14 deletions src/lab/final-build/EXP_1sep2010/exp5/Quiz.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 +113,7 @@ <h3 class="text-h3-darkblue" style="margin-top: 2px;">Feedback</h3>
<div class="col-md-10 lab-list-col-10">
<!--edit -->
<h1 class="text-h1-lightblue">Delay Estimation In Chain Of Inverters</h1>
<div class="content" id="lab-article-section-5-content">
<p>
<b><u style="color:#B0171F;">Pre Quiz Questions</u>:</b><br/><br/>
</p>
<p>
Test your Understanding Gate Sizing, by going through the following quiz:<br/>
<a href="preQuiz5.php"><i style="color:green"><u></u></i></a>
</p>
<ul>
<li><a href="preQuiz5.php"><i style="color:green"><u>Start the Quiz</u></i></a></li>
</ul>
<p></p>
<br/>

<div class="content" id="lab-article-section-6-content">
<!-- <font size="3">
<title>Quiz on Gate sizing</title> -->
Expand Down Expand Up @@ -212,7 +200,7 @@ <h1 class="text-h1-lightblue">Delay Estimation In Chain Of Inverters</h1>
</div>
</div>
<!-- =================================================================================================================================== -->
</div>

<!-- content div -->
<footer id="footer">
<div class="footer-top" id="contact">
Expand Down Expand Up @@ -310,4 +298,5 @@ <h4>Follow Us</h4>




</body><!-- jQuery --></html>
3 changes: 2 additions & 1 deletion src/lab/final-build/EXP_1sep2010/exp7/Objective.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,5 @@ <h4>Follow Us</h4>



</body><!-- jQuery --></html>

</body><!-- jQuery --></html>
6 changes: 3 additions & 3 deletions src/lab/final-build/EXP_1sep2010/exp7/Quiz.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ <h1><b>Post Quiz</b></h1>
</li>
<li><b>7. The file extension which is not generated by spice?</b><br/>
<input name="q7" type="radio" value="wrong"/> .tr0<br/>
<input name="q7" type="radio"
value="wrong"/> .st0<br/>
<input name="q7" type="radio" value="wrong"/> .st0<br/>
<input name="q7" type="radio" value="wrong"/> .ic<br/>
<span id="correct7"><input name="q7" type="radio" value="correct"/> None of the above</span><br/><br/><br/>
</li>
Expand Down Expand Up @@ -316,4 +315,5 @@ <h4>Follow Us</h4>



</body><!-- jQuery --></html>

</body><!-- jQuery --></html>
3 changes: 2 additions & 1 deletion src/lab/final-build/EXP_1sep2010/exp7/Theory.html
Original file line number Diff line number Diff line change
Expand Up @@ -346,4 +346,5 @@ <h4>Follow Us</h4>



</body><!-- jQuery --></html>

</body><!-- jQuery --></html>
3 changes: 2 additions & 1 deletion src/lab/final-build/EXP_1sep2010/layout/Simulator.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,5 @@ <h4>Follow Us</h4>



</body><!-- jQuery --></html>

</body><!-- jQuery --></html>

0 comments on commit 97562b1

Please sign in to comment.