67
C O OM P P U UTER SCIENCE & EN G GI N NEERING C O OU R RSE DIARY (ACADEMIC YEAR 2011-12) VII SEMESTER Name : _____________________________________________ USN : _____________________________________________ Semester & Section : _____________________________________________ The Mission “The mission of our institutions is to provide world class education in our chosen fields and prepare people of character, caliber and vision to build the future world”

7 Sem Course Diary

Embed Size (px)

Citation preview

CCOOMM PPUUTTEERR SSCCII EENNCCEE && EENNGGII NNEEEERRII NNGG

CCOOUURRSSEE DDII AARRYY

(ACADEMIC YEAR 2011-12)

VVII II SSEEMM EESSTTEERR Name : _____________________________________________ USN : _____________________________________________ Semester & Section : _____________________________________________

The Mission

“The mission of our institutions is to provide

world class education in our chosen fields and

prepare people of character, caliber and vision

to build the future world”

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 2 COURSEDIARY

INDEX

SNO SUB.CODE SUBJECT PAGENO

1 06CS71 OBJECT-ORIENTED MODELING & DESIGN 3

2 06IS72 SOFTWARE ARCHITECTURE 11

3 06CS73 WEB PROGRAMMING 19

4 06CS74 EMBEDDED COMPUTING SYSTEMS 26

5 06CS753 JAVA AND J2EE 32

6 06CS761 C# AND .NET 40

7 06CSL77 NETWORKING LABORATORY 46

8 06CSL78 WEB PROGRAMMING LABORATORY 50

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 3 COURSEDIARY

MVJ COLLEGE OF ENGINEERING

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

VII SEMEMSTER SCHEME / SYLLABUS

Elective II (Group - B) Elective III (Group - C)

06CS751 Advanced DBMS 06CS761 C# Programming and .Net

06CS752 Digital Signal Processing 06CS762 Digital Image Processing

06CS753 Java and J2EE 06CS763 Game Theory

06CS754 Multimedia Computing 06CS764 Artificial Intelligence

06CS755 Data Mining 06CS765 VLSI Design & Algorithms

06CS756 Neural Networks 06CS766 Fuzzy Logic

Sl. No. Subject Code Title of the Subject Teaching

Dept.

Teaching Hrs / Week Examination

Theory Practical. Duration

(Hrs)

Marks IA Theory /

Practical. Total

1 06CS71 Object-Oriented Modeling and Design

CSE/ISE 04 - 03 25 100 125

2 06IS72 Software Architectures CSE/ISE 04 - 03 25 100 125 3 06CS73 Programming the Web CSE/ISE 04 - 03 25 100 125

4 06CS74/06IS752Embedded Computing Systems

CSE/ISE 04 - 03 25 100 125

5 06CS75x Elective II (Group-B) CSE/ISE 04 - 03 25 100 125 6 06CS76x Elective III (Group-C) CSE/ISE 04 - 03 25 100 125 7 06CSL77 Networks Laboratory CSE/ISE - 03 03 25 50 75 8 06CSL78 Web Programming Laboratory CSE/ISE - 03 03 25 50 75

Total 24 06 24 200 700 900

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 4 COURSEDIARY

OBJECT-ORIENTED MODELING & DESIGN

06CS71

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 5 COURSEDIARY

OBJECT-ORIENTED MODELING AND DESIGN

SYLLABUS

Subject Code : 06CS71 IA Marks: 25 No. of Lecture Hrs./ Week : 04 Exam Hours : 03 Total No. of Lecture Hrs. : 52 Exam Marks : 100

PART - A

UNIT - 1 INTRODUCTION, MODELING CONCEPTS, CLASS MODELING: 7 Hours What is Object Orientation? What is OO development? OO themes; Evidence for usefulness of OO development; OO modeling history. Modeling as Design Technique: Modeling; abstraction; The three models. Class Modeling: Object and class concepts; Link and associations concepts; Generalization and inheritance; A sample class model; Navigation of class models; Practical tips. UNIT – 2 ADVANCED CLASS MODELING, STATE MODELING: 6 Hours Advanced object and class concepts; Association ends; N-ary associations; Aggregation; Abstract classes; Multiple inheritance; Metadata; Reification; Constraints; Derived data; Packages; Practical tips. State Modeling: Events, States, Transitions and Conditions; State diagrams; State diagram behavior; Practical tips. UNIT – 3 ADVANCED STATE MODELING, INTERACTION MODEL ING: 6 Hours Advanced State Modeling: Nested state diagrams; Nested states; Signal generalization; Concurrency; A sample state model; Relation of class and state models; Practical tips. Interaction Modeling: Use case models; Sequence models; Activity models. Use case relationships; Procedural sequence models; Special constructs for activity models. UNIT – 4 PROCESS OVERVIEW, SYSTEM CONCEPTION, DOMAI N 7 Hours ANALYSIS: Process Overview: Development stages; Development life cycle. System Conception: Devising a system concept; Elaborating a concept; Preparing a problem statement. Domain Analysis: Overview of analysis; Domain class model; Domain state model; Domain interaction model; Iterating the analysis.

PART – B

UNIT – 5 APPLICATION ANALYSIS, SYSTEM DESIGN: 7 H ours Application Analysis: Application interaction model; Application class model; Application state model; Adding operations. Overview of system design; Estimating performance; Making a reuse plan; Breaking a system in to sub-systems; Identifying concurrency; Allocation of sub-systems; Management of data storage; Handling global resources; Choosing a software control strategy; Handling boundary conditions; Setting the trade-off priorities; Common architectural styles; Architecture of the ATM system as the example. UNIT – 6 CLASS DESIGN, IMPLEMENTATION MODELING, LEG ACY 7 Hours SYSTEMS: Class Design: Overview of class design; Bridging the gap; Realizing use cases; Designing algorithms; Recursing downwards, Refactoring; Design optimization; Reification of behavior; Adjustment of inheritance; Organizing a class design; ATM example. Implementation Modeling: Overview of implementation; Fine-tuning classes; Fine-tuning generalizations; Realizing associations; Testing. Legacy Systems: Reverse engineering; Building the class models; Building the interaction model; Building the state model; Reverse engineering tips; Wrapping; Maintenance.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 6 COURSEDIARY

UNIT – 7 DESIGN PATTERNS – 1: 6 Hours What is a pattern and what makes a pattern? Pattern categories; Relationships between patterns; Pattern description. Communication Patterns: Forwarder-Receiver; Client-Dispatcher-Server; Publisher-Subscriber. UNIT – 8 DESIGN PATTERNS – 2, IDIOMS: 6 Hours Management Patterns: Command processor; View handler. Idioms: Introduction; What can idioms provide? Idioms and style; Where to find idioms; Counted Pointer example. TEXT BOOKS: 1. Object-Oriented Modeling and Design with UML – Michael Blaha, James Rumbaugh, 2nd Edition, Pearson Education, 2005. 2. Pattern-Oriented Software Architecture: A System of Patterns - Volume 1– Frank Buschmann, Regine Meunier, Hans Rohnert, Peter Sommerlad, Michael Stal, John Wiley and Sons, 2006. REFERENCE BOOKS: 1. Object-Oriented Analysis and Design with Applications – Grady Booch et al, 3rd Edition, Pearson Education, 2007. 2. Practical Object-Oriented Design with UML – Mark Priestley, 2nd Edition, Tata McGraw-Hill, 2003. 3. Object-Oriented Design with UML and JAVA – K. Barclay, J. Savage, Elsevier, 2008. 4. The Unified Modeling Language User Guide – Booch, G., Rumbaugh, J., and Jacobson I, 2nd Edition, Pearson, 2005. 5. Design Patterns: Elements of Reusable Object-Oriented Software – E. Gamma, R. Helm, R. Johnson, J. Vlissides, Addison- Wesley, 1995. 6. Object-Oriented Systems Analysis and Design Using UML – Simon Bennett, Steve McRobb and Ray Farmer, 2nd Edition, Tata McGraw-Hill, 2002.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 7 COURSEDIARY

OBJECT-ORIENTED MODELING AND DESIGN LESSON PLAN

Sub Code : 06CS71 IA Marks : 25 Hrs/Week : 05 Exam Hours : 03 Total Hrs : 62 (50min*62) Exam Marks: 100 SI.No Chapter Hour

No Topics to be Covered

1.

Introduction

Modeling Concepts

Class Modeling

1 What is object orientation? What is OO development?

2 OO themes: Evidence for usefulness of OO development. OO modeling history.

3 Modeling as Design Technique: Modeling; abstraction.

4 The three models. Class modeling Object and class concepts.

5 Link and associations concepts 6 Generalization and inheritance.

7 A Simple Class models, Navigation of class models.

8 Practical tips.

2.

Advanced Class Modeling

State Modeling

9 Advanced concepts. Association ends. N-ary association

10 Aggregation, and abstract classes.

11 Multiple inheritances, metadata

12 Reification, Constraints. 13 Drived data, Packeges, Practical tips. 14 State Modeling: Events 15 StatesTransctions, Conditions. 16 Advanced state modeling State Diagrams and

State Diagram Behavior, Practical Tips

3.

Advanced state modeling

Interaction modeling

17 Nested state Diagrams, Nested states

