Web Development Test 1
Q1. Write the short answer to each of the following questions: 2x37 = 74
a) What is HTML?
b) Define markup language?
c) Differentiate between XHTML and HTML?
d) List some limitations of HTML?
e) Which types of lists can be created in HTML?
f) What is the use of UL tag?
g) List different types of hyperlinks?
h) What are the most common uses of tables and why?
i) What are some benefits of using frames?
j) What are forms?
k) Define table, TR, TDAND TH tag?
l) Define <A> tag and HREF?
m) What is the default setting for scroll bar in a frame?
n) What is the difference between absolute path and relative path?
o) Are target names case sensitive?
p) What is definition list?
q) What is style sheet?
r) What is meant by scripting language?
s) What are different parts of CSS?
t) What is external style sheet?
u) What is inline style?
v) How font size is specified for text in CSS?
w) What is meant by document object model?
x) Define script
y) List some advantages of JavaScript
z) What is a variable?
aa) What is an expression?
bb) What is an assignment operator?
cc) What is nested-if statement?
dd) What is switch statement?
ee) What is string data?
ff) Why JavaScript is used for validation because it is a client-side language?
gg) List different types of loops in JavaScript?
hh) What is function? List its type.
ii) What is an event?
jj) What are two main sections of an HTML page?
kk) What are the difference between <BR> tag and <P> Tag?
Q2. Write HTML code that displays three hyperlinks to different websites. The websites should open
in a new window when the user clicks on the hyperlinks
Q3. What is list? Describe different types of lists
Q4. What is scripting language? Describe different types of scripting languages
Q5. Write CSS code that define five classes of paragraph with different background, color, margins,
padding and border style
Q6. What is operator? Explain different types of operators which are used in java script?
LONG QUESTIONS [10Marks each]
1. Justify the Common Gateway Interface (CGI) with neat Diagram
2. What is Servlet? Explain about Servlet API
3. a)What are the advantages of Servlets over CGI.
b)Explain Life Cycle of a Servlet.
4. Explain about Lifecycle of a Servlet with neat diagram
5. a)Distinguish between CGI and Servlets
b)Develop a Servlet that handles an HTTP POST request.
6. Develop a Servlet that handles an HTTP POST request.
7. What is JDBC.What are the various drivers of JDBC.
8. a)Distinguish between Get request and Post request type in Servlets.
b)Discuss about Session tracking in Servlets with a suitable example.
9. What is JDBC? How to connecting to a database using JDBC
10. Demonstrate the use of Cookies in Servlets with an example.
SHORT QUESTIONS[2Marks]:
1. Define JSP expression.
2.What are the directives in jsp with syntax?
3. What is the syntax of jsp?
4. Explain about Scriptlet Tag.
5. What are implicit objects in jsp?
6. Explain about the methods of getProperty() and setProperty().
7. What is jsp?
8. What are the Beans in jsp page.
9. What are the difference between JSP and HTML.
10. How are Cookies used for Session tracking in JSP.
LONG QUESTIONS[10Marks each]:
1. Justify the differences between servlets and jsp.
2. Explain about the jsp processing.
3. Explain about the different methods used for Session tracking
4. Explain the components of jsp.
5. Discuss about the code snippets in detail.
6. Explain about the anatomy of jsp.
7. Explain about the getProperty() and setProperty() of beans in jsp.
8. Explain about the JSP directive Elements.Explain each of them in detail.
9. How does Jdbc allows to access database through java
10. Explain about the JDBC Drivers.