0% found this document useful (0 votes)
28 views47 pages

Web Technology

The document is a course-specific manual for KCS 602: Web Technology, outlining the syllabus, course description, and learning outcomes. It covers various topics including web development strategies, HTML, CSS, JavaScript, Java Database Connectivity (JDBC), Servlets, and JavaServer Pages (JSP). The manual also includes a detailed lecture plan and mapping of course outcomes with program outcomes and assessments.

Uploaded by

SACHIN VERMA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views47 pages

Web Technology

The document is a course-specific manual for KCS 602: Web Technology, outlining the syllabus, course description, and learning outcomes. It covers various topics including web development strategies, HTML, CSS, JavaScript, Java Database Connectivity (JDBC), Servlets, and JavaServer Pages (JSP). The manual also includes a detailed lecture plan and mapping of course outcomes with program outcomes and assessments.

Uploaded by

SACHIN VERMA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 47

OBE: Course Specific Manual for Subject KCS 602

KCS-602: WEB TECHNOLOGY


SYLLABUS

UNIT 1Introduction: Introduction and Web Development Strategies, History of Web and Internet, Protocols
governing Web, Writing Web Projects, Connecting to Internet, Introduction to Internet services and tools,
Introduction to client-server computing. Core Java: Introduction, Operator, Data type, Variable, Arrays, Methods
& Classes, Inheritance, Package and Interface, Exception Handling, Multithread programming, I/O, Java Applet,
String handling, Event handling, Introduction to AWT, AWT controls, Layout managers

Unit 2Web Page Designing: HTML: list, table, images, frames, forms, CSS, Document type definition, XML:
DTD, XML schemes, Object Models, presenting and using XML, Using XML Processors: DOM and SAX,
Dynamic HTML

Unit 3Scripting: Java script: Introduction, documents, forms, statements, functions, objects; introduction to
AJAX
Networking: Internet Addressing, Inet Address, Factory Methods, Instance Methods, TCP/IP Client Sockets,
URL, URL Connection, TCP/IP Server Sockets, Datagrams.

Unit 4 Enterprise Java Bean: Preparing a Class to be a JavaBeans, Creating a JavaBeans, JavaBeans Properties,
Types of beans, State full Session bean, Stateless Session bean, Entity bean
Java Database Connectivity (JDBC): Merging Data from Multiple Tables: Joining, Manipulating, Databases
with JDBC, Prepared Statements, Transaction Processing, Stored Procedures.

Unit 5 Servlets: Servlet Overview and Architecture, Interface Servlet and the Servlet Life Cycle, Handling HTTP
get Requests, Handling HTTP post Requests, Redirecting Requests to Other Resources, Session Tracking,
Cookies, Session Tracking with Http Session
JavaServerPages (JSP): Introduction, JavaServerPages Overview, A First JavaServerPages Example, Implicit
Objects, Scripting, Standard Actions, Directives, Custom Tag Libraries.

KCS-602: WEB TECHNOLOGY

Semester/ Computer Science & Engineering


VI/ 2021-22 Class
Session VI Semester
Course Code KCS 602 Course Title Web Technology
Hours 32 (As Prescribed by
Hours per week 3(Lecture) + 1(Tutorial) = 4
AKTU)
Faculty Name Er. Neha Sharma Contact details [email protected]
Course In this course you will learn about the HTTP communication protocol, the markup
Description languages HTML, XHTML and XML, the CSS and XSLT standards for formatting
and transforming web content, interactive graphics and multimedia content on the
web, client-side programming using JavaScript.

Course Outcome & Bloom’s Taxonomy


The students will be able to Blooms
Taxonomy
CO1 Explain web development Strategies and Protocols governing Web. K2
CO2 Develop Java programs for window/web-based applications. K3
CO3 Design web pages using HTML, XML, CSS and JavaScript K3
CO4 Creation of client-server environment using socket programming K2
CO5 Building enterprise level applications and manipulate web databases using JDBC K4
CO6 Design interactive web applications using Servlets and JSP K3

Relationship among the Course Outcomes (CO s), Program Outcomes (PO s) & Program
Specific Outcome (PSO s)
CO – PO -PSO Mapping
Course P PS PS PS
PO PO PO PO PO PO PO PO PO1 PO1 PO1
Outcom O O O O
2 3 4 5 6 7 8 9 0 1 2
e 1 01 02 03
CO 1 2 3 1 1 - 1 - 1 - 1 - - 1 1 2

CO 2 2 3 2 1 2 1 1 - - - 2 - 1 2 2

CO 3 2 3 3 2 2 1 1 - - - 3 - 1 2 2

CO 4 2 1 3 2 3 1 - - - - 3 - - 2 -

CO 5 2 2 3 2 3 1 - - - - 3 - 1 2 1

CO 6 1 2 2 1 3 1 - - - - 3 - 1 1 1
1. 2.3 2.3 1.5 2.1 1.0 0.3 0.1 0 0.16 2.3 0 0.8 1.6 1.3
Average 8 3 6 3 6

Entered correlation levels 1, 2 or 3 as defined below:


1: Slight (Low), 2: Moderate (Medium), 3: Substantial (High), No correlation: “-”

Relationship between the Course Outcomes (CO s) & Continuous Internal Assessment (CIA)
CO – CIA Mapping

Course Outcome Components Of Outcome


CIA CIA CIA CIA CIA CIA CI
I II III IV V VI A
VI
I
CO1: Explain web development Strategies and Protocols Yes Ye
Yes Yes Yes Yes Yes
governing Web. s
CO2: Develop Java programs for window/web-based Yes Ye
Yes Yes Yes Yes
applications. s
CO3: Design web pages using HTML, XML, CSS and Yes Ye
Yes Yes Yes Yes
JavaScript s
CO4: Creation of client-server environment using socket Yes Ye
Yes Yes Yes
programming s
CO5:Building enterprise level applications and manipulate Yes Ye
Yes Yes Yes
web databases using JDBC s
CO6: Design interactive web applications using Servlets Yes Ye
Yes Yes Yes
and JSP s
Relationship between the Course Outcome (CO’S) & Comprehensive External Assessment (CEA)
CO - CEA Mapping

Components of Assessment
Course Outcomes CEA CEA CEA CEA CEA
I II III IV V
CO1: Explain web development Strategies and Protocols Yes
governing Web.
CO2: Develop Java programs for window/web-based Yes
applications.
CO3: Design web pages using HTML, XML, CSS and Yes
JavaScript
CO4: Creation of client-server environment using socket Yes
programming
CO5:Building enterprise level applications and manipulate web Yes
databases using JDBC
CO6: Design interactive web applications using Servlets and Yes
JSP

Activity :( Seminar on Topic- PL/SQL)