18 Signal Generation.

19 A sample state model

20 Relation of class and state models. 21 Interaction modeling: Use Case models 22 Sequence models, Activity Relationships 23 Use case Relationships, Procedural sequence

models 24 Special constructs for Activity models.

4.

Process Overview

System Conception Domain Analysis

25 Process view Development stages 26 Development life cycle. 27 Devising a system concept, Elaborating a concept 28 Preparing a problem statement 29 Domain class model 30 Domain state model 31 Domain interaction model 32 Iterating the analysis

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 8 COURSEDIARY

5.

Application Analysis System Design

33 Application interaction model, Application class model

34 Application state model, adding operation. 35 Estimating performance, Making a reuse plan,

Breaking a system in to sub-system. 36 Allocation of Sub systems, Management of Data

Storage 37 Handling global resources 38 Choosing a software control strategy, Handling

boundary conditions 39 Setting the trade-off priorities: Common

architectural styles. 40 Architecture of the ATM system as the example

6.

Class Design Implementation

Modeling Legacy Systems.

41 Overview of class design, Bridging the gap 42 Realizing use cases, Deigning Algorithms. 43 Recur sing downward, Refactoring, Design

optimization, Reification of behavior, Adjustment of inheritance.

44 Organizing a class Design, ATM examples 45 Implementation Modeling. Overview of

implementation 46 Fin-tuning classes., Fine-tuning generalizations.

Realizing associations, Testing Legacy Systems. 47 Reverse engineering, Building the class models,

building the interaction models. 48 Building the state model, Reverse engineering

tips, Wrapping, Maintenance.

7.

Design Patterns 1 49 What is a pattern and what makes a pattern? 50 Pattern categories, Relationship between patterns 51 Pattern description. 52 Communication Patterns 53 Forward-Receiver 54 Client-Dispatcher-Server 55 Publisher-Subscriber.

8.

Design Patterns 2, Idioms

56 Management Patterns 57 Command processor 58 View handler 59 Idioms: Introductions, What can idioms provide? 60 Idioms and style 61 Where to find idioms 62 Counted Pointer example.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 9 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 10 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 11 COURSEDIARY

SOFTWARE ARCHITECTURES

06IS72

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 12 COURSEDIARY

SOFTWARE ARCHITECTURES

Subject Code: 06IS72 I.A. Marks : 25 Hours/Week : 04 Exam Hours: 03 Total Hours : 52 Exam Marks: 100

PART – A 1. Introduction 6 Hrs The Architecture Business Cycle: Where do architectures come from? Software processes and the architecture business cycle; what makes a “good” architecture? What software architecture is and what it is not; other points of view; Architectural patterns, reference models and reference architectures; Importance of software architecture; Architectural structures and views. 2. Architectural Styles and Case Studies 7 Hrs Architectural styles; Pipes and filters; Data abstraction and object-oriented organization; Event-based, implicit invocation; Layered systems; Repositories; Interpreters; Process control; Other familiar architectures; Heterogeneous architectures. Case Studies: Keyword in Context; Instrumentation software; Mobile robotics; Cruise control; Three vignettes in mixed style. 3. Quality 6 Hrs Functionality and architecture; Architecture and quality attributes; System quality attributes; Quality attribute scenarios in practice; Other system quality attributes; Business qualities; Architecture qualities. Achieving Quality: Introducing tactics; Availability tactics; Modifiability tactics; Performance tactics; Security tactics; Testability tactics; Usability tactics; Relationship of tactics to architectural patterns; Architectural patterns and styles. 4. Architectural Patterns – 1 7 Hrs Introduction; From mud to structure: Layers, Pipes and Filters, Blackboard.

PART – B

5. Architectural Patterns – 2 7 Hrs Distributed Systems: Broker; Interactive Systems: MVC, Presentation-Abstraction- Control. 6. Architectural Patterns – 3 6 Hrs Adaptable Systems: Microkernel; Reflection. 7. Some Design Patterns 6 Hrs Structural decomposition: Whole – Part; Organization of work: Master – Slave; Access Control: Proxy. 8. Designing and Documenting Software Architecture 7 Hrs Architecture in the life cycle; Designing the architecture; Forming the team structure; Creating a skeletal system. Uses of architectural documentation; Views; Choosing the relevant views; Documenting a view; Documentation across views. Text Books: 1. Len Bass, Paul Clements, Rick Kazman: Software Architecture in Practice, 2nd Edition, Pearson Education, 2003. (Chapters 1, 2, 4, 5, 7, 9) 2. Frank Buschmann, Regine Meunier, Hans Rohnert, Peter Sommerlad, Michael Stal: Pattern-Oriented Software Architecture, A System of Patterns, Volume 1, John Wiley and Sons, 2006. (Chapters 2, 3.1 to 3.4) 3. Mary Shaw and David Garlan: Software Architecture- Perspectives on an Emerging Discipline, Prentice-Hall of India, 2007. (Chapters 1.1, 2, 3) Reference Books: 1. E. Gamma, R. Helm, R. Johnson, J. Vlissides: Design Patterns- Elements of Reusable Object-Oriented Software, Addison-Wesley, 1995. Web site for Patterns: http://www.hillside.net/patterns/

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 13 COURSEDIARY

M.V.J COLLEGE OF ENGINEERING Department of Computer Science & Engineering

LESSON PLAN— SOFTWARE ARCHITECTURES

SUBJECT CODE: 06IS72 IA MARKS: 25 HOURS/WEEK: 4 EXAM HOURS: 3 TOTAL HOURS: 52[50 mins*62] EXAM MARKS: 100

SL NO

CHAPTER HOUR NO

TOPICS TO BE COVERED

1

Introduction

1 The Architecture Business Cycle: Where do architectures come from? Software processes and the architecture business cycle

2 What makes a “good” architecture? What software architecture is and what it is not

3 Other points of view

4 Architectural patterns, reference models and reference architectures

5 Importance of software architecture 6 Architectural structures and views 7 Revision

2

Architectural Styles and Case Studies

8 Architectural styles; Pipes and filters

9 Data abstraction and object-oriented organization; Event-based, implicit invocation

10 Layered systems; Repositories 11 Interpreters; Process control

12 Other familiar architectures; Heterogeneous architectures

13 Case Studies: Keyword in Context; Instrumentation software

14 Mobile robotics; Cruise control; Three vignettes in mixed style.

15 Revision

3 Quality

16 Functionality and architecture; Architecture and quality attributes

17 System quality attributes; Quality attribute scenarios in practice

18 Other system quality attributes; Business qualities; Architecture qualities

19 Achieving Quality: Introducing tactics; Availability tactics; Modifiability tactics

20 Performance tactics; Security tactics; Testability tactics; Usability tactics

21 Relationship of tactics to architectural patterns; Architectural patterns and styles.

22 Revision

4 Architectural Patterns – 23 Introduction

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 14 COURSEDIARY

1 24 Introduction 25

From mud to structure: Layers, Pipes and Filters, Blackboard

26 27 28 29 30 Revision

5

Architectural Patterns – 2

31 Distributed Systems: Broker 32

33 34

Interactive Systems: MVC, Presentation-Abstraction-Control.

35 36 37 38 Revision

6 Architectural Patterns – 3

39 Adaptable Systems: Microkernel 40 Adaptable Systems: Microkernel 41 Adaptable Systems: Microkernel 42

Reflection.

43 44 45 Revision

7 Some Design Patterns

46 Structural decomposition: Whole – Part 47 Structural decomposition: Whole – Part 48 Organization of work: Master – Slave 49 Organization of work: Master – Slave 50 Access Control: Proxy. 51 Access Control: Proxy. 52 Revision

8 Designing and Documenting Software Architecture

53 Architecture in the life cycle; Designing the architecture

54 Forming the team structure; Creating a skeletal system.

55 Uses of architectural documentation 56 Views

57 Choosing the relevant views

58 Documenting a view 59 Documentation across views 60 Revision 61 Revision 62 Revision

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 15 COURSEDIARY

SOFTWARE ARCHITECTURE QUESTION BANK

1. A software architect is responsible for quality of a software product, comment.

2. Comment on the statement that every computing system with software has software architecture

3. Explain what one means by the statement that software product lines share a common

architecture

4. Why project-oriented approach superior to procedure oriented approach, and when does a

software architect take a decision in favor of OO based system to build a software system.

5. Consider a library system where a student can renew books from HOME by logging into the

college website which is hosting the library application. The system architect decided to use a

browser based system to access the website over the internet. Which diagram can be used by

software architect to capture this important architectural decision, illustrate.

6. Write short notes on analyzing and evaluating software architecture.

7. Explain how achieving a quality attribute like usability depends upon both big picture

(architecture) as well as on details (implementation, on architectural aspects).

8. What is testability, give a possible test scenario for a unit tester say testing a UNIT of the

software “SEARCH a BOOK” in the library system, make suitable assumptions and give us a

test scenario showing source, possible response and possible response measure for testability in

the specific case.

9. In an SRS one can document non functional requirements like probability. What do you

understand by probability? Give one or two strategies an architect may use to achieve

probability.

10. What is business quality, time to market?

11. Discuss how active redundancy can help fault recovery?

12. What is latency with respect to performance of a system? For the architectural structure pipe and

