Problem Statement: You are required to develop a dynamic web page for Self test
ID: 3612121 • Letter: P
Question
Problem Statement:
You are required to develop a dynamic web page for Self test ofJava using HTML and Servlet technology.
Requirements:
Detailed Description:
You are required to develop a web page named“MCQs.html”. This web page must contain five MCQs(Multiple Choice Questions) having four options each. The web pagemust also contain two buttons “Check Result” and“Reset”.
The user has to select one option for each MCQ and then click“Check Result” button.
When user clicks “Check Result” button then Servletnamed “SelfTest.java” process HTML form data, dosome processing on that data and send the output of user resultback to client as given below:
Question 1: Correct/incorrect/unanswered
Question 2: Correct/incorrect/unanswered
Question 3: Correct/incorrect/unanswered
Question 4: Correct/incorrect/unanswered
Question 5: Correct/incorrect/unanswered
Answered questions: ____
Un-answered questions:____
Correct questions: ____
Incorrect questions: ___
Your Total score:_____
Sample Output
Sample output of HTML page afterprocessing user data usingservlet
Explanation / Answer
<html>
<body>
<center>
<h1> Select One option for each MCQ</h1>
</center>
<h3>1) Java isstarted in ______ .</h3><br>
<form action="">
<input type="radio" checked="checked"name="1" value="1989">1989<br>
<input type="radio"checked="checked" name="1" value="1990">1990 <br>
<input type="radio"checked="checked" name="1" value="1994">1994 <br>
<input type="radio"checked="checked" name="1" value="1995">1995 <br>
</form>
<h3>2) Java provides_______ </h3><br>
<form action="">
<input type="radio" checked="checked"name="2"value="Overloading"> Overloading<br>
<input type="radio"checked="checked" name="2"value="Overriding">Overriding <br>
<input type="radio"checked="checked" name="2"value="Pointers"> Pointers <br>
<input type="radio"checked="checked" name="2" value="MultipleInheritance"> Multiple Inheritance <br>
</form>
<h3>3) Strings injava are represented as _________ </h3><br>
<form action="">
<input type="radio" checked="checked"name="3" value="Primitivedata type"> Primitive data type<br>
<input type="radio"checked="checked" name="3" value="Referencedatatype"> Reference datatype<br>
<input type="radio"checked="checked" name="3" value="Native datatype"> Native data type<br>
<input type="radio"checked="checked" name="3"value="Operators">Operators<br>
</form>
<h3>4) The Statementsystem.out.println(6+3);will result in_________.</h3><br>
<form action="">
<input type="radio" checked="checked"name="4" value="63">63<br>
<input type="radio"checked="checked" name="4" value="6+3">6+3<br>
<input type="radio"checked="checked" name="4" value="3"> 3<br>
<input type="radio"checked="checked" name="4" value="Synetxerror">Synetx error <br>
</form>
<button>Check Result</button>
<button>Reset</button>
</body>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.