ALO Bloom’s
ACTIVITY LEARNING
OUTCOMES Taxonomy
ALO1 Awareness and comprehension of latest development and practical Understand (K2)
aspects of concepts, topics and subjects.
Understand (K2)
ALO2 Magnify inquisitiveness about prevailing and prospective corporate
Analyze (K4)
issues
Develop and nurture professional knowledge, attitude and skills to Apply (K3)
ALO3
provide relevant and cost effective solution the real life and
industrial issue.
Able to build relationship and networking with important Evaluate(K5),
ALO4
stakeholders Create (K6)
Analyze (K4)
ALO5 Improved communication skills and critical thinking
Evaluate(K5)

MAPPING OF ACTIVITY LEARING OUT COMES (ALO) WITH COURSE OUTCOME


(CO’S) OF KCS - 501

ALO CO1 CO2 CO3 CO4 CO5


ALO 1 1 1 1 1 1
ALO 2 - 1 1 1 1
ALO 3 2 2 1 1 2
ALO 4 - - - - -
ALO 5 1 1 1 1 1
Entered correlation levels 1, 2 or 3 as defined below:
1: Slight (Low), 2: Moderate (Medium), 3: Substantial (High) , No correlation: “-”

MAPPING OFACTIVITY LEARING OUT COMES (ALO) WITHPROGRAMME SPECIFIC


OUTCOME (PSO’S) AND PROGRAM OUTCOMES of (KCS-501)

AL PROGRAMME
SPECIFIC
PROGRAMME OUTCOME(PO’S)
OUTCOME(PSO’S
)
PO PO PO PO PO PO PO PO PO PO PO PO PSO PSO2 PSO3
1 2 3 4 5 6 7 8 9 10 11 12 1
AL
1 1 1 1 3 - - - - - 1 1 1 1 1
O1
AL
- - 1 - 1 - 1 - 1 - 1 - - - 1
O2
AL
1 1 1 1 1 - - - - - - - 1 2 -
O3
AL
1 - - - - - 1 - 1 - 1 - - - 2
O4
AL
1 1 1 - - - - - - 3 - - - 1 -
O5

Entered correlation levels 1, 2 or 3 as defined below:


1: Slight (Low), 2: Moderate (Medium), 3: Substantial (High) , No correlation: “-“

LECTURE PLAN
WEB TECHNOLOGY
S.
UNIT CONTENT HRS Text book/ Reference book
No.
I Introduction and web 1 C-Xavier Page No:2-5
development strategies , History
of Web and Internet,
1 Introduction to Protocols that
Governing web.

Writing Web Projects, 1 C-Xavier Page No:9-10


2 Connecting to Internet

3 Introduction to Internet services 1 Jessica Burdman “Collaborative Web


and tools Development” Page No:6-7
Introduction to client-server 1 Jessica Burdman “Collaborative Web
4 computing Development” Page No:8-10

Core Java : Introduction, 1 Complete Reference JAVA Page No:3-57


5
Operator, Data type, Variable
Arrays , Methods & Classes, 1 Complete Reference JAVA Page No: 125-
6 Inheritance, Package and 157
Interface
Exception Handling, 1 Complete Reference JAVA Page No: 205-
7 223
Multithread programming, I/O

Java Applet, String handling, 1 Complete Reference JAVA Page No: 255-
8 285
Event handling
HTML: List, Table, Images 1 Xavier, C Page No:27
9

Frames, forms 1 Xavier, C Page No: 34,40


10

CSS 1 Programming theworld wide web, Robert W.


11 Sebestal Page No:113-118
Document type definition 1 Programming theworld wide web, Robert W.
12 Sebestal Page No:283,290

XML: DTD, XML schemes 1 Programming theworld wide web, Robert W.


II 13 Sebesta Page No: 299

Object Models, presenting and 1 Web Programming, Chris Bates Page No:
using XML 135
14

Using XML Processors: DOM 1 Programming theworld wide web, Robert W.


and SAX Sebestal Page No: 151
15

Dynamic HTML 1 Programming theworld wide web, Robert W.


16 Sebestal Page No:180

III Java script: Introduction, 1 Xavier, C, “ Web Technology and Design” ,


17 documents New Age International Page No: 58-59

1 Xavier, C, “ Web Technology and Design” ,


18 forms, statements, functions New Age International Page No:160-190
1 Ivan Bayross,” HTML, DHTML, Java
Objects; Introduction to
19 Script, Perl & CGI”, BPB Publication Page
AJAX
No: 139-142
20 Internet Addressing, Inet 1 Programming theworld wide web, Robert W.
Address Sebestal Page No:409-439

Factory Methods, Instance 1 Herbert Schieldt, “The Complete


Methods Reference:Java”, TMH Page No: 603-605
21

TCP/IP Client Sockets 1 Herbert Schieldt, “The Complete


Reference:Java”, TMH Page No: 607-610
22

URL, URL Connection 1 Herbert Schieldt, “The Complete


23 Reference:Java”, TMH Page No: 610-612

TCP/IP Server Sockets, 1 Herbert Schieldt, “The Complete


Datagram. Reference:Java”, TMH Page No: 613-615
24

Preparing a Class to be a 1
JavaBeans, Creating a JavaBeans Herbert Schieldt, “The Complete
25
Reference:Java”, TMH Page No: 847
JavaBeans Properties,Types of 1
beans Herbert Schieldt, “The Complete
26
Reference:Java”, TMH Page No: 848
Stateful Session bean, Stateless 1
Session bean Herbert Schieldt, “The Complete
27
Reference:Java”, TMH Page No: 850-855

1 Herbert Schieldt, “The Complete


28 Entity bean
IV Reference:Java”, TMH Page No:855-860
Merging Data from Multiple 1
Tables: Joining, Manipulating Hans Bergsten, “Java Server Pages”, SPD
29
O’Reilly Page No: 517
Databases with JDBC 1 Herbert Schieldt, “The Complete
30
Reference:Java”, TMH Page No: 520-522
Prepared Statements, Transaction 1
Processing Herbert Schieldt, “The Complete
31
Reference:Java”, TMH Page No: 526-529
Stored Procedures 1 Herbert Schieldt, “The Complete
32
Reference:Java”, TMH Page No: 530-531
V Servlet Overview and 1 Hans Bergsten, “Java Server Pages”, SPD
33
Architecture O’Reilly Page No: 19-20
Interface Servlet and the Hans Bergsten, “Java Server Pages”, SPD
34 O’Reilly Page No: 21-22
Servlet Life Cycle
35 Handling HTTP get 1 Hans Bergsten, “Java Server Pages”, SPD
Requests, Handling HTTP
post Requests O’Reilly Page No: 11-12
Redirecting Requests to Other 1 Hans Bergsten, “Java Server Pages”, SPD
36 Resources, Session Tracking O’Reilly Page No: 134

Cookies, Session Tracking with 1 Hans Bergsten, “Java Server Pages”, SPD
Http Session O’Reilly Page No: 3-4
37
Pages Overview
Introduction, Java Server Pages 1 Hans Bergsten, “Java Server Pages”, SPD
Overview, A First Java Server O’Reilly Page No: 51
38 Page Example

Implicit Objects, Scripting, 1 Hans Bergsten, “Java Server Pages”, SPD