filter give the following:

a. motivation of the problem

b. solution that is the actual pattern

c. example from UNIX

d. advantages and disadvantages

13. What are design patterns? Why do we need them? Give an example design pattern.

14. Write short note on design pattern: factory pattern.

15. Which design pattern will you choose to convert the interface of a class into another interface

client expect? Why?

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 16 COURSEDIARY

16. Give sample C++ code for showing how an iterator pattern is used?

17. How does your organization currently decide whether proposed software architecture should be

adopted or not? How does it decide when software architecture has outlived its usefulness and

should be discarded in favor of another?

18. Make a business case, specific to the organization that tells whether or not conducting a software

architecture evaluation would pay off. Assume the cost estimates.

19. Consider a case where flawed software architecture led to the failure or delay of a software

system or project? Discuss what caused the problem and whether a software architecture

evaluation would have prevented the calamity.

20. Which quality attributes tend to be the most important to systems in an organization? How are

they specified? How does the architect know what they are, what they mean, and what precise

levels of each are required?

21. For each quality attribute hypothesize 3 different architectural decisions that would have an

effect on that attribute. For example, the decision to maintain a backup database would probably

increase a system’s availability.

22. Choose three or four pairs of quality attributes. For each pair(tradeoffs), hypothesize an

architectural decision that would increase the first quality attribute at the expense of the second.

Now hypothesis a different architectural decision that would raise the second but lower the first.

23. Are architectures influenced by the background and experience of the architect? Explain.

24. Explain Black board architecture realized as an Interpreter.

25. Discuss layered system architectural style, “Layered system supports for enhancement and

reuse” comment.

26. Discuss architectural structures and views.

27. Explain pipes and filters architectural style.

28. Explain the MVC model

29. In the architecture business cycle, how does the architecture affect the goals of the developing

organization?

30. Differentiate between :

a. Reference model and reference architecture

b. Architectural style and architectural pattern

c. Black box testing and white box testing

31. Consider a IBM course registration system based on the following needs:

a. register for courses

b. select course to teach

c. maintain course information

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 17 COURSEDIARY

d. maintain faculty information

e. maintain student information

f. create course catalog

based on this information describe the tactics that should be considered to address performance and

security of the above system.

32. Give an example of availability in terms of mean time to failure and mean time to repair. That is,

provide numeric values for the mean times and calculate the availability.

33. What information is used to create the quality scenario for a system?

34. How are architectural patterns related to tactics?

35. Explain architectural qualities in detail?

36. What is system quality attributes?

37. What is functionality? How are architecture and quality attributes related?

38. State and solve KWIC problem with various architecture and compare them.

39. What is the role of stakeholder in the construction of a software system?

40. Who are the 5 stakeholders in defining the software architecture? Explain their requirements in

brief.

41. What is mobile robotics? List the design consideration for its software. Give a solution & justify

why it is the best solution?

42. What is a distributed system? Explain the broker pattern in detail.

43. Define Interactive system. Explain PAC pattern in detail.

44. What is an adaptable system? Explain Microkernel, Reflection pattern in detail.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 18 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 19 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 20 COURSEDIARY

PROGRAMMING THE WEB 06CS73

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 21 COURSEDIARY

Programming the Web

Subject Code : 06CS73 IA Marks : 25

No. of Lecture Hrs./ Week

: 04 Exam Hours

: 03

Total No. of Lecture Hrs.

: 52 Exam Marks

: 100

PART – A

UNIT - 1 Fundamentals of Web, XHTML – 1: Internet, WWW, Web Browsers, and Web Servers; URLs; MIME; HTTP; Security; The Web Programmers Toolbox. XHTML: Origins and evolution of HTML and XHTML; Basic syntax; Standard XHTML document structure; Basic text markup. 6 Hours UNIT - 2 XHTML – 2: Images; Hypertext Links; Lists; Tables; Forms; Frames; Syntactic differences between HTML and XHTML. 6 Hours UNIT - 3 CSS: Introduction; Levels of style sheets; Style specification formats; Selector forms; Property value forms; Font properties; List properties; Color; Alignment of text; The Box model; Background images; The and tags; Conflict resolution. 6 Hours UNIT - 4 JAVASCRIPT: Overview of JavaScript; Object orientation and JavaScript; General syntactic characteristics; Primitives, operations, and expressions; Screen output and keyboard input; Control statements; Object creation and modification; Arrays; Functions; Constructor; Pattern matching using regular expressions; Errors in scripts; Examples. 8 Hours

PART – B

UNIT - 5 JAVASCRIPT AND HTML DOCUMENTS: The JavaScript execution environment;

The Document Object Model; Element access in JavaScript; Events and event handling; Handling events from the Body elements, Button elements, Text box and Password elements; The DOM 2 event model; The navigator object; DOM tree traversal and modification. 6 Hours

UNIT - 6 DYNAMIC DOCUMENTS WITH JAVASCRIPT: Introduction to dynamic

documents; Positioning elements; Moving elements; Element visibility; Changing colors and fonts; Dynamic content; Stacking elements; Locating the mouse cursor; Reacting to a mouse click; Slow movement of elements; Dragging and dropping elements. 6 Hours

UNIT - 7 XML: Introduction; Syntax; Document structure; Document Type definitions;

Namespaces; XML schemas; Displaying raw XML documents; Displaying XML documents with CSS; XSLT style sheets; XML processors; Web services. 6 Hours

UNIT - 8 PERL, CGI PROGRAMMING: Origins and uses of Perl; Scalars and their operations; Assignment statements and simple input and output; Control statements; Fundamentals of arrays; Hashes; References; Functions; Pattern matching; File input and output; Examples. The

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 22 COURSEDIARY

Common Gateway Interface; CGI linkage; Query string format; CGI.pm module; A survey example; Cookies. 8 Hours TEXT BOOK:

1. Programming the World Wide Web – Robert W. Sebesta, 4th Edition, Pearson Education, 2008.

REFERENCE BOOKS:

1. Internet & World Wide Web How to H program – M. Deitel, P.J. Deitel, A. B. Goldberg, 3rd Edition, Pearson Education / PHI, 2004.

2. Web Programming Building Internet Applications – Chris Bates, 3rd Edition, Wiley India, 2006.

3. The Web Warrior Guide to Web Programming – Xue Bai et al, Thomson, 2003.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 23 COURSEDIARY

Programming the Web

LESSON PLAN

Sub Code : 06CS73 IA Marks : 25 Hrs/Week : 05 Exam Hours : 03 Total Hrs : 62 (50min*62) Exam Marks: 100

CHAPTER NO OF HOURS TOPICS COVERED

UNIT - 1 Fundamentals of Web, XHTML – 1

1 Internet, WWW 2 Web Browsers, and Web Servers 3 URLs; MIME

4 HTTP

5 Security; The Web Programmers Toolbox.

6 XHTML 7 Origins and evolution of HTML and XHTML

8 Basic syntax; Standard XHTML document structure;

9 Basic text markup.

UNIT - 2 XHTML – 2: ;

10 Images; 11 Hypertext Links; Lists; 12 Tables; 13 Frames; 14 Forms 15 Syntactic differences between HTML and

XHTML. 16

UNIT - 3 CSS;

17 Introduction; Levels of style sheets

18 specification formats; Selector forms; Property value forms

19 Style; Font properties; 20 List properties; 21 Color; Alignment of text; 22 The Box model; 23 Background images; The and tags 24 Conflict resolution.

UNIT - 4 JAVASCRIPT

25 Overview of JavaScript; Object orientation and JavaScript; 26

27 General syntactic characteristics; Primitives, operations, and expressions 28

29 Screen output and keyboard input; Control statements;

30 Object creation and modification 31 Arrays; Functions; Constructor; 32 Pattern matching using regular expressions; 33 Errors in scripts; Examples.

34

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 24 COURSEDIARY

UNIT - 5 JAVASCRIPT AND HTML DOCUMENTS:

35 The JavaScript execution environment;

36 37 The Document Object Model;

38 Element access in JavaScript; Events and event handling;

39 Handling events from the Body elements, Button elements,

40 Text box and Password elements; 41 The DOM 2 event model; The navigator object; 42 DOM tree traversal and modification.

UNIT - 6 DYNAMIC DOCUMENTS WITH JAVASCRIPT: ;;;;

43 Introduction to dynamic documents

44 Positioning elements; Moving elements; Element visibility

45 Changing colors and fonts; Dynamic content; Stacking elements;

46 Locating the mouse cursor

47 Reacting to a mouse click; Slow movement of elements

48 Dragging and dropping elements.

UNIT - 7 XML:

49 Introduction; Syntax; Document structure 50 Document Type definitions; Namespaces; 51 XML schemas; Displaying raw XML documents; 52 Displaying XML documents with CSS 53 XSLT style sheets; 54 XML processors; Web services.

UNIT - 8 PERL, CGI PROGRAMMING

55 Origins and uses of Perl; Scalars and their operations;

56 Assignment statements and simple input and output; Control statements;

57 Fundamentals of arrays; Hashes; References;

58 Functions; Pattern matching; File input and output; Examples

59 :. The Common Gateway Interface; CGI linkage 60 Query string format 61 CGI.pm module 62 A survey example; Cookies

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 25 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 26 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 27 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 28 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 29 COURSEDIARY

