valliammai engineering college semester/cs6501-internet... · ... html 5, css 3, web 2.0 web 2.0:...
TRANSCRIPT
VALLIAMMAI ENGINEERING COLLEGE
SRM Nagar, Kattankulathur – 603 203
DEPARTMENT OF
COMPUTER SCIENCE AND ENGINEERING
QUESTION BANK
V SEMESTER
CS6501–INTERNET PROGRAMMING
Regulation – 2013
Academic Year 2017 – 18
Prepared by
Mr. S. Venkatesh, Assistant Professor
Ms.R.Anitha, Assistant Professor
UNIT I - JAVA PROGRAMMING
An overview of Java – Data Types – Variables and Arrays – Operators – Control Statements – Classes – Objects
– Methods – Inheritance – Packages – Abstract classes – Interfaces and Inner classes – Exception handling –
Introduction to Threads – Multithreading – String handling – Streams and I/O – Applets.
PART - A
S.No QUESTIONS LEVEL COMPETENCE
1. Differentiate vector and array in Java. BTL4 Analyze
2. Define Multithreading Programming. BTL1 Remember
3. Discuss the role of chained exception in java BTL2 Understand
4. List the two ways of creating thread. BTL1 Remember
5. Distinguish between classes and objects. BTL2 Understand
6. How would you classify inheritance? BTL3 Apply
7. Is there any error in the given java statement?Analyze:
char [] string = “abcdef”; BTL4 Analyze
8. Access what is static in java? BTL5 Evaluate
9. Can an abstract class in Java be instantiated? Quote the reason. BTL1 Remember
10. Comparebetween method overloading and overriding. BTL5 Evaluate
11. List the subclasses of the AWT Event class. . BTL1 Remember
12. Rewrite why do you need run() and start() method. BTL6 Create
13. Name some packages in java. BTL1 Remember
14. Tell about sleep() in multiple-threads. BTL1 Remember
15. An interface is similar to a class. Examine the reason. BTL3 Apply
16. Give syntax for input stream and output stream. BTL2 Understand
17. Can you Classifythe life cycle of applet. BTL3 Apply
18. Develop a Code for Graphics method in Java to draw the String “Hello
World” from the coordinates (100,200). BTL6 Create
19. Point out the difference between nested class and inner class in java. BTL4 Analyze
20. Discuss the different typesof typecasting in java. BTL2 Understand
PART - B
S.No QUESTIONS LEVEL COMPETENCE
1 i) Explain in detail about features and structures of java.(7)
ii) Whatare data types in java? Explain variables and array.(6) BTL4 Analyze
2 i) Discuss the different arithmetic operator.(5)
ii) Discuss about different control statement.(8) BTL2 Understand
3 i) Develop a programfor different types of constructor.(7)
ii) Develop a program for adding a method to a class object.(6) BTL6 Create
4 i) Explain arrays in java with example.(7)
ii) Identify whymethod overloading is not possible by changing the
return type of method?(6)
BTL1
Remember
5 i) Illustrate about method overriding with example. (7)
ii) Classify and compare inheritance with example.(6)
BTL3
Apply
6 i) Illustrate about directory structure of java packages.(7)
ii) Demonstrate on creating package with an example.(6)
BTL3
Apply
7 i) Summarize on abstract class.(5)
ii) Explain abstract class with example.(8)
BTL5
Evaluate
8
i) List and discuss about the interfaces.(7)
ii) Tabulate the difference between non-static nested classes and
static nested classes.(6)
BTL1
Remember
9 Discuss briefly the concept of Exception handling.(13) BTL2 Understand
10
Write short notes on the list given below
(i) Thread lifecycle.(7)
(ii) Example for a simple thread.(6)
BTL1
Remember
11 i) Describe about application of java and illustrate the use of
multithreading. Explain the same with sample input.(7)
ii) Describe about Synchronization in Java.(6)
BTL 1 Remember
12 i) Givethe java string class methods.(7)
ii) Write a program in java using string class method and discuss.(6) BTL 2 Understand
13
i) Where do streams come from? Point out the methods used in
java.io.InputStream class.(7)
ii) Write a simple code segment and Analyze how to create ,write to,
and retrieve the content of a ByteArrayOutputStream(6)
BTL 4 Analyze
14 Explain a program to display a image using Applet.(13) BTL 4 Analyze
PART - C
S.No QUESTIONS LEVEL COMPETENCE
1
Develop a java program to find the sum of digits of a given
number.Create a Swing GUI to get an input number and show its sum of
digits. Incase the sum cannot be found due to incorrect input the applet
should print “Not able to find sum check input”.(15)
BTL 6 Create
2
Consider a scenario where one thread(producer) is producing integer
data starting from zero and another thread (consumer) consuming it.In
addition, assume that the producer has to wait until the consumer is
finished consuming before it generates more data. Using java’s
Interprocess Communication Mechanism, implement the above producer
consumer (15)
BTL 5 Evaluate
3 Explainthe use of BufferedReader object to read characters from the
console usingthe java program.(15) BTL4 Analyze
4 Generalize the different types of constructors with example in java(15) BTL 6 Create
UNIT II - WEBSITES BASICS, HTML 5, CSS 3, WEB 2.0
Web 2.0: Basics-RIA Rich Internet Applications – Collaborations tools – Understanding websites and web
servers: Understanding Internet – Difference between websites and web server- Internet technologies Overview –
Understanding the difference between internet and intranet; HTML and CSS: HTML 5.0 , XHTML, CSS 3.
PART - A
S.No QUESTIONS LEVEL COMPETENCE
1 List some of the collaboration tools. BTL1 Remember
2 Discuss on how RIA differ from a traditional web application. BTL2 Understand
3 Point out the difference between websites and web server.. BTL4 Analyze
4 Explain URL. BTL5 Evaluate
5 Create the implementation structure for VPN. BTL6 Create
6 Assess advantages of internet. BTL5 Evaluate
7 Classify different table tag. BTL3 Apply
8 Show the structure of HTML 5. BTL3 Apply
9 Predict the benefits of intranet? BTL2 Understand
10 Discuss Extranet. BTL2 Understand
11 List any two font formatting tag. BTL1 Remember
12 Classify the need for cascading style sheet. BTL4 Analyze
13 Prepare a simple code using image map. BTL6 create
14 Illustrate the appropriate inline CSS to show a section of the HTML
document with a font size of 20. BTL3 Apply
15 Name the three ways of inserting a style sheet BTL1 Remember
16 Tabulate the difference between internet and intranet. BTL1 Remember
17 List the features of CSS? BTL1 Remember
18 Tell about difference between HTML and XHTML. BTL1 Remember
19 What do you infer from XHTML? BTL4 Analyze
20 Give the list for different types of style sheet. BTL2 Understand
PART - B
S.No QUESTIONS LEVEL COMPETENCE
1 i) Demonstrate in detail about RIA.(7)
ii) Illustrate on collaboration tools.(6) BTL3 Apply
2 Summarize the overview of internet technologies.(13) BTL5 Evaluate
3 i) Compare and Contrast website and web server.(7)
ii) Express the information provided by URL. (6) BTL2 Understand
4 i) Tell about internet.(5)
ii) List the advantages and disadvantages of internet(8) BTL1 Remember
5 i) Relate Intranet with an example?(5)
ii) Classify the benefits and advantages of Intranet.(8) BTL3 Apply
6
Write short notes on the list given below:
i) Internet(4)
ii) Intranet(4)
iii) Extranet(5)
BTL1 Remember
7 i) Generalize the concept of Rich Internet application in detail.(7)
ii) Prepare the concept of Internet technology.(6) BTL6 Create
8 i) Discuss the basic structure of HTML5.(7)
ii) Write and discuss a programme in HTML using image tag,
hyperlink tag, font tag(6)
BTL2 Understand
9
Write and discuss an HTML script which creates a web page which
should display some of the egg. Colleges in tamilnadu in a tabular form
with name,address and url of the web site of the college.A candidate
should select the required department which is listed as items from a
form.candidates selection should be consolidated and displayed finally.
(13)
BTL2 Understand
10 i) State and explain any four HTML elements in detail.(7)
ii) Explain the way in which data can be presented in a tabular form
using HTML.(6)
BTL4 Analyze
11 i) Describe the CSS box model in detail.(7)
ii) Create a webpage using background-image property where the
code has to written in XHTML.(6)
BTL1 Remember
12 i) Point out the various features of CSS with an Example.(7)
ii) Compare and contrast between embedded stylesheet and external
style sheet.(6)
BTL4 Analyze
13 i) Describe the core syntax of CSS with the help of some suitable
example.(7)
ii) List and explain in detail the types of selector strings.(6)
BTL1 Remember
14 Explain the significance of XHTML with the help of a real time
application. Write necessary code snippets.(13) BTL4 Analyze
PART – C
S.No QUESTIONS LEVEL COMPETENCE
1
Compose a brief notes on each one of the following technologies(15)
Ajax
Flex
Silverlight
JavaFx
BTL -6 Create
2
CreatetheHTML code for creating a feedback form as shown
here.Include comments in code to highlight the markup elements and its
purpose.The HTML form should use POST for submitting the form to a
prpgramProcessContactForm.php.(15)
Name*
EmailAddress*
Telephone*
Enquiry
Message*
..
*indicates a required field
BTL -6 Create
3 Explain briefly with example the usage of CSS in HTML.(15) BTL4 Analyze
4 Summarize a XHTML program to display data in a table.(15) BTL5 Evaluate
UNIT III - CLIENT SIDE AND SERVER SIDE PROGRAMMING
Java Script: An introduction to JavaScript–JavaScript DOM Model-Date and Objects,-Regular Expressions-
Exception Handling-Validation-Built-in objects-Event Handling- DHTML with JavaScript. Servlets: Java Servlet
Architecture- Servlet Life Cycle- Form GET and POST actions- Session Handling- Understanding Cookies-
Installing and Configuring Apache Tomcat Web Server;-DATABASE CONNECTIVITY: JDBC perspectives,
JDBC program example – JSP: Understanding Java Server Pages-JSP Standard Tag Library(JSTL)-Creating
HTML forms by embedding JSP code.
PART - A
S.No QUESTIONS LEVEL COMPETENCE
1. Name which parser is best in parsing in large size documents. Why? BTL1 Remember
2. List benefits of using JavaScript code in an HTML document.. BTL1 Remember
3. Analyze on the statement.”Each object of a class has its own instance
of static member variable.” BTL4 Analyze
4. Write a java Script to print “Good Day” using IF-ELSE condition and
discuss. BTL2 Understand
5. Define JavaScript statement with an example. BTL1 Remember
6. Can you list the different methods defined in document and window
object of JavaScript. BTL1 Remember
7. Summarize briefly about the interaction between a webserver and a
servlet. BTL5 Evaluate
8. Giveany four methods of Date objects. BTL2 Understand
9. Predict the need for client and server side scripting. BTL2 Understand
10. Create and write the code to return the full URL of a Document. BTL6 Create
11. Show how is session tracking is achieved by the URL rewriting? BTL3 Apply
Genera
Hello !
12. Compare get request type and post request type. BTL4 Analyze
13. CompareServletcontext and Servletcofig. BTL5 Evaluate
14. Show the use of ‘param’ variable in JSP. BTL3 Apply
15. Tell about JSTL BTL1 Remember
16. Analyze about java scriplet. BTL4 Analyze
17. Give types of directive in JSP. BTL2 Understand
18. List any three advantages of java servlet over JSP. BTL1 Remember
19. Rewrite the code segment to store current server time in session using
Java Servlet API. BTL6 Create
20. Show the difference between JSP and servlet. BTL3 Apply
PART - B
S.No QUESTIONS LEVEL COMPETENCE
1
i) Tell about the difference inJavaScript & Java(5)
ii) Examine variables and data types in JavaScript.(4)
iii) Describe the concepts of Popup Boxes(4)
BTL1
Understand
2
i) Describe how to implement conditional statements and loops in
JavaScript(7)
ii) Quote a brief note on Array declaration in JavaScript.(6)
BTL1 Remember
3 i) Give various Operators in JavaScript.(7)
ii) Discuss the concepts of Event Handling(6) BTL2 Remember
4
Summarize about
i) DOM Model.(7)
ii) DOM2 Event Model (6)
BTL2 Understand
5
i) Design andIllustrate a web page to create a clock with timing event. (4)
ii) Demonstrate about validation .(5)
iii) Examine Radio button with example(4)
BTL3 Apply
6 i) Describe a java script for displaying the context menu(7)
ii) List various control objects in form processing(6) BTL1 Remember
7
i) Relate a java script to display the welcome message using the alert
whenever button of a html form is pressed(4)
ii) Demonstrate on DHTML with JavaScript(4)
iii) Classify moving elements. (5)
BTL3 Apply
8 Analyze about various JavaScript objects (13) BTL4 Analyze
9 i) Integrate how servlets work(7)
ii) Explain and develop the Servlet API.(6) BTL6 Create
10
Assume that a database has a table Employee with two columns
Employee Id and Name . Assume that the administrator user id and
password to access to access the database table are Scott and Tiger . Write
a JDBC program that can query and print all entries in the table
BTL5 Evaluate
employee. Make the database using type 2 driver database.driver and
connection string jdbc :db.oci. ( 13)
11 i) List the basic concepts in JSP.(7)
ii) Describe about Servlet-Database Connectivity(6) BTL1 Remember
12
i) Discuss about JSTL.(7)
ii) Summarize a client server JSP program to find simple intrest and display
the result in client. (6)
BTL2 Understand
13
Explain
i) Scriptlets(3)
ii) Implicit JSP Objects.(3)
iii) Expression.(3)
iv) Declarations.(4)
BTL4 Analyze
14 i) Explain about the standard actions in JSP. (7)
ii) Analyze MVC architecture of JSP. (6) BTL4 Analyze
PART – C
S.No QUESTIONS LEVEL COMPETENCE
1 Develop a Scientific calculator using HTML and JSP(15) BTL6 Create
2 Write a DHTML program to handle the user click event.(15) BTL6 Create
3 Explain the use of cookies for tracking for tracking requests with a
program(15) BTL4 Analyze
4
Consider a java script and HTML to create a page with two panes. The
first pane ( on left )should have a text area where HTML code can bet
typed by the user . The pane on theleft should have a text area where
HTML code can be typed by the user . The pane on theright side should
display the preview of the HTML code typed by the user, as it would
beseen on the browser.(15)
BTL5 Evaluate
UNIT IV - PHP and XML
An introduction to PHP: PHP- Using PHP- Variables- Program control- Built-in functions-Connecting to Database
– Using Cookies-Regular Expressions; XML: Basic XML- Document Type Definition- XML Schema DOM and
Presenting XML, XML Parsers and Validation, XSL and XSLT Transformation, News Feed (RSS and ATOM)
PART - A
S.No QUESTIONS LEVEL COMPETENCE
1. What is Variable? Identify the variables are declared in PHP. BTL1 Remember
2. Show the possible data types available in PHP. BTL3 Apply
3. Define PHP. List the features. BTL1 Remember
4. Name the XML syntax rules. BTL1 Remember
5. Give the difference between DTD and XML schema for defining XML
document structure with appropriate examples. BTL2 Understand
6. Quoteappropriate javascriptcode to remove an element (current
element)from a DOM BTL1 Remember
7. Classify the difference between echo() & print() functions. BTL3 Apply
8. Infer when should the super global arrays in PHP be used? Which
super globalarray in PHP would contain a HTML form’s POST data? BTL4 Analyze
9. Analyze about Query String in PHP. BTL4 Analyze
10. Show an example for XML namespace. BTL3 Apply
11. Tell about XPATH and its advantage. BTL1 Remember
12. Why is XSLT an important tool for in development of web
applications? BTL1 Remember
13. Assess the data types in XML schema. BTL5 Evaluate
14. Evaluate the process of displaying XML document in browser. BTL5 Evaluate
15. How would you prepare the steps to get the RSS file on web? BTL6 Create
16. Summarize about the need for Namespace in XML. BTL2 Understand
17. Can you discuss the importance of RSS? BTL2 Understand
18. Analyze on ATOM in RSS. BTL4 Analyze
19. Rewrite the declaration for elements in XML. BTL6 Create
20. Distinguish between DOM & SAX? BTL2 Understand
PART - B
S.No QUESTIONS LEVEL COMPETENCE
1 i) Describe about the introduction and installation of PHP.(7)
ii) What are variables in PHP list out.(6) BTL1 Remember
2
i) Discuss the data types in PHP.(5)
ii) Interpret scalar type conversion .(4)
iii) Discuss about the output document in PHP(4)
BTL2 Understand
3 i) Demonstrate on Program control &Looping structure. (7)
ii) Illustrate Arrays in PHP.(6) BTL3 Apply
4
Createa webserver based chat application using PHP. The application
should provide the following functions:
i) Login
ii) Send message (to one or more contacts)
iii) Receive messages(from one or more contacts)
iv) Add/delete/modify the contact list of the user.
Discuss the application’s user interface and use comments in PHP to
explain the code clearly.
BTL6 Create
5
i) Describe in detail about database connectivity(7)
ii) List out the various activities involved in MYSQL and PHP
connectivity.(6)
BTL1 Remember
6 Identify and explain about database connectivity illustrate PHP
connectivity with any of the databases.(13) BTL1 Remember
7 i) Discuss on methods for using cookies (7)
ii) Give a note on regular expressions(6) BTL2 Understand
8 Explain the basics of XML (13) BTL5 Evaluate
9 i) Demonstrate the building blocks of DOM.(7)
ii) Classify the types of DTD (6) BTL3 Apply
10 i) How do you infer the merits & demerits of DTD.(7)
ii) Explain about DOM and Presenting XML(6)
BTL4
Analyze
11 i) List out data types & simple types of XML(7)
ii) Explain about the attributes of XML.(6) BTL1 Remember
12
Summarize on the following
i) DOM based Parsing.(7)
ii) SAX based Parsing.(6)
BTL2 Understand
13 i) Compare and contrast RSS & ATOM.(7)
ii) Explain in detail about XSL elements.(6) BTL4 Analyze
14
Explain about
i) XSL and XSLT transformation(7)
ii) Comparison of DOM & SAX (6)
BTL4 Analyze
PART – C
S.No QUESTIONS LEVEL COMPETENCE
1 Explainhow you shall carry out String Manipulations using a PHP
Program(15) BTL4 Analyze
2 Developthe steps in connecting PHP code to a database(15) BTL6 Create
3 Write in detail the XML schema , built in and user defined data type in
detail.(15) BTL4 Create
4 Summarizeabout XML schema and XML Parsers and Validation.(15) BTL5 Evaluate
UNIT V - INTRODUCTION TO AJAX and WEB SERVICES
AJAX: Ajax Client Server Architecture-XML Http Request Object-Call Back Methods; Web
Services: Introduction- Java web services Basics – Creating, Publishing, Testing and Describing a Web services
(WSDL)-Consuming a web service, Database Driven web service from an application – SOAP.
PART - A
S.No QUESTIONS LEVEL COMPETENCE
1. Tell about advantages of AJAX. BTL1 Remember
2. Give the usage of UDDI in web service. BTL2 Understand
3. DefineWSDL. BTL1 Remember
4. Express the structure of the SOAP message. BTL2 Understand
5. Differentiate DOM and SAX in XML processing. BTL4 Analyze
6. What is XMLHttp Request object? List its properties. BTL1 Remember
7. What is the role of a callback function in performing a partial page
update in an AJAX application. BTL1 Remember
8. Express the working of AJAX. BTL2 Understand
9. Can you develop the service end point interface in RPC? BTL6 Apply
10. Give the uses of WSDL along with its definition. BTL2 Understand
11. Compare SOAP and HTTP. BTL4 Analyze
12. Summarize the need for enhancing security in web services. BTL5 Evaluate
13. Name the types of indicators along with the definition. BTL1 Remember
14. List out the data types that are available in web services. BTL1 Remember
15. Discover an example for web service registry along with its functions. BTL3 Apply
16. Analyze the need for web service. BTL4 Analyze
17. Classify the basic concepts behind JAX-RPC technology. BTL3 Apply
18. Can you illustrate on Complex types? BTL3 Apply
19. Summarize the steps for empty element. BTL5 Evaluate
20. Rewrite the definition for UDDI. BTL6 Create
PART - B
S.No QUESTIONS LEVEL COMPETENCE
1 i) Describe in detail about the AJAX architecture (7)
ii) List out the call back methods.(6) BTL1 Remember
2 i) Analyze various concepts of RPC.(7)
ii) Explain the basic concepts behind JAX-RPC.(6) BTL4 Analyze
3 i) Narrate and formulate the installation of JWSDP(7)
ii) Develop the steps for web service client.(6) BTL6 Create
4 Explain in detail about creating, publishing and testing of web
services(13) BTL2 Understand
5 i) Deduce any two elements of WSDL.(7)
ii) Explain the steps for writing web service (6) BTL5 Evaluate
6 Describe briefly about the elements of WSDL(13) BTL1 Remember
7 i) Summarize on the structure of SOAP (7)
ii) Describe briefly about SOAP & HTTP.(6) BTL2 Understand
8 i) Demonstrate the building blocks of SOAP. (7)
ii) Classify the encoding of struct data and array.(6) BTL3 Apply
9 Describe the procedure for database driven web service.(13) BTL1 Remember
10 Illustrate on web services for writing web service client along with the
description of WSDL(13) BTL3 Apply
11 i) List out the installation steps of JWSDP. (7)
ii) Describe on Simple Object Access Protocol. (6) BTL1 Remember
12 i) Discuss the XMLHttpRequest Object with example. (7)
ii) Describeabout java web service basics. (6) BTL2 Understand
13 i) Explain in detail about SOAP encoding. (7)
ii) Point out the RPC representation model. (6) BTL4 Analyze
14 Analyze the various steps in database driven web service with some
example. (13) BTL4 Analyze
PART – C
S.No QUESTIONS LEVEL COMPETENCE
1 Write in detail with an example of Java Web Services.(15) BTL6 Create
2 Summarize Ajax Client server architecture in detail.(15) BTL4 Evaluate
3 Write in detailabout SOAP and WSDL.(15) BTL6 Create
4 Compare and contrast the additional web application architecture and
AJAX Based web application architecture.(15) BTL4 Analyze