Standard Actions O’Reilly Page No: 291-293
39

Directives, Custom Tag Libraries 1 Hans Bergsten, “Java Server Pages”, SPD
40 O’Reilly Page No: 391-401

TOTAL HOURS 40

RESOURCES

Text books:

1. Burdman, Jessica, “Collaborative Web Development” Addison Wesley


2. Xavier, C, “ Web Technology and Design” , New Age International
3. Ivan Bayross,” HTML, DHTML, Java Script, Perl & CGI”, BPB Publication
4 Herbert Schieldt, “The Complete Reference: Java”, McGraw Hill.
5. Hans Bergsten, “Java Server Pages”, SPD O’Reilly
6. Balagurusamy E, “Programming in JAVA”, McGraw Hill.

Reference Books:
1. Margaret Levine Young, “The Complete Reference Internet”, McGraw Hill.
2. Naughton, Schildt, “The Complete Reference JAVA2”, McGraw Hill.
3. Bhave, “Programming with Java”, Pearson Education
Tutorial #01 [UNIT 1]
Topic: Web Development
ROLL NO. ; All Students
Q. No. QUESTION Marks CO PI BL
1 What do you mean by a protocol? Name three protocols that
govern the web and Explain about them. 10 03 6.2.1 K2

2 What are the differences between developing a site for a


corporate world and developing a site for an individual?
10 03 6.2.1 K1
Explain the following terms: FTP, HTTP, PORTAL, SMTP,
and SNMP.
3 State the requirements of Cyber Laws? Describe Indian
cyber law. 10 03 8.1.1 K2

4 Who governs internet? Write difference between internet and


intranet. How does a client build the communication to a 10 03 6.1.1 K4
website?
5 What are the impacts on Web team of technological
advances? Differentiate between XML and WML. What is 02,
10 7.1.2 K4
Gopher? Explain telnet. 03

Tutorial #02 [UNIT 1]


Topic: Web Development
ROLL NO. ; All Students
Q. QUESTION
Marks CO PI BL
NO.
1 Define Web Site Objective. Name the different
communication techniques used with their advantages and
10 04 10.1.1 K2
disadvantages

2 What is HTML? Explain its purpose .Write the name of any


five important HTML tags and their syntax.
10 02 3.2.1 K3

3 Discuss the main issues considered while developing a multi-


departmental large scale sites.
10 01 3.1.1 K2

4 Write a program of exception handling in Java.


10 03 2.1.2 K3

5 What is the importance of early planning while designing a 10 03 3.3.1 K4


website?

Tutorial #03 [UNIT 2]


Topic : Java Script
ROLL NO. ; All Students
Q. QUESTION Marks CO PI BL
NO.
1 Describe the XML in detail .Give its advantages and
disadvantages. 10 02 3.4.1 K2

2 Explain the need for XML in details? What is EDI? How


does it work? 10 02 2.4.4 K2

3 Explain the strengths of XML technology? What are the


DTDs? How do they work? 10 02 2.3.1 K3

4 Write a small program in JavaScript that takes an integer


value and returns the number with its digits reversed. For
example, given the number 7631, the method should return 10 03 2.1.3 K3
1367.

5 Elaborate on the practical situations where we would use


either SAX or DOM.
10 02 2.1.3 K4

Tutorial #04 [UNIT 2]


Topic : XML
ROLL NO. ; All Students
Q. QUESTION Marks CO PI BL
NO.
1 Explain DOM. Define object in Java Script.
10 02 2.1.3 K2

2 Why Java is known as machine independent language. Write


the difference between HTML and DHTML 10 02 3.4.2 K2

3 Explain the differences between external and internal DTDs?


What are the XML schemas? How are they better than
10 02 3.2.1 K2
DTDs?

4 Explain the XSLT technology with an example? Contrast


between SAX and DOM?
10 02 3.2.1 K2

5 Can JavaScript be in a separate file? Give details? What are 10 02 3.2.1 K3


the key usages of JavaScript?

Tutorial #05 [UNIT 3]


Topic: AJAX
ROLL NO. ; All Students
Q. QUESTION Marks CO PI BL
NO.
1 What is the difference between Java & Java Script? Describe
the strength & weakness of Java Script? (AKTU) 10 03 4.3.1 K2

2 List the advantages and disadvantages of AJAX?


10 03 4.3.1 K1

3 What are the differences between AJAX and JavaScript?


10 03 2.1.3 K4

4 What are all the controls of Ajax? How many types of


triggers are present in update panel? 10 03 2.1.3 K2

5 What are the goals of Ajax? What are the limitations of


Ajax?
10 03 2.1.3 K2

Tutorial #06 [UNIT 3]


Topic : Java beans
ROLL NO. ; All Students
Q. QUESTION Marks CO PI BL
NO.
1 Differentiate between Java beans & EJB.
10 03 2.1.3 K4

2 How do you ensure the security of a website at the server


side? 10 03 4.1.2 K2

3 What is the life-cycle of a servlet? What are the life-cycle


methods for a servlet?
10 03 2.1.3 K3

4 What is difference between Get and Post method? Can you


call a jsp from the servlet?
10 03 2.1.3 K3

5 Differentiate between forward () method and sendRedirect () 10 03 2.1.3 K4


method? What is Session Tracking?
Tutorial #07 [UNIT 4]
Topic: Java Database Connectivity
ROLL NO. ; All Students
Q. QUESTION Marks CO PI BL
NO.
1 What are the different types of Validation controls in
ASP.NET? 10 04 2.1.3 K2

2 Explain and Difference between “include Directive” and


“include Action” of JSP
10 04 2.1.3 K2

3 What are stored procedures? How is it useful?


10 04 2.1.3 K2

4 How do include static files within a JSP page?


10 04 3.4.1 K2

5 Explain how running Tomcat as a windows service provides


benefits?
10 04 2.1.3 K2

Tutorial #08 [UNIT 4]


Topic :Enterprise java beans
ROLL NO. ; All Students
Q. QUESTION Marks CO PI BL
NO.
1 What cause “no suitable driver” error in JDBC connectivity?
10 04 3.3.1 K2

2 What is Union, minus and Interact commands?


10 04 3.3.1 K2

3 What do you mean by EJB architecture?


10 04 4.1.1 K2

4 Which technologies can be used at View Layer in Struts?


10 04 4.1.1 K4
5 Which library is provided by Struts for form elements like
check boxes, text boxes etc.?
10 04 4.1.1 K5

Tutorial #09 [UNIT 5]


Topic: Servlet
ROLL NO. ; All Students
Q. QUESTION Marks CO PI BL
NO.
1 What do you mean by servlet?
10 05 2.2.2 K3

2
Explain the architecture of servlet. 10 05 2.1.3 K2

3
What is the difference between Notify URL and Return URL? 10 05 2.1.3 K4

4
Explain the difference between $message and $$message? 10 05 2.1.3 K2

5 What are the various methods to pass data from one web page to
another web page? 10 05 2.2.2 K2

Tutorial #10 [UNIT 5]