EMBEDDED COMPUTING SYSTEMS 06CS74

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 30 COURSEDIARY

EMBEDDED COMPUTING SYSTEMS

Subject Code : 06CS74 IA Marks : 25 No. of Lecture Hrs./ Week : 04 Exam Hours : 03 Total No. of Lecture Hrs. : 52 Exam Marks : 100 UNIT - 1 INTRODUCTION TO EMBEDDED SYSTEMS – 1: Embedded systems; Processor embedded into a system; Embedded hardware units and devices in a system; Embedded software in a system; Examples of embedded systems; Embedded System-on-Chip (SoC) and use of VLSI circuit design technology; Complex systems design and processors; Design process in embedded system. UNIT - 2 INTRODUCTION TO EMBEDDED SYSTEMS – 2, DEVICES - 1: Formalization of system design; Design process and design examples; Classification of embedded systems; Skills required for an embedded system designer.I/O types and examples; Serial communication devices; Parallel device ports; Sophisticated interfacing features in device ports. UNIT - 3 DEVICES - 2, COMMUNICATION BUSES FOR DEVICE NETWORKS: Wireless devices; Timer and counting devices; Watchdog timer; Real time clock; Networked embedded systems; Serial bus communication protocols; Parallel bus device protocols; Internet enabled systems; Wireless and mobile system protocols. UNIT - 4 DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM : Device access without interrupts; ISR concept; Interrupt sources; Interrupt servicing mechanism; Multiple interrupts; Context and the periods for context-switching, interrupt latency and deadline; Classification of processors’ interrupt service mechanism from context-saving angle; Direct memory access; Device drivers programming. PART – B UNIT - 5 PROGRAM MODELING CONCEPTS, PROCESSES, THREADS, AND TASKS: Program models; DFG models; State machine programming models for event controlled program flow; Modeling of multiprocessor systems. Multiple processes in an application; Multiple threads in an application; Tasks and task states; Task and data; Distinctions between functions, ISRs and tasks. UNIT - 6 REAL-TIME OPERATING SYSTEMS – 1: Operating System services; Process management; Timer functions; Event functions; Memory management; Device, file and I/O sub-systems management; Interrupt routines in RTOS environment and handling of interrupt source calls. UNIT - 7 REAL-TIME OPERATING SYSTEMS – 2: Real-Time Operating Systems; Basic design using an RTOS; RTOS task scheduling models, interrupt latency and response times of the tasks as performance metrics; OS security issues.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 31 COURSEDIARY

UNIT - 8 EMBEDDED SOFTWARE DEVELOPMENT, TOOLS: Introduction; Host and target machines; Linking and locating software; Getting embedded software in to the target system; Issues in hardware-software design and codesign; Testing on host machine; Simulators; Laboratory tools.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 32 COURSEDIARY

MVJ COLLEGE OF ENGINEERING

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING EMBEDDED COMPUTING SYSTEMS

Subject Code : 06CS74/IS752 IA Marks : 25 No. of Lecture Hrs./ Week : 05 Exam Hours : 03 Total No. of Lecture Hrs. : 62 Exam Marks:100

CHAPTER NO OF HOURS

TOPICS COVERED

UNIT - 1 INTRODUCTION TO EMBEDDED SYSTEMS

1 Embedded systems; 2 Processor embedded into a system; 3 Embedded hardware units and devices in

a system; 4 Embedded software in a system

5 Examples of embedded systems;

6 Embedded System-on-Chip (SoC) and use of VLSI circuit design technology.

7 Complex systems design and processors; 8 Design process in embedded system. 9 Design process in embedded system.

UNIT - 2 INTRODUCTION TO EMBEDDED SYSTEMS – 2, DEVICES

10 Formalization of system design; Design process and design examples;

11 Classification of embedded systems; 12 Skills required for an embedded system

designer.; 13 I/O types and examples 14 Serial communication devices 15 Parallel device ports;.

16 Sophisticated interfacing features in device ports

UNIT - 3 DEVICES - 2, COMMUNICATION BUSES FOR DEVICE NETWORKS:

17 Wireless devices;

18 Timer and counting devices;

19 Watchdog timer; Real time clock;

20 Networked embedded systems;

21 Serial bus communication protocols; 22 Parallel bus device protocols; 23 Internet embedded systems; 24 Wireless and mobile system protocols.

UNIT - 4 DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM :

25 Device access without interrupts; 26 ISR concept 27 Interrupt sources; 28 Interrupt servicing mechanism; 29 Multiple interrupts; 30 Context and the periods for context-switching,

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 33 COURSEDIARY

31 interrupt latency and deadline;

32 Classification of processors’ interrupt service mechanism from context-saving angle;

33 Direct memory access; 34 Device drivers programming.

UNIT - 5 PROGRAM MODELING CONCEPTS, PROCESSES, THREADS, AND TASKS:

35 Program models; DFG models; 36 State machine programming models for event

controlled program flow; 37 Modeling of multiprocessor systems. Multiple

processes in an application; 38 Multiple threads in an application; 39 Tasks and task states; 40 Task and data; 41 Distinctions between functions, 42 ISRs and tasks.

UNIT - 6 REAL-TIME OPERATING SYSTEMS

43 Operating System services; 44 Process management; 45 Timer functions; Event functions; 46 Memory management; 47 Device, file and I/O sub-systems management 48 Interrupt routines in RTOS environment and

handling of interrupt source calls. UNIT - 7 REAL-TIME OPERATING SYSTEMS – 2:

49 Real-Time Operating Systems; 50 Basic design using an RTOS; 51 RTOS task scheduling models 52 interrupt latency 53 response times of the tasks as performance

metrics; 54 OS security issues.

UNIT - 8 EMBEDDED SOFTWARE DEVELOPMENT, TOOLS:

55 Introduction; 56 Host and target machines; 57 Linking and locating software; 58 Getting embedded software in to the target

system;

59 Issues in hardware-software design and co design;

60 Testing on host machine; 61 Simulators 62 Laboratory tools.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 34 COURSEDIARY

06CS74 - EMBEDDED COMPUTING SYSTEMS

Question Bank

1. What are the essential structural units in the following? A) Microprocessor b) an embedded processor c) a micro controller d) a DSP e) an ASIP. List each of these.

2. What are the advantages and disadvantages of the following? A) a processor with only a fixed-point arithmetic unit and b) a processor with additional floating –point arithmetic processing unit.

3. What are the techniques of power and energy management in a system? 4. What is the advantage of the following? a) stop instruction b)wait instruction c) Cache-use

disable instruction 5. When do we need multitasking OS? 6. Why should the embedded system RTOS be scalable? 7. When is SRAM used and when DRAM? Explain your answers. 8. What will be the reduction in power dissipation for a CMOS when the voltage reduces from a

5V to a 1.8V operation? 9. Justify the use of physical and virtual devices drives in embedded system. 10. How does a decoder help in memory and IO device interfacing? 11. How does a memory map help in designing a locator program? 12. Explain three stage pipeline, super scalar processing and branch and data dependency

penalties. 13. How do having separate caches for instruction, data and branch-transfer help? 14. Compare the advantages and disadvantages of data transfer using serial and parallel

ports/devices. 15. A device port may have multibyte data input buffer(s) and data output buffer(s). what are the

advantages of these? 16. Explain use of each control bit of I2C bus protocol. 17. Why do you need at least one timer device in an embedded system? 18. Compare different serial buses. 19. Compare different wireless protocols. 20. what are the advantages and disadvantages of busy and wait transfer mode for the I/O

devices? 21. Define context, interrupt latency and interrupt service deadline. 22. What are the advantages of RAM disk? 23. How is a file at the memory act handled as a device? 24. How is the vector address used for an interrupt source? 25. How is break point interrupt important for debugging embedded software? 26. What do you mean by POSIX function? 27. What are the uses of hardware –assigned priorities in an interrupt service mechanism? 28. How is the context switching handled in ARM7? 29. How will you schedule an SMID instruction on two processors? 30. What are the features of UML? 31. How is an anonymous object denoted in UML? 32. Draw multiprocessor system for the cases: a) tightly coupled the memory b)loosely coupled

c)coupled by mesh 33. List the layers between application and hardware? 34. What should be the goal of an OS? 35. List the functions of a kernel. What can be the functions outside the kernel? 36. List the advantages and disadvantages of fixed and dynamic block allocations by the OS?

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 35 COURSEDIARY

37. Define a network OS. How does a network differ from a conventional OS? 38. What are the OS functions at an RTOS kernel? 39. When do you use cooperative scheduling and when preemptive? 40. Compared to scheduling strategies for the real time scheduling-preemptive mode and round

robin scheduling? 41. What are the cases in which time slice scheduling helps? 42. How does a preemption event occur? 43. What should be the OS security policy? 44. What do you mean by hierarchical RTOS? 45. What is dynamic program scheduling? 46. Explain the applications of simulation annealing method? 47. Show the use of semaphore for synchronizing the tasks as cooperative scheduled tasks in

