565/Comp. Sc. UG/5th Sem/COM.
SC-H-CC-L-512/21 i) What are the different scope values for the
<jsp:useBean> tag?
U.G. 5th Semester Examination - 2021
j) What is the difference in using
COMPUTER SCIENCE
request.getRequestDispatcher() and
[HONOURS]
context.getRequestDispatcher()?
Course Code : COM.SC-H-CC-L-512
(Internet Technologies) k) Whatis the difference between include directive
Full Marks : 60 Time : 24 Hours and include action in JSP?
The figures in the right-hand margin indicate marks. 1) What are context initialization parameters?
Candidates are required to give their answers in their
m) How can you register the driver class for using
own words as far as practicable.
database connectivity in java?
n) How to remove items from ArrayList in Java?
1. Answer any ten questions: 2x10=20
o) What are the difference between an array and
a) Explain hosting in Java Script.
an ArrayList in Java?
b) What is JVM?
Answer any four questions : 5x4=20
c) Explain Implicit Type Coercion in JavaScript?
a) What is the way to get reverse of an ArrayList?
d) Explain ‘this’ keyword in java. How to sort ArrayList in ascending order in Java?
‘What is Array Index Out Of Bound Exception in
e) What is the return type of Class.forName()
method? Java? How can you create a multidimensional
array of size MxN? 2+1+1+1
f) How comments can be added to a JSP program?
b) InJavaScript, what are the differences between
g) How canyouimplement a thread-safe JSP page?
declaring variables using var, let and const? How
h) How can you forward the request from JSP page to use external JavaScript file? What is the use
to servlet? of history object? 3+1+1
[Turn over] 565/Comp. Sc.
[N}
‘What are the two ways to include the result of iv) Design a java method to find the maximum
another page? Explain them. 2+3 and minimum from an ArrayList of
integers. 2+2+2+4
Explain the MVC framework for JSP
applications with proper diagram. 5 ¢ ) ‘What are the JDBC statements? Explain
them.
What are the steps involved in executing
database queries with java? How the connection ‘What are the differences between execute,
is closed after execution of queries. 4+1 executeQuery, and executeUpdate?
5+5
f) Explain all the JDBCAPI interfaces. 5
Answer any two questions: 10x2=20 (V] How to write comments in JavaScript?
a) i) How canyouimplement a thread-safe JSP How can you create JavaScript functions?
page? What are the advantages and Explain different primitive and non-
Disadvantages of using it? primitive data types available in JavaScript.
ii) How can you prevent the output of your How can you create an object in
JSP or Servlet pages from being cached JavaScript? Give an example. 2+2+4+2
by the browser?
iii) What are the different types of literals
available in JSP? (2+2)+3+3
b) i) How to synchronize in ArrayList?
ii) How to remove duplicate elements from
an ArrayList?
iii) What are the differences between array
and ArrayList?
565/Comp. Sc. [3] [Turn over] 565/Comp. Sc.