Topic: Java Server Pages
ROLL NO. ; All Students
Q. QUESTION Marks CO PI BL
NO.
1 What is COM/ DCOM? Describe importance of COM/DCOM
in making commercial Website.
10 06 2.2.2 K2

2
How we change the default port number of Tomcat Container? 10 06 3.4.1 K2

3
Explain JSP is an extension of Servlet.
10 06 2.1.3 K2

4
What problems of Servlet technology can JSP is supposed to
10 06 2.1.3 K2
solve?
5 How Servlet lifecycle is different from JSP lifecycle? 10 06 3.4.1 K2

Assignment No. # 01
ROLL NO. ; All Students
Q. No. QUESTION Marks CO PI BL
1 Explain the strategies for the development of website. 10 1 3.4.2 K2

2 What are the different types of CSS? Explain with suitable 10 1 3.2.1 K3
examples.
3 Explain about static and dynamic HTML. Differentiate 10 2 3.1.6 K3
between SAX and DOM Model.

4 What do you mean by SQL Schema? Discuss about frames .10 2 3.4.1 K3
in HTML.

5 Write a program in java for method overloading and method 10 3 3.4.1 K3


overriding.

6 Write a program of multiple inheritance in java. 10 3 3.4.1 K3

7 Discuss with diagram about client server computing. 10 4 4.1.2 K3

8 Discuss about various protocols governing web. 10 4 8.1.1 K3

9 Discuss about stateless and stateful session beans. 10 5 3.4.1 K3

10 Discuss about session tracking with Http session. 10 5 3.4.1 K3

Assignment No. # 02
ROLL NO. ; All Students
Q. No. QUESTION Marks CO PI BL
1 Explain about the history of web and internet. 10 1 3.4.2 K3
2 What are the different steps of connecting to the internet? 10 1 3.4.2 K3
3 Explain about AWT and AWT Layout. 10 2 3.2.1 K3
4 Discuss about string handling in Applet. 10 2 3.2.1 K3
5 Write a program using final and Super keywords in java. 10 3 3.4.1 K3
6 Write a program for exception handling in java. 10 3 3.4.1 K3
7 Explain about transaction processing in JDBC. 10 4 3.2.1 K3
8 What do you mean by JDBC? Discuss about prepared 10 4 3.2.1 K3
statement in JDBC.
9 Explain about request dispatcher and custom tag libraries. 10 5 2.1.3 K2
10 Discuss about session tracking with Http session. 10 5 2.1.3 K3

Question Bank # 01 [UNIT 1]


ROLL NO. ; All Students

Q. No. QUESTION BL CO
1 Discuss about various protocol governing web. K2 4
2 What do you mean by client server computing? K2 4
3 Discuss about package in java. K2 3
4 Explain about AWT and AWT Layout. K2 2
5 Explain event handling in java. K2 3
6 Discuss the uses of Super keyword in java. K2 3
7 Write a program of multiple inheritance in java. K2 3

8 Discuss about string handling in Applet. K2 2

9 Differentiated between method overloading and method overriding. K2 3

10 Explain the strategies for the development of website K2 1

Question Bank # 02 [UNIT 2]

ROLL NO. ; All Students


Q. No. QUESTION BL CO
1 What is HTML? K1 3
2 Discuss about CSS. K2 3
3 What are the types of DTD? K1 3
4 Differentiate between SAX and DOM. K2 4
5 Explain about dynamic XML. K2 4
6 What do you mean by XML Schema? K1 4

7 Explain about dynamic HTML. K2 3

8 Discuss about frames in HTML. K3 3

9 Explain the types of CSS. K2 4


10 Write a program to create HTML form. K3 3

Question Bank # 03 [UNIT 3]


ROLL NO. ; All Students
Q. No. QUESTION BL CO
1 Discuss about basic features of java script. K2 3
2 What is AJAX? K1 3
3 What do you mean by inet address? K1 3
4 Discuss about TCP/IP client socket K2 4
5 What do you mean by datagram? K1 4
6 Explain about URL Connection. K2 4

7 What do you mean by factory method? K1 3

8 What do you mean by instance method? K1 3

9 Differentiate between TCP/IP client socket and TCP/IP server socket. K3 4

10 Write a program in JavaScript to find the maximum number among five numbers. K3 3

Question Bank # 04 [UNIT 4]

ROLL NO. ; All Students


Q. No. QUESTION BL CO
1 What do you mean by java Beans? K1 5
2 What is stateless and stateful session beans? K1 5
3 What do you mean by JDBC? K1 4
4 Discuss about prepared statement. K3 4
5 What is stored procedure? K1 4
6 Explain about transaction processing in JDBC. K2 4

7 Discuss about the types of beans. K2 4

8 What do you mean by database driver? Explain each type. K3 4


9 What is the role of introspection in java bean? K1 4

10 Explain the steps to get any value in java bean. K2 4

Question Bank # 05 [UNIT 5]


ROLL NO. ; All Students
Q. No. QUESTION BL CO
1 Discuss about servlet Architecture. K2 5

2 What is servlet life cycle? K1 5


3 Differentiate between cookies and session. K2 5
4 What is JSP? K1 5
5 What is implicit object scripting? K1 5
6 Explain Request Dispatcher. K2 5

7 What do you mean by implicit object? K1 5

8 Explain about custom tag libraries. K1 5

9 Discuss about session tracking with Http session. K2 5

10 Differentiate between http get requests and http post requests K3 5

Model Question Paper I


WEB TECHNOLOGY
KCS - 602
MAX MARKS: 100 TIME: 3 HRS.
Assume data suitably, if missing any.
[Section A]
Q.1 Attempt all questions from the following.
Q.No. Questions MARKS CO BL
A How is object created in Java? 02 03 K3
B Compare between JDK, JRE and JVM. 02 03 K4
C Differentiate between HTML and XML. 02 01,02 K3
D Write a program with external style sheet with CSS. 02 01,02 K3
E Compare between Internet and WWW. 02 04 K4
F How HTTPS is different from HTTP? 02 04 K3
G Difference between JDBC and ODBC. 02 06 K3
H What are JAR and Manifest files? 02 06 K2
I Compare doGet() and doPost() method. 02 06 K3
J Write Difference JSP and Servlet. 02 06 K3

[Section B]
Q.2 Attempt any three from following.
Q.No. Questions MARKS CO BL
A How Exception handled in java? Differentiate between throw and K3
throws. 10 03

B Explain the HTML tags for Tables, Frames, and Forms with the help 01,0 K2
of Suitable example. 10
2
C What is the need for dynamic webpage? What are the advantages K2
and issue involved in dynamic web page? 10 03

D Write down the steps to connect database with web application K3


using JDBC. 10 06

E Explain Request Dispatcher. Also Describe different ways to get the K3


object of request dispatcher. 10 06

[Section C]
Q.3 Attempt any one from each question.
Q.No. Questions MAR C BL
KS O
A What do you understand by web technology? Prove the name of K3
10 04
protocols which help in web and explain working of that protocol.
B What is Inheritance? List out various type Inheritance with example 10 03 K1