preemptive RTOS? 48. When do you use CPU load for performance metrics of real time systems? 49. Describe functions of complier, linker, locater, loader and integrated development systems? 50. Explain the functions of device programmer? 51. How do you solve the problem of interface specific data types? 52. Why are the device drivers of the program memory and processor sensitive? 53. Describe the performance accelerating methods? 54. Why is host systems used for most stages of development and test and simulation? 55. Give examples of hardware dependent and hardware independent codes? 56. Which are the popular simulators used? 57. List prototyping tools with a popular RTOS? 58. What do you mean by application system for a target system? 59. What is cross assembler? 60. Explain the use of the following hardware tools: target emulator and ICE.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 36 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 37 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 38 COURSEDIARY

JAVA AND J2EE 06CS753

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 39 COURSEDIARY

JAVA AND J2EE SYLLABUS

Subject Code : 06CS753 IA Marks : 25 No. of Lecture Hrs./ Week : 04 Exam Hours : 03 Total No. of Lecture Hrs. : 52 Exam Marks : 100

PART - A UNIT - 1 INTRODUCTION TO JAVA : Java and Java applications; Java Development Kit (JDK); Java is interpreted, Byte Code, JVM; Object oriented programming; Simple Java programs. Data types and other tokens: Boolean variables, int, long, char, operators, arrays, white spaces, literals, assigning values; Creating and destroying objects; Access specifies. Operators and Expressions: Arithmetic Operators, Bitwise operators, Relational operators, The Assignment Operator, The? Operator; Operator Precedence; Logical expression; Type casting; Strings Control Statements: Selection statements, iteration statements, Jump Statements. 6 Hours UNIT - 2 CLASSES, INHERITANCE, EXCEPTIONS, APPLETS: Classes: Classes in Java; Declaring a class; Class name; Super classes; Constructors; Creating instances of class; Inner classes. Inheritance: Simple, multiple, and multilevel inheritance; Overriding, overloading. Exception handling: Exception handling in Java. The Applet Class: Two types of Applets; Applet basics; Applet Architecture; An Applet skeleton; Simple Applet display methods; Requesting repainting; Using the Status Window; The HTML APPLET tag; Passing parameters to Applets; getDocumentbase() and get Codebase(); ApletContext and showDocument(); The AudioClip Interface; The AppletStub Interface; Output to the Console. 6 Hours UNIT - 3 MULTI THREADED PROGRAMMING, EVENT HANDLING: Multi Threaded Programming: What are threads? How to make the classes threadable; Extending threads; Implementing runnable; Synchronization; Changing state of the thread; Bounded buffer problems, read-write problem, producer-consumer problems. Event Handling: Two event handling mechanisms; The delegation event model; Event classes; Sources of events; Event listener interfaces; Using the delegation event model; Adapter classes; Inner classes. 7 Hours UNIT - 4 SWINGS: Swings: The origins of Swing; Two key Swing features; Components and Containers; The Swing Packages; A simple Swing Application; Create a Swing Applet; Jlabel and ImageIcon; JTextField;The Swing Buttons; JTabbedpane; JScrollPane; JList; JComboBox; JTable. 7 Hours

PART – B UNIT - 5 JAVA 2 ENTERPRISE EDITION OVERVIEW, DATABASE ACCESS : Overview of J2EE and J2SE. The Concept of JDBC; JDBC Driver Types; JDBC Packages; A Brief Overview of the JDBC process; Database Connection; Associating the JDBC/ODBC Bridge with the Database; Statement Objects; ResultSet; Transaction Processing; Metadata, Data types; Exceptions. 6Hours

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 40 COURSEDIARY

UNIT - 6 SERVLETS: Background; The Life Cycle of a Servlet; Using Tomcat for Servlet Development; A simple Servlet; The Servlet API; The Javax.servlet Package; Reading Servlet Parameter; The Javax.servlet.http package; Handling HTTP Requests and Responses; Using Cookies; Session Tracking. 7 Hours UNIT - 7 JSP, RMI: Java Server Pages (JSP): JSP, JSP Tags, Tomcat, Request String, User Sessions, Cookies, Session Objects. Java Remote Method Invocation: Remote Method Invocation concept; Server side, Client side. 6 Hours UNIT - 8 ENTERPRISE JAVA BEANS: Enterprise java Beans; Deployment Descriptors; Session Java Bean, Entity Java Bean; Message-Driven Bean; The JAR File7 Hours TEXT BOOKS: 1. Java - The Complete Reference – Herbert Schildt, 7th Edition, Tata McGraw Hill, 2007. 2. J2EE - The Complete Reference – Jim Keogh, Tata McGraw Hill, 2007. REFERENCE BOOKS: 1. Introduction to JAVA Programming – Y. Daniel Liang, 6th Edition, Pearson Education, 2007. 2. The J2EE Tutorial – Stephanie Bodoff et al, 2nd Edition, Pearson Education, 2004.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 41 COURSEDIARY

M.V.J. COLLEGE OF ENGINEERING Department of Computer Science& Engineering

LESSON PLAN Class : VII Sem Total Hours: 62[50min*62classes] Subject: JAVA AND J2EE Hours week: 5 Subject Code: 06CS753 IA Marks : 25

Sl. No. Chapter Hour

No Topics to be covered

1 INTRODUCTION TO JAVA

1 Java and Java applications; Java Development Kit (JDK); Java is interpreted, Byte Code, JVM; Object oriented programming; Simple Java programs

2 Data types and other tokens: Boolean variables, int, long, char, operators, arrays, white spaces, literals, assigning values

3 Creating and destroying objects; Access specifiers 4 Operators and Expressions: Arithmetic Operators, Bitwise

operators, Relational operators, The Assignment Operator 5 The? Operator; Operator Precedence

6 Logical expression; Type casting

7 Strings Control Statements: Selection statements, iteration statements, Jump Statements

2 CLASSES, INHERITANCE, EXCEPTIONS, APPLETS

8 Classes: Classes in Java; Declaring a class; Class name; Super classes

9 Constructors; Creating instances of class; Inner classes

10 Inheritance: Simple, multiple, and multilevel inheritance; Overriding, overloading

11 Exception handling: Exception handling in Java 12 The Applet Class: Two types of Applets; Applet basics; Applet

Architecture; An Applet skeleton; Simple Applet display methods 13 Requesting repainting; Using the Status Window; The HTML

APPLET tag; Passing parameters to Applets 14 getDocumentbase() and getCodebase(); ApletContext and show

Document() 15 The AudioClip Interface; The AppletStub Interface; Output to the

Console 3 MULTI

THREADED PROGRAMMING, EVENT HANDLING

16 Multi Threaded Programming: What are threads? How to make the classes threadable

17 Extending threads; Implementing runnable

18 Synchronization; Changing state of the thread; Bounded buffer problems

19 read-write problem, producer-consumer problems 20 Event Handling: Two event handling mechanisms; The delegation

event model 21 Event classes; Sources of events 22 Event listener interfaces; Using the delegation event model 23 Adapter classes; Inner classes

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 42 COURSEDIARY

4 SWINGS 24 Swings: The origins of Swing

25 Two key Swing features; Components and Containers 26 The Swing Packages 27 A simple Swing Application 28 Create a Swing Applet

29 Jlabel and ImageIcon; JtextField 30 The Swing Buttons; JTabbedpane; JscrollPane 31 JList; JComboBox; Jtable

5 JAVA 2 ENTERPRISE EDITION OVERVIEW, DATABASE ACCESS

32 Overview of J2EE and J2SE 33 The Concept of JDBC; JDBC Driver Types; JDBC Packages 34 A Brief Overview of the JDBC process 35 Database Connection

36 Associating the JDBC/ODBC Bridge with the Database; Statement Objects; ResultSet

37 Transaction Processing; Metadata 38 Data types; Exceptions

6 SERVLETS 39 Background; The Life Cycle of a Servlet 40 Using Tomcat for Servlet Development 41 A simple Servlet; The Servlet API 42 The Javax.servlet Package 43 Reading Servlet Parameter 44 The Javax.servlet.http package 45 Handling HTTP Requests and Responses 46 Using Cookies; 47 Session Tracking

7 JSP, RMI 48 Java Server Pages (JSP): JSP, JSP Tags 49 Tomcat, Request String 50 User Sessions, Cookies 51 Session Objects 52 Java Remote Method Invocation:

53 Remote Method Invocation concept 54 Server side, Client side

8 ENTERPRISE JAVA BEANS

55 Enterprise java Beans 56 Deployment Descriptors 57 Session Java Bean 58 Session Java Bean

59 Entity Java Bean 60 Message-Driven Bean 61 The JAR File 62 The JAR file

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 43 COURSEDIARY

06CS753 – JAVA AND J2EE

QUESTION BANK

UNIT – I 1. Write the difference between Java & C++, describe the use of garbage collector. 2. Why the is important to the Internet? 3. Explain how Java is a Portable Language? 4. Explain in detail about the Java Buzzwords. 5. Explain in detail about the two control statements in Java. 6. Explain briefly the lexical elements in java? 7. Explain the following statements with examples:

a. while and do-while b. break statement and continue statement 8. Explain the use of the following keywords with examples.

a. This b. super c. final and finalize d. abstract e. interface 9. Explain the packages and interface statement with examples. 10. How the Java compiler making the Type Conversion and Casting? Explain. 11. Discuss in detail about Java Arrays. 12. Explain the packages and interface statement with examples. 13. Explain the following:

