WT All 5 Units QB
WT All 5 Units QB
QUESTION BANK
CO1: Ability to use LAMP stack for web applications and use tomcat server for Servlets
1 a, i, j
and JSPs.
CO2: Ability to write simple applications with technologies like HTML, JavaScript,
2 a,b,c,d,e,i
AJAX, PHP, Servlets and JSPs.
CO3: Ability to connect to database and get results, parse XML files using Java (DOM and
3 d
SAX parsers).
CO4: Student will be able to understand the practical approach of how a compiler
4 works and able to work in the development phase of new computer languages in d,e
industry.
S. No. Questions
Bloom’s CO PO
Taxonomy Level
UNIT – I
PART – A (SHORT ANSWER QUESTIONS)
1 What is PHP? Remembering 1 a, i, j
2 What is the difference between $name and $$name? Remembering 1 a, i, j
3 What are the differences between Get and post Remembering 1 a, i, j
methods.
4 How can we create a database using PHP and Remembering 1 a, i, j
MySQL?
5 What is the use of header() function in PHP ? Remembering 1 a, i, j
6 How can we get second of the current time using Remembering 1 a, i, j
date function?
7 List out the predefined classes in PHP? Analyzing 3 d
8 What type of inheritance that PHP supports? Remembering 1 a, i, j
9 What are the advantages/disadvantages of MySQL Remembering 1 a, i, j
and PHP?
10 What is the difference between PHP and Javascript? Remembering 1 a, i, j
PART – B (LONGANSWER QUESTIONS)
1 What are the different types of errors in PHP? Remembering 1 a, i, j
2 What is the functionality of the function strstr and Remembering 1 a, i, j
stristr?
3 Explain about various datatypes in PHP. understanding 4 d,e
4 Explain about Arrays in PHP. understanding 4 d,e
5 List and Explain the string functions in PHP. Analyzing 3 d
6 List the statements that are used to connect PHP Analyzing 3 d
with MySQL.
7 How PHP is different from PHP Script? Explain. Remembering 1 a, i, j
8 Explain PHP form processing with an example. understanding 4 d,e
9 How can I retrieve values from one database server Remembering 1 a, i, j
and store them in other database server using PHP?
10 What are the differences between Get and post Remembering 1 a, i, j
methods in form submitting. Give the case where we
can use get and we can use post methods?
PART – C (PROBLEM SOLVING AND
CRITICAL THINKING QUESTIONS)
1 List and Explain PHP development framework Analyzing 3 d
2 Explain about database connectivity with PHP with understanding 4 d,e
suitable examples.
3 How strings are declared in PHP? Explain string Remembering 1 a, i, j
operators.
4 How array is declared in PHP. Also explain various Remembering 1 a, i, j
types of array with proper examples.
5 Build simple calculator using PHP. Applying 3 d
6 Build a program using PHP that creates the web Applying 3 d
application for result publication
7 Build application to send a email using PHP Applying 3 d
8 Build a shopping cart application using PHP with Applying 3 d
use of cookies.
9 Explain about the control statements in PHP with understanding 4 d,e
example.
10 Explain about cookies in PHP with example. understanding 4 d,e
UNIT – II
PART – A (SHORT ANSWER QUESTIONS)
1 Define XML? What are the advantages of xml? Remembering 1 a, i, j
2 List the XML syntax rules in detail. Analyzing 3 d
3 Define an xml scheme show how an XML Scheme Remembering 1 a, i, j
can be created?
4 Explain a brief note on XML parsers? understanding 4 d,e
5 Define how it is different from HTML? Remembering 1 a, i, j
6 Explain the purpose of XML schema? understanding 4 d,e
7 List out the advantages of schema over DTD? Analyzing 3 d
8 Explain about XML parsing done with SAX? understanding 4 d,e
9 List out the three flavours of Document Type Analyzing 3 d
declaration?
10 Distinguish between SAX AND DOM? Analyzing 3 d
PART – B (LONGANSWER QUESTIONS)
1 Explain and show how XML is useful in defining understanding 4 d,e
data for web applications.
2 Explain the various terms related to Document Type understanding 4 d,e
Definition.
3 Design an XML schema for hospital information Creating 2 a,b,c,d,
management. Include every feature available with e,i
schema.
4 Explain how styling XML with cascading style understanding 4 d,e
sheets is done for the library information domain.
5 List and Explain the important features of XML Analyzing 3 d
which make it more suitable than HTML for
creating web related services.
6 Define an xml scheme to show how an XML Remembering 1 a, i, j
Scheme can be created
7 Define Attributes in XML .Also different types of Remembering 1 a, i, j
attributes
8 List the elements in XML .Also different types of Analyzing 3 d
content of Elements.
9 How do you define the elements of an XML Remembering 1 a, i, j
document in an XML Schema?
10 How do you set default and fixed values for simple Remembering 1 a, i, j
Elements?
PART – C (PROBLEM SOLVING AND
CRITICAL THINKING QUESTIONS)
1 Build an XML File using the following information Applying 3 d
structure including DTD section appropriately:-
<Accounting>
<Inventory>
<Inventory_item>
<Invoices>
<Invoice>
<Item>
<Sales> Note:
a) Inventory_Item has an attribute namely id
(Required).
b) Inventory_Item, Item & Sales can be Empty too.
C) Item has 3 attributes namely id (Required), qty
& price. Sales has an attribute namely ids
(Required).
2 Convert the given information into a XML file and Applying 3 d
then convert this XML File data into HTML file as
it is.
Roll No. Name Subject Marks
11 Ram Web Tech 78
12 Shyam DBMS 65
13 Krishna SE 82
3 Define the Document type Definition (DTD) in Remembering 1 a, i, j
XML. What is difference between Internal and
External DTD?
4 What do you mean by XML? What are its Remembering 1 a, i, j
Differences and similarities from HTML & CSS?
Also explain the concept of Entities & Attributes in
XML?
5 Build a document with two links to an external Applying 3 d
document. The first link should lead to the beginning
of the external document. The second link should
lead to a particular section in the external document.
6 How to write and read XML documents and How Remembering 1 a, i, j
XML structures documents?
7 How and why XML was developed. typical Remembering 1 a, i, j
applications of XML, with examples
8 Build XSLT code to display Employee details in a Applying 3 d
table from which is stored in XML.
9 Explain how data types are represented in XML understanding 4 d,e
Schema.
10 Get the students‟ details like name, register number Applying 3 d
and mark using form. Generate DTD for this XML
document.
Regno Mark
Xyz 1000 90
Abc 1001 80
Pqr 1002 87
Rst 1003 89
Generate the collected information in the
descending order of marks using XSLT. Results
should be displayed in the above format. Write a
source code and explain the same.
UNIT – III
PART – A (SHORT ANSWER QUESTIONS)
1 List out difference between web server and Analyzing 3 d
application server?
2 Which HTTP method is non-idempotent?
3 Explain difference between GET and POST method? understanding 4 d,e
4 List out MIME Types? Analyzing 3 d
5 Discuss the web application and what is its directory Creating 2 a,b
structure? ,c,d,e,i
6 Explain about Servlet? understanding 4 d,e
7 List out various phases of Servlet life cycle? Analyzing 3 d
8 Build a Servlet program to illustrate parameter Applying 3 d
reading and parameter initializing. ?
9 Explain how to override service () method? understanding 4 d,e
10 List the methods defined in HttpServletRequest? Analyzing 3 d
PART – B (LONGANSWER QUESTIONS)
1 Define a session tracker that tracks the number of Remembering 1 a, i, j
accesses and last access data of a particular web
page.
2 What is the security issues related to Servlets. Remembering 1 a, i, j
3 Explain how HTTP POST request is processed understanding 4 d,e
using Servlets
4 Explain how cookies are used for session tracking? understanding 4 d,e
5 Explain about Tomcat web server. understanding 4 d,e
6 What is Servlet? Explain life cycle of a Servlet? Remembering 1 a, i, j
7 What are the advantages of Servlets over CGI Remembering 1 a, i, j
8 What is session tracking? understanding 4 d,e
Explain different mechanisms of
session tracking?
9 What is the difference between Servlets and Remembering 1 a, i, j
applets?
10 What is the difference between doGet() and Remembering 1 a, i, j
doPost()?
PART – C (PROBLEM SOLVING AND
CRITICAL THINKING QUESTIONS)
1 Build a Servlet that generates HTML page and Applying 3 d
explain the process of generation of HTML page.
2 List and explain the classes and interfaces of Analyzing 3 d
javax.servlet.http package.
3 Build a Servlet that handles HTTP get Request Applying 3 d
4 Describe about session tracking with relevant code
snippet.
5 “Servlet offer several advantages over CGI”.
Justify.
6 Explain about Security Issues in Servlet understanding 4 d,e
7 Explain about Servlet? Explain lifecycle of a understanding 4 d,e
Servlet. Illustrate with an example program.
8 Build a Servlet program to illustrate parameter Creating 2 a,b,c,d,
reading and parameter initializing. e,i
9 Explain Cookies session tracking with relevant understanding 4 d,e
code snippet.
10 List the methods defined in HttpServletRequest. Remembering 1 a, i, j
UNIT – IV
PART – A (SHORT ANSWER QUESTIONS)
1 What are the differences between custom JSP tags Remembering 1 a, i, j
and Serlets?
2 Explain the difference between JSP include directive understanding 4 d,e
and JSP include action.
3 Explain about Scriptlet tag? understanding 4 d,e
4 Explain how to use JavaBeans from JSP pages. understanding 4 d,e
5 Explain about various implicit objects? understanding 4 d,e
6 How many JSP scripting elements and what are Remembering 1 a, i, j
they?
7 How JSP pages the preferred API for creating a web- Remembering 1 a, i, j
based client program?
8 Define Tag library descriptor (TLD)?
9 Explain the categories of JSP tags - Directives, understanding 4 d,e
Scripting elements, Actions?
10 List out differences between including action and Analyzing 3 d
include directive in JSP?
PART – B (LONGANSWER QUESTIONS)
1 Explain about the JSP processing
2 Explain the mechanism to include resources understanding 4 d,e
dynamically and to forward request to other JSPs?
3 Explain about JSP Elements?
4 List the different Action Tags used in JSP with their Analyzing 3 d
functionality
5 Explain the types of Scripting tags and Directive understanding 4 d,e
tags in JSP.
6 Explain about the usage of JavaBean Component in understanding 4 d,e
JSP.
7 Explain briefly about the Problem with Servlets understanding 4 d,e
8 Describe the Anatomy of JSP Page
9 Explain the MVC architecture and write a JSP understanding 4 d,e
program which prints the current date?
10 List the types of JSP Implicit Objects. Analyzing 3 d
PART – C (PROBLEM SOLVING AND
CRITICAL THINKING QUESTIONS)
1 Explain about the JSP processing understanding 4 d,e
2 Explain the mechanism to include resources understanding 4 d,e
dynamically and to forward request to other JSPs?
3 Explain about JSP Elements? understanding 4 d,e
4 List the different Action Tags used in JSP with their Analyzing 3 d
functionality
5 Explain the types of Scripting tags and Directive understanding 4 d,e
tags in JSP.
6 Interpret about the usage of JavaBeans Component Analyzing 3 d
in JSP.
7 Describe the Anatomy of JSP Page Analyzing 3 d
8 Describe the MVC architecture and write a JSP Analyzing 3 d
program which prints the current date?
9 Explain JSP application design with suitable understanding 4 d,e
example?
10 Explain about JSP with a Bean in the session scope. understanding 4 d,e
UNIT – V
PART – A (SHORT ANSWER QUESTIONS)
1 Explain how to embed JavaScript code in an HTML understanding 4 d,e
document.
2 Define arrays in JavaScript? Remembering 1 a, i, j
3 List the differences between Client side JavaScript Analyzing 3 d
Server side JavaScript?
4 Define how to create a Date Object?
5 Explain dynamic html? What is the main difference understanding 4 d,e
between DHTML and HTML?
6 Explain the various control statements understanding 4 d,e
available with JavaScript.
7 Explain about a function using function constructor? understanding 4 d,e
8 Explain about the Accessing Elements using understanding 4 d,e
JavaScript?
9 Define a boolean operator that a JavaScript support? Remembering 1 a, i, j
10 Explain about String object in JavaScript? Remembering 1 a, i, j
PART – B (LONGANSWER QUESTIONS)
1 Build a JavaScript program to convert distance in Analyzing 3 d
kilometers, miles to meters or inches
2 Build a java script to verify a phone number, email- Analyzing 3 d
id and date formats.
3 Compare and contrast HTML and DHTML Analyzing 3 d
with suitable examples.
4 Explain the need for scripting languages in web understanding 4 d,e
programming.
5 Explain the features of Java Script. understanding 4 d,e
6 What is JavaScript? Write the features of
JavaScript?
7 Write the code in JavaScript to open a new window
when a
8 Explain any three objects of JavaScript understanding 4 d,e
9 What is form validation? Explain with example?
10 What is an event? How can we handle events in
JavaScript?
PART – C (PROBLEM SOLVING AND
CRITICAL THINKING QUESTIONS)
1 Build a JavaScript to analyze a subject code for Applying 3 d
subject in a semester. The subject code may be
visualized like 12 CS 43 where „12‟ represents year
of syllabus, „CS‟ – indicates the engineering
discipline as Computer Science and Engineering and
„4‟ gives the semester details as 4 them, and „3‟
gives the subject information.
2 Build a JavaScript that displays the as per the Applying 3 d
following: (calculates the squares and cubes of the
numbers from 0 to 10)
3 Insert an image into a webpage. Build a script which Applying 3 d
displays a message when the mouse is over the
image.
4 Interpret how JavaScript can handle the events? Applying 3 d
“JavaScript is event driven”. What is meant by an
event?
5 Build a Web page ,which accept user information Applying 3 d
and user comments on the web site to check if all the
Text fields have being entered with data else display
an alert.
6 Build a JavaScript which accepts the text in lower Applying 3 d
case and displays the text in uppercase.
7 Build a java script to validate a form consisting of Applying 3 d
user name
.Also navigate to another web pages after navigation
8 Build a java script that read four integers and display Applying 3 d
the largest and displays the largest and smallest
integers from the given integers.
9 Build a java Script program to determine whether a Applying 3 d
given number is an Armstrong number or not.
10 Build a JavaScript that reads list of ten numbers and Applying 3 d
displays the count of negative numbers, the count of
positive numbers and the count of zeros from the list.
HOD
COMPUTER SCIENCE AND
ENGINEERING