Q.4 Attempt any one from each question.


Q.No. Questions MA CO BL
RKS
A Write the HTML code to design a registration form. (Assume fields are K3
10 02
as per your actual registration form in B.Tech.)
B Describe the Document type Definition (DTD) in XML. What is K2
10 02
difference between Internal and External DTD.

Q.5 Attempt any one from each question.


Q.No. Questions MA CO BL
RKS
A Compare Java and JavaScript? Write a JavaScript program to find K3
10 03
largest among five numbers.
B Explain the concept of URL and IP address. How is an IP Address K3
10 04
assigned to host?

Q.6 Attempt any one from each question.


Q.No. Questions MA CO BL
RKS
A Describe JDBC application architecture. List out the various type of K2
10 06
JDBC drivers.
B Discuss EJB and its architecture. Differentiate Stateful and Stateless K3
10 05
EJB.
Q.7 Attempt any one from each question.
Q.No. Questions MA CO BL
RKS
A Explain Servlets with its Life Cycle. How its lifecycle is different from the K3
10 06
life cycle of JSP? Explain with an example
B JSP is an extension of Servlets not replacement. Justify? What problems of K4
10 06
Servlets technology can JSP is supposed to solve?

Model Question Paper II


WEB TECHNOLOGY
KCS - 602
MAX MARKS: 100 TIME: 3 HRS.
Assume data suitably, if missing any.
[Section A]
Q.1 Attempt all questions from the following.
Q.No. Questions MARKS CO BL
A Compare doGet() and doPost() method? 02 06 K4
B Compare between JDK, JRE and JVM? 02 03 K4
C Differentiate between HTML and DHTML. 02 01,02 K3
D Write a program with internal style sheet with CSS. 02 01,02 K3
E Compare between Internet and WWW? 02 04 K4
F What is the role of HTTP when data is transfer over the internet? 02 04 K2
G Difference between Java and JavaScript? 02 03 K3
H What are JAR and Manifest files? 02 06 K2
I Explain about AJAX. 02 03 K3
J Write the Difference between JSP and Servlet. 02 06 K3

[Section B]
Q.2 Attempt any three from following.
Q.No. Questions MARKS CO BL
A What is Exception Java? Explain try and catch, throw and finally K2
keywords in Java. 10 03

B Write down the HTML tags for Tables, Frames, and Forms with the 01,0 K3
help of Suitable example. 10
2
C Discuss is the need for dynamic webpage? What are the advantages K2
and issue involved in dynamic web page? 10 03

D Write down the steps to connect database with web application K3


using JDBC. 10 06

E Discuss Request Dispatcher. Also Describe different ways to get the K2


object of request dispatcher. 10 06

[Section C]
Q.3 Attempt any one from each question.
Q.No. Questions MAR C BL
KS O
A Explain the term web technology? Prove the name of protocols K2
10 04
which help in web and explain working of that protocol.
B Define Inheritance. List out various type Inheritance with example 10 03 K1

Q.4 Attempt any one from each question.


Q.No. Questions MA CO BL
RKS
A Write the HTML code to design a front end of a college website. K4
10 02
(Assume fields are as per your actual registration form in B.Tech.)
B Explain the term Document type Definition (DTD) in XML. What is K2
10 02
difference between Internal and External DTD.

Q.5 Attempt any one from each question.


Q.No. Questions MA CO BL
RKS
A Compare HTML and XML? Write a JavaScript program to find K4
10 03
largest among five numbers.
B Explain the concept of URL and IP address. How is an IP Address K3
10 04
assigned to host?

Q.6 Attempt any one from each question.


Q.No. Questions MA CO BL
RKS
A Describe JDBC application architecture. List out the various type of K3
10 06
JDBC drivers.
B Discuss EJB and its architecture. Differentiate Stateful and Stateless K3
10 05
EJB.

Q.7 Attempt any one from each question.


Q.No. Questions MA CO BL
RKS
A Discuss Servlets with its Life Cycle. How its lifecycle is different from the K3
10 06
life cycle of JSP? Explain with an example
B State and explain JSP is an extension of Servlets not replacement? What K3
10 06
problems of Servlets technology can JSP is supposed to solve?
BTECH
(SEM VI) THEORY EXAMINATION 2021-22
WEB TECHNOLOGY (KIT-052)

Time: 3 Hours Total Marks: 100


Note: 1. Attempt all Sections. If require any missing data; then choose suitably.

SECTION A

1. Attempt all questions in brief. 2 x 10 = 20


a. What is Domain Name System (DNS)?
b. Discuss various web project development phases.
c. What are the differences between IP packet & Datagrams?
d. Write HTML code for inserting image on a web page.
e. Name two major protocols for accessing email from servers.
f. Define Document Object Model (DOM).
g. What is the concept behind client-server computing?
h. Expand the term AWT. For what purpose it is being used?
i. What do you understand by session tracking
j. What is implicit object in JSP?

SECTION B

2. Attempt any three of the following: 10 x 3 = 30


a. Design HTML form for student registration with submit and reset button on it
b. Explain CSS and its types with example.
c. Explain java script function and write a program to make a calculator
using java script.
d. What are XML Parsers? Explain the types of parsers with their
advantages and disadvantages.
e. What are the advantages and drawback of an applet? Write a java
program to create an applet and perform event handling on it.

SECTION C
3. Attempt any one part of the following: 10 x 1 = 10
(a) Create an HTML page named as “table.html” to display your class time table.
(b) Explain Enterprise Java Bean in detail and explain its types. Create a
message driven java bean.
4. Attempt any one part of the following: 10 x 1 = 10
(a) What is JDBC? Explain the driver used in JDBC. Write JDBC
program to insert and display the record of employees using prepared
statement.
(b) Explain string handling and event handling in java.
5. Attempt any one part of the following: 10 x 1 = 10
(a) What is the difference between Session and Cookies? Write a servlet
program for servlet login and logout using cookies.
(b) What is XML? Create a XML document of 10 students of third year
CSE. Add their roll number, marks obtained in 5 subjects, total marks
and percentage.
6. Attempt any one part of the following: 10 x 1 = 10
(a) Discuss Servlet and its life cycle in detail. How do you create a servlet?
(b) Explain JSP Architecture and explain the JSP Processing in detail.
7. Attempt any one part of the following: 10 x 1 = 10
(a) Explain Internet Addressing. How will you identify IP Class?
(b) How exceptions are handled in java? Explain in detail with examples.

ONLINE QUIZ -1
UNIT-1
S.NO QUESTIONS MARK CO PI B
. S COD L
E

1 Which one of 1 CO K
the following is 1
not a Java
feature?
a) Object-
oriented
b) Use of
pointers
c) Portable
d) Dynamic and
Extensible
Answer: b
2 Which of these 1 CO K
cannot be used for 1 1
a variable name in
Java?
a) identifier &
keyword
b) identifier
c) keyword
d) none of the
mentioned
Answer: c
3 What is the 1 CO K
extension of java 1 2
code files?
a) .js
b) .txt
c) .class
d) .java
Answer: d
4 What will be the output 1 CO K
of the following Java 1 2
code?