a. getChars() and substring() methods b. indexOf() and lastIndexOf() methods

14. Discuss in detail about Bitwise Operators in Java. 15. Explain about the Iteration Statements in Java.

UNIT – II 16. Discuss in detail about the Class Fundamentals. 17. Explain how to assign Object Reference Variable in Java. 18. What are methods in Java? Explain about Java Methods. 19. Explain about Constructors in Java, and the use of “this” keyword. 20. What is Stack? Explain about the Java Stack Class. 21. Discuss in detail about overloading the Java Methods and Constructors. 22. Explain the use of “static” and “final” keywords in Java. 23. Explore the Java String Class? 24. Discuss in detail about the Inheritance in Java, and explain the use of “super”. 25. Discuss in detail about the Method Overriding and Dynamic Method Dispatch. 26. Explain the use of Abstract Class. 27. Discuss in detail about the Exception-Handling Fundamentals in Java. 28. Write a summary about the Java’s Built-in Exceptions and Chained Exceptions. 29. Discuss in detail about the Applet Skeleton & Architecture. 30. Write a Simple Applet Program and explain how to run? 31. Explain the following functions:

a. getDocumentBase( ) and getCodeBase( ) b. AppletContext and showDocument( )

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 44 COURSEDIARY

UNIT - III 32. Explain the Java Thread Model. 33. With suitable example discuss in detail about creating a Thread in Java. 34. How to create multiple threads in Java? 35. Explain in detail about Synchronization in Java? 36. Explain how to create Interthread Communication in Java? 37. Explain in detail about the Event Handling Mechanisms in Java. 38. What are the different types of Event Classes available in Java? Explain. 39. What are the different types of Event Listener Interfaces available in Java? Explain. 40. Differentiate between the Event Listener Interfaces and the Adapter Classes. UNIT IV 41. Write in detail about the Swing Components and Containers. 42. Explain with suitable example how to create swing applet? 43. What are the different Button classes available in Java swing package? Explain. 44. Write short notes on the following:

JTabbedPane a. JScrollPane b. JList c. JComboBox d. JTable

UNIT - V

45. What are the different JDBC Driver Types are available? Explain their needs. 46. Explain in detail about the JDBC Process with suitable examples. 47. Write a Java Program to select, delete and update the records using JDBC Objects. 48. Discuss in detail about the different types of Statement Objects in JDBC with example. 49. Explain in detail about the ResultSet in JDBC with example. 50. Write a Java Program to do the following:

a. Delete Row in the ResultSet b. Insert Row in the ResultSet

51. Explain in detail about Transaction Processing in JDBC. 52. What is Metedata? Explain about ResultSetMetaData.

UNIT - VI 53. Explain the Life Cycle of a Servlet. 54. Explain the necessary steps to develop a Servlet. 55. Explain the following:

a. The Servlet Interface b. The ServletConfig Interface

56. With servlet program explain how to read / pass the parameter values to Servlets. 57. Explain the following:

a. HttpSession Class b. Cookie Class

58. Write a servlet program to handle HTTP Requests and Responses. 59. Write a servlet program to handle Cookies. 60. Write a servlet program for Session Tracking.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 45 COURSEDIARY

UNIT - VII

61. What are the basic JSP Tags available? Explain. 62. Explain how to process Request String and Parsing in JSP. 63. Write a JSP code for Cookies. 64. Write a JSP code to handle Session Objects. 65. Explain the basics of Remote Method Invocation. 66. Write the code for RMI Server Side & Client Side.

UNIT - VIII 67. Explain the basics about the Enterprise Java Beans. 68. With suitable code explain about the Deployment Descriptors. 69. With suitable code explain the following in EJB:

a. Environment Elements b. Referencing EJB c. Security Elements d. Query Elements

70. With suitable code explain the following in EJB: a. Relationship Elements b. Assembly Elements c. Exclude List Elements

71. Write an EJB Code to create a Session Java Bean with necessary steps. 72. Write an EJB Code to create an Entity Java Bean with necessary steps. 73. Explain in detail about Message-Driven Bean with necessary examples. 74. Explain about the JAR File.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 46 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 47 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 48 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 49 COURSEDIARY

C# AND .NET ELECTIVE 06CS761

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 50 COURSEDIARY

C# PROGRAMMING AND .NET

Subject Code : 06CS761

IA Marks : 25

No. of Lecture Hrs./ Week

: 04 Exam Hours

: 03

Total No. of Lecture Hrs.

: 52 Exam Marks

: 100

PART – A

UNIT - 1 THE PHILOSOPHY OF .NET:

Understanding the Previous State of Affairs, The .NET Solution, The Building Block of the .NET Platform (CLR,CTS, and CLS), The Role of the .NET Base Class Libraries, What C# Brings to the Table, An Overview of .NET Binaries ( aka Assemblies ), the Role of the Common Intermediate Language, The Role of .NET Type Metadata, The Role of the Assembly Manifast, Compiling CIL to Platform –Specific Instructions, Understanding the Common Type System, Intrinsic CTS Data Types, Understanding the Common Languages Specification, Understanding the Common Language Runtime A tour of the .NET Namespaces, Increasing Your Namespace Nomenclature, Deploying the .NET Runtime. 6 Hours

UNIT - 2 BUILDING C# APPLICATIONS: The Role of the Command Line Complier (csc.exe), Building C # Application using csc.exe Working with csc.exe Response Files, Generating Bug Reports , Remaining C# Compiler Options, The Command Line Debugger (cordbg.exe) Using the, Visual Studio .NET IDE, Other Key Aspects of the VS.NET IDE, C# “Preprocessor:” Directives, An Interesting Aside: The System. Environment Class. 6 Hours

UNIT - 3 C# LANGUAGE FUNDAMENTALS: The Anatomy of a Basic C# Class, Creating objects: Constructor Basics, The Composition of a C# Application, Default Assignment and Variable Scope, The C# Member Initialization Syntax, Basic Input and Output with the Console Class, Understanding Value Types and Reference Types, The Master Node: System, Object, The System Data Types (and C# Aliases), Converting Between Value Types and Reference Types: Boxing and Unboxing, Defining Program Constants, C# Iteration Constructs, C# Controls Flow Constructs, The Complete Set of C# Operators, Defining Custom Class Methods, Understating Static Methods, Methods Parameter Modifies, Array Manipulation in C #, String Manipulation in C#, C# Enumerations, Defining Structures in C#, Defining Custom Namespaces. 8 Hours

UNIT - 4 OBJECT- ORIENTED PROGRAMMING WITH C#: Forms Defining of the C# Class, Definition the “Default Public Interface” of a Type, Recapping the Pillars of OOP, The First Pillars: C#’s Encapsulation Services, Pseudo- Encapsulation: Creating Read-Only Fields, The Second Pillar: C#’s Inheritance Supports, keeping Family Secrets: The “Protected” Keyword, Nested Type Definitions, The Third Pillar: C #’s Polymorphic Support, Casting Between. 6 Hours

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 51 COURSEDIARY

PART - B UNIT - 5 EXCEPTIONS AND OBJECT LIFETIME: Ode to Errors, Bugs, and Exceptions, The Role of .NET Exception Handing, the System. Exception Base Class, Throwing a Generic Exception, Catching Exception, CLR System – Level Exception (System. System Exception), Custom Application-Level Exception (System. System Exception), Handling Multiple Exception, The Family Block, the Last Chance Exception Dynamically Identifying Application – and System Level Exception Debugging System Exception Using VS. NET, Understanding Object Lifetime, the CIT of “new’, The Basics of Garbage Collection,, Finalization a Type, The Finalization Process, Building an Ad Hoc Destruction Method, Garbage Collection Optimizations, The System. GC Type. 6 Hours

UNIT - 6 1 INTERFACES AND COLLECTIONS: Defining Interfaces Using C# Invoking Interface Members at the object Level, Exercising the Shapes Hierarchy, Understanding Explicit Interface Implementation, Interfaces As Polymorphic Agents, Building Interface Hierarchies, Implementing, Implementation, Interfaces Using VS .NET, understanding the IConvertible Interface, Building a Custom Enumerator (IEnumerable and Enumerator), Building Cloneable objects ( ICloneable), Building Comparable Objects ( I Comparable ), Exploring the system. Collections Namespace, Building a Custom Container (Retrofitting the Cars Type). 6 Hours

UNIT - 7 Callback Interfaces, Delegates, and Events, Advanced Techniques: Understanding Callback Interfaces, Understanding the .NET Delegate Type, Members of System. Multicast Delegate, The Simplest Possible Delegate Example, Building More a Elaborate Delegate Example, Understanding Asynchronous Delegates, Understanding (and Using) Events. The Advances Keywords of C#, A Catalog of C# Keywords Building a Custom Indexer, A Variation of the Cars Indexer Internal Representation of Type Indexer. Using C# Indexer from VB .NET. Overloading operators, The Internal Representation of Overloading Operators, interacting with Overload Operator from Overloaded- Operator- Challenged Languages, Creating Custom Conversion Routines, Defining Implicit Conversion Routines, The Internal Representations of Customs Conversion Routines 8 Hours UNIT - 8 UNDERSTANDING .NET ASSEMBLES: Problems with Classic COM Binaries, An Overview of .NET Assembly, Building a Simple File Test Assembly, A C#. Client Application, A Visual Basic .NET Client Application, Cross Language Inheritance, Exploring the CarLibrary’s, Manifest, Exploring the CarLibrary’s Types, Building the Multifile Assembly ,Using Assembly, Understanding Private Assemblies, Probing for Private Assemblies (The Basics), Private A Assemblies XML Configurations Files, Probing for Private Assemblies ( The Details), Understanding Shared Assembly, Understanding Shared Names, Building a Shared Assembly, Understanding Delay Signing, Installing/Removing Shared Assembly, Using a Shared Assembly, 6 Hours TEXT BOOKS:

