-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquiz.jsp
More file actions
89 lines (88 loc) · 5.96 KB
/
quiz.jsp
File metadata and controls
89 lines (88 loc) · 5.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<%@include file="connect_db.jsp"%>
<%
%>
<html>
<head>
<title>
Web Tech Quiz
</title>
<style>
h3 { font: 30px bold Verdana;}
</style>
</head>
<body>
<form action="quiz_checker.jsp" method="post">
<div>
<h3>Q1. What is the full form of DTD ?</h3><br>
a)<input type="radio" name="q1" value="a">Document Type Definition<br>
b)<input type="radio" name="q1">Document Title Definition<br>
c)<input type="radio" name="q1">Document Type Description<br>
d)<input type="radio" name="q1">Descriptor Title Definition<br>
</div><hr>
<div>
<h3>Q2. Which of the following is an advantage of putting presentation information in a separate CSS file rather than in HTML itself?</h3><br>
a)<input type="radio" name="q2" value="a">The content becomes easy to manage<br>
b)<input type="radio" name="q2" value="b">Becomes easy to make site for different devices like mobile by making separate CSS files<br>
c)<input type="radio" name="q2" value="c">CSS Files are generally cached and therefore decrease server load and network traffic<br>
d)<input type="radio" name="q2" value="d"> All of the above<br>
</div><hr>
<div>
<h3>Q3. Which of the following is the correct HTML element to define emphasized text?</h3><br>
a)<input type="radio" name="q3" value="a"> <i> <br>
b)<input type="radio" name="q3" value="b"> <italic> <br>
c)<input type="radio" name="q3" value="c"> <em> <br>
d)<input type="radio" name="q3" value="d"> <emph> <br>
</div><hr>
<div>
<h3>Q4. Which one of the following is the correct way of adding Inline styles.</h3><br>
a)<input type="radio" name="q4" value="a"> <p style="font-size:16px;">Geeksforgeeks</p> <br>
b)<input type="radio" name="q4" value="b"> <p inline style="font-size:16px">Geeksforgeeks</p> <br>
c)<input type="radio" name="q4" value="c"> <p inline style="font-size 16px">Geeksforgeeks</p> <br>
d)<input type="radio" name="q4" value="d"> <p style="font-size 16px;"">Geeksforgeeks</p> <br>
</div><hr>
<div>
<h3>Q5. Which of the following is the correct way to add background color in HTML?</h3><br>
a)<input type="radio" name="q5" value="a"> <body color = "green"> <br>
b)<input type="radio" name="q5" value="b"> <body bg-color = "green"> <br>
c)<input type="radio" name="q5" value="c"> <body style = "background-color=green"> <br>
d)<input type="radio" name="q5" value="d"> <body style = "background-color: green;"><br>
</div><hr>
<div>
<h3>Q6. Which of the following is the correct CSS syntax?</h3><br>
a)<input type="radio" name="q6" value="a"> p:color=green, font-size=15px <br>
b)<input type="radio" name="q6" value="b"> {p:color=green, font-size=15px} <br>
c)<input type="radio" name="q6" value="c"> p {color:green, font-size:15px;} <br>
d)<input type="radio" name="q6" value="d"> p {color:green; font-size:15px;} <br>
</div><hr>
<div>
<h3>Q7. Which HTML tag is used for internal style sheet?</h3><br>
a)<input type="radio" name="q7" value="a"> Internal <br>
b)<input type="radio" name="q7" value="b"> Style <br>
c)<input type="radio" name="q7" value="c"> CSS <br>
d)<input type="radio" name="q7" value="d"> Internal Style <br>
</div><hr>
<div>
<h3>Q8. What does error 404 or Not Found error while accessing a URL mean? </h3><br>
a)<input type="radio" name="q8" value="a"> The server could not find the requested URL <br>
b)<input type="radio" name="q8" value="b"> Requested HTML file is not available <br>
c)<input type="radio" name="q8" value="c"> The path to the interpreter of the script is not valid <br>
d)<input type="radio" name="q8" value="d"> The requested HTML file does not have sufficient permissions <br>
</div><hr>
<div>
<h3>Q9. In a Javascript Application what function can be used to send messages to users requesting for an text input? </h3><br>
a)<input type="radio" name="q9" value="a"> Display() <br>
b)<input type="radio" name="q9" value="b"> Alert() <br>
c)<input type="radio" name="q9" value="c"> GetOutput() <br>
d)<input type="radio" name="q9" value="d"> Prompt() <br>
</div><hr>
<div>
<h3>Q10. Communication between browser and Web server takes place via </h3><br>
a)<input type="radio" name="q10" value="a"> GUI <br>
b)<input type="radio" name="q10" value="b"> HTTP <br>
c)<input type="radio" name="q10" value="c"> ASP <br>
d)<input type="radio" name="q10" value="d"> JSP <br>
</div><hr>
<center><input type="submit" value="Finish"></center>
</form>
</body>
</html>