1. class
increment {
2. public
static void
main(String
args[])
3. {
4. int
g = 3;
5.
System.out.print
(++g * 8);
6. }
7. }
a) 32
b) 33
c) 24
d) 25

Answer: a
5 Which environment 1 CO K
variable is used to 1 1
set the java path?
a) MAVEN_Path
b) JavaPATH
c) JAVA
d) JAVA_HOME
Answer: d
6. Which of the 1 CO K
following is not an 1 1
OOPS concept in
Java?
a) Polymorphism
b) Inheritance
c) Compilation
d) Encapsulation
Answer: c
7 What is not the 1 CO K
use of “this” 1 2
keyword in Java?
a) Referring to the
instance variable
when a local
variable has the
same name
b) Passing itself to
the method of the
same class
c) Passing itself to
another method
d) Calling another
constructor in
constructor
chaining
Answer: b
8 What will be the error in 1 CO K
the following Java code? 1 2

byte b = 50;
b = b * 50;
a) b cannot contain value
50
b) b cannot contain value
100, limited by its range
c) No error in this code
d) * operator has
converted b * 50 into int,
which can not be
converted to byte
without casting

Answer : d
9 Which of the 1 CO K
following is a type 1 1
of polymorphism in
Java Programming?
a) Multiple
polymorphism
b) Compile time
polymorphism
c) Multilevel
polymorphism
d) Execution time
polymorphism
Answer : b
10 What is Truncation 10 CO K
in Java? 1 2
a) Floating-point
value assigned to a
Floating type
b) Floating-point
value assigned to
an integer type
c) Integer value
assigned to
floating type
d) Integer value
assigned to
floating type
Answer : b

ONLINE QUIZ -2
UNIT-1
S.N QUESTIONS MAR C PI B
O. KS O CO L
DE

1 What is the extension 1 C K


of compiled java O1 2
classes?
a) .txt
b) .js
c) .class
d) .java
Answer : c
2 Which exception is 1 C K
thrown when java is out O1 1
of memory?
a) MemoryError
b) OutOfMemoryError
c)
MemoryOutOfBoundsEx
ception
d) MemoryFullException
Answer : b
3 Which of these are 1 C K
selection statements in O1 1
Java?
a) break
b) continue
c) for()
d) if()
Answer : d
4 Which of these 1 C K
keywords is used to O1 1
define interfaces in
Java?
a) intf
b) Intf
c) interface
d) Interface
Answer : c
5 Which of the following 1 C K
is a superclass of every O1 2
class in Java?
a) ArrayList
b) Abstract class
c) Object class
d) String
Answer c
6. Which of the below is 1 C K
not a Java Profiler? O1 1
a) JProfiler
b) Eclipse Profiler
c) JVM
d) JConsole
Answer: c
7 Which of these 1 C K
packages contains the O1 2
exception Stack
Overflow in Java?
a) java.io
b) java.system
c) java.lang
d) java.util
Answer : c
8 Which of these 1 C K
keywords are used for O1 1
the block to be
examined for
exceptions?
a) check
b) throw
c) catch
d) try
Answer : d
9 Which one of the 1 C K
following is not an O1 1
access modifier?
a) Protected
b) Void
c) Public
d) Private
Answer:b

10 What is the numerical 10 C K


range of a char data O1 2
type in Java?
a) 0 to 256
b) -128 to 127
c) 0 to 65535
d) 0 to 32767
Answer:c

ONLINE QUIZ -3
UNIT-2
S.NO QUESTIONS MARK CO PI BL
. S COD
E

1 What is the 1 CO K2
correct syntax of 2
doctype in HTML5?
a) </doctype
html>
b) <doctype html>
c) <doctype html!
>
d) <!doctype
html>
Answer :d

2 Which of the 1 CO K1
following is used to 2
read an HTML
page and render
it?
a) Web server
b) Web network
c) Web browser
d) Web matrix
Answer: c
3 Which of the 1 CO K1
following is not a 2
difference between
HTML and XHTML?
a) Charset in both
html and xhtml is
“text/html”
b) Tags and
attributes are
case-insensitive in
HTML but not in
XHTML
c) Special
characters must
be escaped using
character entities
in XHTML unlike
HTML
d) Charset in html
is “text/html”
where as in xhtml
it is
“application/xml+x
html”
Answer: a
4 Which of the 1 CO K1
following tag is 2
used for inserting
the largest
heading in HTML?
a) head
b) <h1>
c) <h6>
d) heading
Answer: b
5 What is DOM in 1 CO K2
HTML? 2
a) Language
dependent
application
programming
b) Hierarchy of
objects in ASP.NET
c) Application
programming
interface
d) Convention for
representing and
interacting with
objects in html
documents
Answer: d
6. In which part of 1 CO K1
the HTML 2
metadata is
contained?
a) head tag
b) title tag
c) html tag
d) body tag
Answer: a

7 Which element is 1 CO 2 K2
used to get 1 1
highlighted text in
HTML5?
a) <u>
b) <mark>
c) <highlight>
d) <b>
Answer: b

8 Which of the 1 CO K1
following is not a 2
HTML5 tag?
a) <track>
b) <video>
c) <slider>
d) <source>
Answer: c
9 How do we write 1 CO K2
comments in 2
HTML?
a) </…….>
b) <!……>
c) </……/>
d) <…….!>
Answer : b

10 Which of the 10 CO K1
following elements 2
in HTML5 defines
video or movie
content?
a) <video>
b) <movie>
c) <audio>
d) <media>
Answer: a

ONLINE QUIZ -4
UNIT-2
S.NO QUESTIONS MARK CO PI BL
. S COD
E

1 Which of the 1 CO2 K1


following is not
the element
associated with
the HTML table
layout?
a) alignment
b) color
c) size
d) spanning
Answer: b

2 Which element is 1 CO2 K1


used for or styling
HTML5 layout?
a) CSS
b) jQuery
c) JavaScript
d) PHP
Answer : a
3 Which HTML tag 1 CO2 K1
is used for
making character
appearance bold?
a)
<u>content</u>
b)
<b>content</b>
c)
<br>content</br
>
d)
<i>content</i>
Answer: b

4 Which HTML tag 1 CO2 K1


is used to insert
an image?
a) <img
url=”htmllogo.jpg
” />
b) <img
alt=”htmllogo.jpg
” />
c) <img
src=”htmllogo.jpg
” />
d) <img
link=”htmllogo.jp
g” />
Answer: c

5 Which character 1 CO2 K1


is used to
represent when a
tag is closed in
HTML?
a) #
b) !
c) /
d) \
Answer: c
6. In HTML, which 1 CO2 K2
attribute is used
to create a link
that opens in a
new window tab?
a) src=”_blank”
b) alt=”_blank”
c) target=”_self”
d)
target=”_blank”
Answer :d