1. Pro C# with .NET 3.0 – Andrew Troelsen, Special Edition, Dream tech Press, India, 2007.

2. Programming in C# – E. Balagurusamy, 5th Reprint, Tata McGraw Hill, 2004. (For Programming Examples)

REFERENCE BOOKS: 1. Inside C# – Tom Archer, WP Publishers, 2001. 2. C#: The Complete Reference – Herbert Schildt, Tata McGraw Hill, 2004.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 52 COURSEDIARY

C# PROGRAMMING AND .NET

LESSON PLAN Total Hours: 62[50min*62classes] Hours week: 5 Subject Code: 06CS761 2 IA Marks : 25

Sl. No. Chapter Hour

No Topics to be covered

1 UNIT – 1 THE PHILOSOPHY OF .NET ,

1 Understanding the Previous State of Affairs, 2 The .NET Solution, The Building Block of the

.NET Platform (CLR,CTS, and CLS), 3 The Role of the .NET Base Class Libraries, What

C# Brings to the Table1 4 An Overview of .NET Binaries ( aka Assemblies ), 5 , the Role of the Common Intermediate Language,

The Role of .NET Type Metadata 6 The Role of the Assembly Manifast, Compiling CIL

to Platform –Specific Instructions, Understanding the Common Type System, Intrinsic CTS Data Types,

7 Understanding the Common Languages Specification, Understanding the Common Language Runtime A tour of the .NET Namespaces, Increasing Your Namespace Nomenclature, Deploying the .NET Runtime.

2 UNIT - 2 BUILDING C# APPLICATIONS

8 The Role of the Command Line Complier (csc.exe), Building C # Application using csc.exe Working with csc.exe Response Files,

9 Generating Bug Reports , Remaining C# Compiler Options, The Command Line Debugger (cordbg.exe) Using the, Visual Studio .NET IDE

10

11 Key Aspects of the VS.NET IDE, C# “Preprocessor:” Directives, 12

13 Other An Interesting Aside 14 The System. Environment Class. 15

3 UNIT - 3 C# LANGUAGE FUNDAMENTALS: C#

16 The Anatomy of a Basic C# Class, Creating objects: Constructor Basics, The Composition of a C# Application, Default Assignment and Variable Scope,

17 The C# Member Initialization Syntax, Basic Input and Output with the Console Class,

18 Understanding Value Types and Reference Types, The Master Node: System,

19 Object, The System Data Types (and C# Aliases), Converting Between Value Types and Reference Types: Boxing and Unboxing,

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 53 COURSEDIARY

20 Defining Program Constants, C# Iteration Constructs, C# Controls Flow Constructs,

21 The Complete Set of C# Operators, Defining Custom Class Methods, Understating Static Methods, Methods Parameter Modifies,

22 Array Manipulation in C #, String Manipulation in C#,

23 Enumerations, Defining Structures in C#, Defining Custom Namespaces.

4 UNIT - 4 OBJECT- ORIENTED PROGRAMMING WITH C#’s,

24 #: Forms Defining of the C# Class, Definition the “Default Public Interface” of a Type,

25 CRecapping the Pillars of OOP, The First Pillars: 26 Encapsulation Services, Pseudo- Encapsulation: 27 Creating Read-Only Fields, The Second Pillar: C#’s

Inheritance Supports keeping Family Secrets

28

29 ,The “Protected” Keyword 30 Nested Type Definitions, The Third Pillar: 31 C #’s Polymorphic Support, Casting Between.

5 UNIT - 5 EXCEPTIONS AND OBJECT

32 : Ode to Errors, Bugs, and Exceptions, The Role of .NET Exception Handing, the System.

33 Exception Base Class, Throwing a Generic Exception, Catching Exception, CLR System – Level Exception (System. System Exception),

34 Custom Application-Level Exception (System. System Exception), Handling Multiple Exception, The Family Block

35 , the Last Chance Exception Dynamically Identifying Application – and System Level Exception Debugging System Exception Using VS. NET,

36 LIFETIME Understanding Object Lifetime, the CIT of “new’, The Basics of Garbage Collection

37 Finalization a Type, The Finalization Process, Building an Ad Hoc Destruction Method,

38 ,, Garbage Collection Optimizations, The System. GC Type.

6 UNIT - 6 1 INTERFACES AND COLLECTIONS

39 Defining Interfaces Using C# Invoking Interface Members at the object Level, Exercising the Shapes Hierarchy,

40 Understanding Explicit Interface Implementation, Interfaces As Polymorphic Agents, Building Interface Hierarchies, Implementing, Implementation

41 Interfaces Using VS .NET, understanding the IConvertible Interface, Building a Custom Enumerator (IEnumerable and Enumerator)

42

43 , Building Cloneable objects ( ICloneable), Building Comparable Objects ( I Comparable ),

44 Exploring the system. Collections

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 54 COURSEDIARY

45 Namespace, Building a Custom Container

(Retrofitting the Cars Type). 46 47

7 UNIT - 7 Callback Interfaces, Delegates, and Events, Advanced Techniques,

48 Understanding Callback Interfaces, Understanding the .NET Delegate Type, Members of System. Multicast Delegate

49 :, The Simplest Possible Delegate Example, Building More a Elaborate Delegate Example, Understanding Asynchronous Delegates

50 Understanding (and Using) Events. The Advances Keywords of C#, A Catalog of C# Keywords Building a Custom Indexer

51 , A Variation of the Cars Indexer Internal Representation of Type Indexer. Using C# Indexer from VB .NET. Overloading operators

52 The Internal Representation of Overloading Operators, interacting with Overload Operator from Overloaded- Operator- Challenged Languages, Creating Custom Conversion Routines,

53

54 , Defining Implicit Conversion Routines, The Internal Representations of Customs Conversion Routines

8 UNIT - 8 UNDERSTANDING ,

55 : Problems with Classic COM Binaries, An Overview of .NET Assembly, Building a Simple File Test Assembly, A C#. Client Application,

56 ASSEMBLESA Visual Basic .NET Client Application, Cross Language Inheritance, Exploring the CarLibrary’s, Manifest, Exploring the Car Library’s Types,

57 NET Building the Multifile Assembly ,Using Assembly, Understanding Private Assemblies, Probing for Private Assemblies (The Basics),

58

59 . Private A Assemblies XML Configurations Files, Probing for Private Assemblies ( The Details), Understanding Shared Assembly,

60 Understanding Shared Names, Building a Shared Assembly

61 Understanding Delay Signing, Installing/Removing Shared Assembly, Using a Shared Assembly, 62

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 55 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 56 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 57 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 58 COURSEDIARY

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 59 COURSEDIARY

NETWORKS LABORATORY 06CSL77

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 60 COURSEDIARY

NETWORKS LABORATORY

Subject Code : 06CSL77 IA Marks : 25 No. of Practical Hrs./ Week : 03 Exam Hours : 03 Total No. of Practical Hrs. : 42 Exam Marks : 50

PART - A SIMULATION EXERCISES The following experiments shall be conducted using either NS / OPNET or any other suitable simulator. 1. Simulate a three nodes point – to – point network with duplex links between them. Set the queue size and vary the bandwidth and find the number of packets dropped. 2. Simulate a four node point-to-point network with the links connected as follows: n0 – n2, n1 – n2 and n2 – n3. Apply TCP agent between n0-n3 and UDP between n1-n3. Apply relevant applications over TCP and UDP agents changing the parameter and determine the number of packets sent by TCP / UDP. 3. Simulate the different types of Internet traffic such as FTP and TELNET over a network and analyze the throughput. 4. Simulate the transmission of ping messages over a network topology consisting of 6 nodes and find the number of packets dropped due to congestion. 5. Simulate an Ethernet LAN using n nodes (6-10), change error rate and data rate and compare throughput. 74 6. Simulate an Ethernet LAN using n nodes and set multiple traffic nodes and determine collision across different nodes. 7. Simulate an Ethernet LAN using n nodes and set multiple traffic nodes and plot congestion window for different source / destination. 8. Simulate simple ESS and with transmitting nodes in wire-less LAN by simulation and determine the performance with respect to transmission of packets.

PART - B Implement the following in C/C++: 1. Write a program for error detecting code using CRC-CCITT (16- bits). 2. Write a program for frame sorting technique used in buffers. 3. Write a program for distance vector algorithm to find suitable path for transmission. 4. Using TCP/IP sockets, write a client – server program to make the client send the file name and to make the server send back the contents of the requested file if present. 5. Implement the above program using as message queues or FIFOs as IPC channels. 6. Write a program for simple RSA algorithm to encrypt and decrypt the data. 7. Write a program for Hamming code generation for error detection and correction. 8. Write a program for congestion control using leaky bucket algorithm.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 61 COURSEDIARY

MVJ COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

LESSON PLAN

NETWORKS LABORATORY

Subject Code: 06CSL77 IA Marks: 25 No. Of Practical Hrs./ Week: 03 Exam Hours: 03 Total No. Of Practical Hrs: 42 Exam Marks: 50 Sl. No Week No

Topics Covered

1

Write a program for error detecting code using CRC-CCITT (16- bits).Simulate a three nodes point – to – point network with duplex links between them. Set the queue size and vary the bandwidth and find the number of packets dropped.

2

Write a program for frame sorting technique used in buffers. Simulate a four node point-to-point network with the links connected as follows: n0 – n2, n1 – n2 and n2 – n3. Apply TCP agent between n0-n3 and UDP between n1-n3. Apply relevant applications over TCP and UDP agents changing the parameter and determine the number of packets sent by TCP / UDP.

3 Write a program for distance vector algorithm to find suitable path for Transmission

4 . Simulate the different types of Internet traffic such as FTP and TELNET over a network and analyze the throughput.

5

Using TCP/IP sockets, write a client – server program to make the client send the file name and to make the server send back the contents of the requested file if present.

6 Implement the above program using as message queues or FIFO as IPC channels.

7

Simulate the transmission of ping messages over a network topology consisting of 6 nodes and find the number of packets dropped due to congestion.

8 Simulate an Ethernet LAN using n nodes (6-10), change error rate and data rate and compare throughput.

9 Write a program for simple RSA algorithm to encrypt and decrypt the data.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 62 COURSEDIARY

10

Simulate an Ethernet LAN using n nodes and set multiple traffic nodes and determine collision across different nodes.

11 Write a program for Hamming code generation for error detection and correction.

12 Simulate an Ethernet LAN using n nodes and set multiple traffic nodes and plot congestion window for different source / destination.

13 Write a program for congestion control using leaky bucket algorithm.

14

Simulate simple ESS and with transmitting nodes in wire-less LAN by simulation and determine the performance with respect to transmission of packets.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 63 COURSEDIARY

WEB PROGRAMMING LABORATORY 06CSL78

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 64 COURSEDIARY

WEB PROGRAMMING LABORATORY

Subject Code : 06CSL78 IA Marks : 25 No. of Practical Hrs./ Week : 03 Exam Hours : 03 Total No. of Practical Hrs. : 42 Exam Marks : 50 1. Develop and demonstrate a XHTML document that illustrates the use external style sheet, ordered

list, table, borders, padding, color, and the <span> tag. 2. Develop and demonstrate a XHTML file that includes JavaScript script

for the following problems: a) Input: A number n obtained using prompt Output: The first n Fibonacci numbers b) Input: A number n obtained using prompt

