Problem Statement: You are required to develop a dynamic web page for Self test
ID: 3611833 • Letter: P
Question
Problem Statement:
You are required to develop a dynamic web page for Self test ofJava using HTML and Servlet technology.
Requirements:
The user has to select one option for each MCQ and thenclick “Check Result” button.
When user clicks “Check Result” button thenServlet named “SelfTest.java” process HTML formdata, do some processing on that data and send the output of userresult back 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:_____
Explanation / Answer
<html>
<body>
<center>
<h1> Select One option for each MCQ</h1>
</center>
<h3>1) Java is started 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 in java arerepresented 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>
I hope this will helpful foryou............
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.