7 A _____ indicates an 1 CO2 K2


absent value that may
exist but be unknown
or that may not exist
at all.
a) Empty tuple
b) New value
c) Null value
d) Old value
Answer: c
8 Which HTML 1 CO2 K1
element is used
for short quote?
a) <em>
b) <abbr>
c) <q>
d) <blockquote>
Answer: c

9 Which HTML 1 CO2 K1


element is used
for abbreviation
or acronym?
a) <abbr>
b) <blockquote>
c) <q>
d) <em>
Answer: a
10 Which of the 10 CO2 K1
following tag is
used to create a
text area in HTML
Form?
a) <textarea>
</textarea>
b) <text></text>
c) <input
type=”text” />
d) <input
type=”textarea” /
>
Answer: a

ONLINE QUIZ -5
UNIT-3
S.NO QUESTIONS MARK CO PI BL
. S COD
E

1 You want to 1 CO3 K2


implement a
mechanism that
automates the IP
configuration,
including IP
address, subnet
mask, default
gateway, and
DNS information.
Which protocol
will you use to
accomplish this?
a) SMTP
b) SNMP
c) DHCP
d) ARP
Answer: c
2 What layer in the 1 CO3 K2
TCP/IP stack is
equivalent to the
Transport layer of
the OSI model?
a) Application
b) Host to host
c) Internet
d) Network
Access
Answer: b

3 The DoD model 1 CO3 K2


(also called the
TCP/IP stack) has
four layers. Which
layer of the DoD
model is
equivalent to the
Network layer of
the OSI model?
a) Application
b) Host to Host
c) Internet
d) Network
Access
Answer: c

4 Which of the 1 CO3 K2


following
protocols uses
both TCP and
UDP?
a) FTP
b) SMTP
c) Telnet
d) DNS
Answer: d

5 Length of Port 1 CO3 K2


address in TCP/IP
is _________
a) 4bit long
b) 16bit long
c) 32bit long
d) 8 bit long
Answer : b
6. TCP/IP layer is 1 CO3 K2
equivalent to
combined
Session,
Presentation and
_________
a) Network layer
b) Application
layer
c) Transport layer
d) Physical layer
Answer: b

7 How many levels 1 CO3 K2


of addressing is
provided in TCP/IP
protocol?
a) One
b) Two
c) Three
d) Four
Answer: d
8 Virtual terminal 1 CO3 K2
protocol is an
example of
_________
a) Network layer
b) Application
layer
c) Transport layer
d) Physical layer
Answer: b

9 TCP/IP is related 1 CO3 K2


to __________
a) ARPANET
b) OSI
c) DECNET
d) ALOHA
Answer: a

10 A device 10 CO3 K2
operating at
network layer is
called __________
a) Router
b) Equalizer
c) Bridge
d) Repeater
Answer: a

ONLINE QUIZ -6
UNIT-3

S.NO QUESTIONS MARK CO PI BL


. S COD
E

1 A device 1 CO3 K1
operating at
physical layer is
called __________
a) Router
b) Equalizer
c) Bridge
d) Repeater
Answer: c

2 Cable TV and DSL 1 CO3 K1


are examples of
____________
a)
Interconnection
of network
b) LAN
c) MAN
d) WAN
Answer:c

3 Which of the 1 CO3 K1


following is
correct about
JavaScript?
a) JavaScript is an
Object-Based
language
b) JavaScript is
Assembly-
language
c) JavaScript is an
Object-Oriented
language
d) JavaScript is a
High-level
language
Answer: a

4 Among the given 1 CO3 K2


statements,
which statement
defines closures
in JavaScript?
a) JavaScript is a
function that is
enclosed with
references to its
inner function
scope
b) JavaScript is a
function that is
enclosed with
references to its
lexical
environment
c) JavaScript is a
function that is
enclosed with the
object to its inner
function scope
d) None of the
mentioned
Answer: b
5 Arrays in 1 CO3 K2
JavaScript are
defined by which
of the following
statements?
a) It is an ordered
list of values
b) It is an ordered
list of objects
c) It is an ordered
list of string
d) It is an ordered
list of functions
Answer: a
6. Will the following 1 CO3 K3
JavaScript code work?

var js = (function(x)
{return x*x;}(10));
a) Exception will be
thrown
b) Memory leak
c) Error
d) Yes, perfectly

Answer: d

7 Which of the 1 CO3 K1


following is not
javascript data
types?
a) Null type
b) Undefined type
c) Number type
d) All of the
mentioned
Answer: d

8 Where is Client- 1 CO3 K2


side JavaScript
code is
embedded within
HTML
documents?
a) A URL that
uses the special
javascript:code
b) A URL that
uses the special
javascript:protoco
l
c) A URL that
uses the special
javascript:encodi
ng
d) A URL that
uses the special
javascript:stack
Answer: b

9 Which of the 1 CO3 K1


following object is
the main entry
point to all client-
side JavaScript
features and
APIs?
a) Position
b) Window
c) Standard
d) Location
Answer : b

10 What will be the output 10 CO3 K2


of the following
JavaScript code?

// Javascript code
snippet to compare the
height
function height()
{
var height =
123.56;
var type =
(height>=190) ? "tall"
: "short";
return type;
}
a) short
b) 123.56
c) tall
d) 190

Answer : a

ONLINE QUIZ -7
UNIT-4
S. QUESTIONS MA C PI B
N RKS O C L
O. O
D
E

1 Which of the following 1 C K


contains both date and time? O 1
a) java.io.date 4
b) java.sql.date
c) java.util.date
d) java.util.dateTime
Answer: d
2 Which of the following is 1 C K
advantage of using JDBC O 1
connection pool?
a) Slow performance 4
b) Using more memory
c) Using less memory
d) Better performance
Answer: d
3 Which of the following is 1 C K
advantage of using O 1
PreparedStatement in Java? 4
a) Slow performance
b) Encourages SQL injection
c) Prevents SQL injection
d) More memory usage
Answer: c
4 Which one of the following 1 C K
contains date information? O 1
a) java.sql.TimeStamp 4
b) java.sql.Time
c) java.io.Time
d) java.io.TimeStamp
Answer: a
5 What does 1 C K
setAutoCommit(false) do? O 4
a) commits transaction after 4
each query
b) explicitly commits
transaction
c) does not commit
transaction automatically
after each query
d) never commits transaction
Answer : c
6. Which of the following is 1 C K
used to call stored O 1
procedure? 4
a) Statement
b) PreparedStatement
c) CallableStatment
d) CalledStatement
Answer : c

7 Which of the following is 1 C K


used to limit the number of O 1
rows returned? 4
a) setMaxRows(int
b) setMinRows(int
c) getMaxrows(int
d) getMinRows(int Answer: a
8 Which of the following is 1 C K
method of JDBC batch O 1
process? 4
a) setBatch()
b) deleteBatch()
c) removeBatch()
d) addBatch()
Answer: d
9 Which of the following is 1 C K
used to rollback a JDBC O 1
transaction? 4
a) rollback()
b) rollforward()
c) deleteTransaction()
d) RemoveTransaction()
Answer : a

