You are on page 1of 6

PirMehr Ali Shah

Arid Agriculture University, Rawalpindi


Office of the controller of Examinations
Final Exam (Practical)/ Spring 2021 (Paper Duration 12 hours)
To be filled by Teacher

Course No.: ….CS-566……………Course Title:…………….Web Technologies……………………………………………


Total Marks:……20……………………………Date of Exam:……09-07-2021……….………....................................
Degree: ………..BSIT……………………….Semester:……4…………………… Section:……….…….…………………………
Marks
Q.No. 1 2 3 4 5 6 7 8 9 10 Obtained/
TotalMarks
Marks
Obtaine
d
Total Marks in Words:
Name of the teacher:
Who taught the course:Signature of teacher / Examiner:

To be filled by Student

Registration No.: …19 arid 5281……….……… Name:adnan waheed……………………………………………..

Answer the following questions.

question#1
<html>

<head>

<title>Form</title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

</head>

<body>

<form action="a.php" method="GET">

NAME=

<input type="text" name="r">

Address=

<input type="text" name="n">

Gender=

<input type="text" name="d">


Qualification=

<input type="text" name="k">

<input type="submit" value="Submit">

</form>

</body>

</html>

<?php

$h=$_GET['r'];

$a=$_GET['n'];

$s=$_GET['d'];

$e=$_GET['k'];

echo "NAME ="."<br>".$h."<br>". "ADDRESS ="."<br>".$a."<br>". "GENDER ="."<br>".$s."<br>".


"Qualification ="."<br>".$e;

?>

output:
question#2
<html>
<head>
<title> WEB PAPER</title>
</head>
<script>
function verificationPassword() {
var pw = document.getElementById("pswd").value;
if (pw==='')
document.getElementById("message").innerHTML = "";
else if(pw.length < 6)
document.getElementById("message").innerHTML = "Password length must be
atleast 6 characters";
else if(pw.length > 6 && pw.length < 10)
document.getElementById("message").innerHTML = "Medium";
else
document.getElementById("message").innerHTML = "Strong";
}
</script>
<body>
<center style="margin-top: 200px;">
<h1 style="color:green">WEB PAPER</h1>
<h3> Password Validations</h3>
<form onsubmit ="verificationPassword()">
<td> Password </td>
<input type = "password" id = "pswd" placeholder="Enter password" value = ""
onkeyup="verificationPassword()">
<span id = "message" style="color:red"> </span> <br><br>
<input type = "submit" value = "Save">
<button type = "reset" value = "Clear" >Clear</button>
</form>
</center>
</body>
</html>
view-source:file:///C:/Users/Umair%20Gujjar/Downloads/index
%20(2).html

output

You might also like