Of course you can use JavaScript to do this for you. Though, I would suggest that you use a server side technology so that you can record this information in a database and as such...get the overall score.
Here is an example....first html
Code:
<form action="collect_scores.php" method="POST">
<p><input type="radio" name="question1" value="1">1<br>
<input type="radio" name="question1" value="2">2<br>
<input type="radio" name="question1" value="3">3<br>
<input type="radio" name="question1" value="4">4<br>
<input type="radio" name="question1" value="5">5<br>
<input type="radio" name="question1" value="6">6</p>
<p><input type="radio" name="question2" value="1">1<br>
<input type="radio" name="question2" value="2">2<br>
<input type="radio" name="question2" value="3">3<br>
<input type="radio" name="question2" value="4">4<br>
<input type="radio" name="question2" value="5">5<br>
<input type="radio" name="question2" value="6">6</p>
<input type="submit" value="Submit"/>
</form>
second the php
PHP Code:
<?php
$question1 = $_POST['question1'];
$question2 = $_POST['question2'];
$total = $question1 + $question2;
echo "Total Score: " . $total;
?>
By the way...you can also use Ajax..to this as well...with PHP, or other scripting language.
Good luck.
ess