10 Which of the following is not 10 C K


a JDBC connection isolation O 1
levels? 4
a) TRANSACTION_NONE
b)
TRANSACTION_READ_COMMI
TTED
c)
TRANSACTION_REPEATABLE_
READ
d)
TRANSACTION_NONREPEATA
BLE_READ
Answer: d

ONLINE QUIZ -8
UNIT-4

S.N QUESTIONS MAR C PI B


O. KS O CO L
DE

1 Which of the following 1 C K


is not an Enterprise O4 1
Beans type?
a) Doubleton
b) Singleton
c) Stateful
d) Stateless
Answer: a

2 1 C K
Which of the following O4 1
is not true about Java
beans?
a) Implements
java.io.Serializable
interface
b) Extends
java.io.Serializable
class
c) Provides no
argument constructor
d) Provides setter and
getter methods for its
properties
Answer: b

3 1 C K
Which file separator O4 1
should be used by
MANIFEST file?
a) /
b) \
c) –
d) //
Answer: a

4 Which of the following 1 C K


is correct error when O4 1
loading JAR file with
duplicate name?
a)
java.io.NullPointerExcep
tion
b)
java.lang.ClassNotFoun
d
c)
java.lang.ClassFormatE
rror
d)java.lang.DuplicateCl
assError
Answer: c

5 . Which of the following 1 C K


is not a feature of O4 1
Beans?
a) Introspection
b) Events
c) Persistence
d) Serialization
Answer: d

6. What is the attribute of 1 C K


java bean to specify O4 2
scope of bean to have
single instance per
Spring IOC?
a) prototype
b) singleton
c) request
d) session
Answer: b

7 Which attribute is used 1 C K


to specify initialization O4 1
method?
a) init
b) init-method
c) initialization
d) initialization-method
Answer : b

8 Which attribute is used 1 C K


to specify destroy O4 1
method?
a) destroy
b) destroy-method
c) destruction
d) destruction-method
Answer: b

9 How to specify 1 C K
autowiring by name? O4 2
a) @Qualifier
b) @Type
c) @Constructor
d) @Name
Answer: a

10 Which of the following 10 C K


is advantage of using O4 1
JDBC connection pool?
a) Slow performance
b) Using more memory
c) Using less memory
d) Better performance
Answer: d

ONLINE QUIZ -9
UNIT-5
S.N QUESTIONS MAR CO PI BL
O. KS COD
E

1 Which page directive 1 CO K2


should be used in JSP 5 1
to generate a PDF
page?
a) contentType
b) generatePdf
c) typePDF
d) contentPDF
Answer: a

2 Which tag should be 1 CO K1


used to pass 5
information from JSP
to included JSP?
a) Using <
%jsp:page> tag
b) Using <
%jsp:param> tag
c) Using <
%jsp:import> tag
d) Using <
%jsp:useBean> tag
Answer: a

3 1 CO K2
Application is 5
instance of which
class?
a)
javax.servlet.Applicat
ion
b)
javax.servlet.HttpCon
text
c)
javax.servlet.Context
d)
javax.servlet.ServletC
ontext
Answer: d

4 Which option is true 1 CO K2


about session scope? 5
a) Objects are
accessible only from
the page in which
they are created
b) Objects are
accessible only from
the pages which are
in same session
c) Objects are
accessible only from
the pages which are
processing the same
request
d) Objects are
accessible only from
the pages which
reside in same
application
Answer: b

5 Which one is the 1 CO K1


correct order of 5
phases in JSP life
cycle?
a) Initialization,
Cleanup,
Compilation,
Execution
b) Initialization,
Compilation,
Cleanup, Execution
c) Compilation,
Initialization,
Execution, Cleanup
d) Cleanup,
Compilation,
Initialization,
Execution
Answer: c

6. “request” is instance 1 CO K2
of which one of the 5
following classes?
a) Request
b) HttpRequest
c)
HttpServletRequest
d) ServletRequest
Answer: c

7 Which is not a 1 CO K1
directive? 5
a) include
b) page
c) export
d) useBean
Answer: c

8 Which is mandatory 1 CO K1
in <jsp:useBean /> 5
tag?
a) id, class
b) id, type
c) type, property
d) type,id
Answer: a

9 Which attribute uniquely 1 CO K1


identification element? 5
a) ID
b) Class
c) Name
d) Scope
Answer: a

10 Which of the following 10 CO K1


action variable is used to 5
include a file in JSP?
a) jsp:setProperty
b) jsp:getProperty
c) jsp:include
d) jsp:plugin
Answer: c

ONLINE QUIZ -10


UNIT-5

S.NO QUESTIONS MARK CO PI BL


. S COD
E

1 Which one of the 1 CO5 K21


following is correct for
directive in JSP?
a) <%@directive%>
b) <%!directive%>
c) <%directive%>
d) <%=directive%>
Answer: a
2 Which object of 1 CO5 K1
HttpSession can be used
to view and manipulate
information about a
session?

a. session identifier
b. creation time
c. last accessed time
d. All mentioned above
Answer: d

3 Which class provides 1 CO5 K1


stream to read binary
data such as image etc.
from the request object?

a. ServltInputStream
b. ServletOutputStream
c. Both A & B
d. None of the above
Answer: a

4 Which of these ways 1 CO5 K1


used to communicate
from an applet to
servlet?

a. RMI Communication
b. HTTP Communication
c. Socket
Communication
d. All mentioned above
Answer: d

5 Which methods are 1 CO5 K1


used to bind the objects
on HttpSession instance
and get the objects?

a. setAttribute
b. getAttribute
c. Both A & B
d. None of the above
Answer: c

6. Which type of 1 CO5 K1


ServletEngine is a server
that includes built-in
support for servlets?
- Published on 21 Jul 15

a. Add-on ServletEngine
b. Embedded
ServletEngine
c. Standalone
ServletEngine
d. None of the above
Answer: c

7 What type of servlets 1 CO5 K2


use these methods
doGet(),
doPost(),doHead,
doDelete(), doTrace()?

- Published on 21 Jul 15

a. Genereic Servlets
b. HttpServlets
c. All of the above
d. None of the above
Answer: b

8 Which cookie it is valid 1 CO5 K1


for single session only
and it is removed each
time when the user
closes the browser?
- Published on 20 Jul 15

a. Persistent cookie
b. Non-persistent cookie
c. All the above
d. None of the above
Answer: b

9 Which method is used 1 CO5 K1


to send the same
request and response
objects to another servlet
in RequestDispacher ?

a. forward()
b. sendRedirect()
c. Both A & B
d. None of the above
Answer: a

10 Which packages 10 CO5 K1


represent interfaces
and classes for servlet
API?
- Published on 17 Jul 15

a. javax.servlet
b. javax.servlet.http
c. Both A & B
d. None of the above
Answer: c

You might also like