Output: A table of numbers from 1 to n and their squares using alert 3. Develop and demonstrate a XHTML file that includes JavaScript script that uses functions for the

following problems: a) Parameter: A string

Output: The position in the string of the left-most vowel b) Parameter: A number

Output: The number with its digits in the reverse order 4. a) Develop and demonstrate, using JavaScript script, a XHTML document that collects the USN (

the valid format is: A digit from 1 to 4 followed by two upper-case characters followed by two digits followed by two upper-case characters followed by three digits; no embedded spaces allowed) of the user. Event handler must be included for the form element that collects this information to validate the input. Messages in the alert windows must be produced when errors are detected. b) Modify the above program to get the current semester also (restricted to be a number from 1 to 8)

5. a) Develop and demonstrate, using JavaScript script, a XHTML document that contains three short paragraphs of text, stacked on top of each other, with only enough of each showing so that the mouse cursor can be placed over some part of them. When the cursor is placed over the

exposed part of any paragraph, it should rise to the top to become completely visible. b) Modify the above document so that when a paragraph is moved from the top stacking position, it

returns to its original position rather than to the bottom. 6. a) Design an XML document to store information about a student in an engineering college

affiliated to VTU. The information must include USN, Name, Name of the College, Brach, Year of Joining, and e-mail id. Make up sample data for 3 students. Create a CSS style sheet and use it to display the document. b) Create an XSLT style sheet for one student element of the above document and use it to create a display of that element.

7. a) Write a Perl program to display various Server Information like Server Name, Server Software, Server protocol, CGI Revision etc.

b) Write a Perl program to accept UNIX command from a HTML form and to display the output of the command executed.

8. a) Write a Perl program to accept the User Name and display greeting message randomly chosen from a list of 4 greeting messages.

b) Write a Perl program to keep track of the number of visitors visiting the web page and to display this count of visitors, with proper headings.

9. Write a Perl program to display a digital clock which displays the current time of the server.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 65 COURSEDIARY

10. Write a Perl program to insert name and age information entered by the user into a table created

using MySQL and to display the current contents of this table. 11. Write a PHP program to store current date-time in a COOKIE and display the ‘Last visited on’

date-time on the web page upon reopening of the same page. 12. Write a PHP program to store page views count in SESSION, to increment the count on each

refresh, and to show the count on web page. 13. Create a XHTML form with Name, Address Line 1, Address Line 2, and E-mail text fields. On

submitting, store the values in MySQL table. Retrieve and display the data based on Name. 14. Using PHP and MySQL, develop a program to accept book information viz. Accession number,

title, authors, edition and publisher from a web page and store the information in a database and to search for a book with the title specified by the user and to display the search results with proper headings.

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 66 COURSEDIARY

M.V.J COLLEGE OF ENGINEERING Department Of Computer Science & Engineering

LESSON PLAN— WEB PROGRAMMING LABORATORY

SUBJECT CODE: 06CSL78 IA MARKS: 25 HOURS/WEEK: 03 EXAM HOURS: 03 TOTAL HOURS: 42 EXAM MARKS: 50

Sl.No Programs to be implemented Hour No

1 Develop and demonstrate a XHTML document that illustrates the use external style sheet, ordered list, table, borders, padding, color, and the <span> tag.

1 – 3

2 Develop and demonstrate a XHTML file that includes JavaScript script for the following problems: a) Input: A number n obtained using prompt Output: The first n Fibonacci numbers b) Input: A number n obtained using prompt Output: A table of numbers from 1 to n and their squares using alert

4 – 6

3 Develop and demonstrate a XHTML file that includes JavaScript script that uses functions for the following problems: a) Parameter: A string Output: The position in the string of the left-most vowel b) Parameter: A number Output: The number with its digits in the reverse order

7 – 9

4 a) Develop and demonstrate, using JavaScript script, a XHTML document that collects the USN (the valid format is: A digit from 1 to 4 followed by two uppercase characters followed by two digits followed by two upper-case characters followed by three digits; no embedded spaces allowed) of the user. Event handler must be included for the form element that collects this information to validate the input. Messages in the alert windows must be produced when errors are detected.

b) Modify the above program to get the current semester also (restricted to be a number from 1 to 8)

10 – 12

5 a) Develop and demonstrate, using JavaScript script, a XHTML document that contains three short paragraphs of text, stacked on top of each other, with only enough of each showing so that the mouse cursor can be placed over some part of them. When the cursor is placed over the exposed part of any paragraph, it should rise to the top to become completely visible.

b) Modify the above document so that when a paragraph is moved from the top stacking position, it returns to its original position rather than to the bottom.

13 – 15

6 a) Design an XML document to store information about a student in an engineering college affiliated to VTU. The information must include USN, Name, Name of the College, Brach, Year of Joining, and e-mail id. Make up sample data for 3 students. Create a CSS style sheet and use it to display the document.

b) Create an XSLT style sheet for one student element of the above document and use it to create a display of that element.

16 – 18

DEPT OF COMPUTER SCIENCE ENGG MVJCE

VII SEMESTER 67 COURSEDIARY

7 a) Write a Perl program to display various Server Information like Server Name, Server Software, Server protocol, CGI Revision etc. b) Write a Perl program to accept UNIX command from a HTML form and to display the output of the command executed.

19 – 21

8 a) Write a Perl program to accept the User Name and display a greeting message randomly chosen from a list of 4 greeting messages. b) Write a Perl program to keep track of the number of visitors visiting the web page and to display this count of visitors, with proper headings.

22 – 24

9 Write a Perl program to display a digital clock which displays the current time of the server.

25 – 27

10 Write a Perl program to insert name and age information entered by the user into a table created using MySQL and to display the current contents of this table.

28 – 30

11 Write a PHP program to store current date-time in a COOKIE and display the ‘Last visited on’ date-time on the web page upon reopening of the same page.

31 – 33

12 Write a PHP program to store page views count in SESSION, to increment the count on each refresh, and to show the count on web page.

34 – 36

13 Create a XHTML form with Name, Address Line 1, Address Line 2, and E-mail text fields. On submitting, store the values in MySQL table. Retrieve and display the data based on Name.

37 – 39

14 Using PHP and MySQL develop a program to accept book information viz. Accession number, title, authors, edition and publisher from a web page and store the information in a database and to search for a book with the title specified by the user and to display the search results with proper headings.

40 – 42