CSE Dept Engineering Topics List

Subject and UNIT: Object Oriented Programming: Unit I: Introduction to OOP and Java

The documentation section provides the information about the source program. This section contains the information which is not compiled by the Java. Everything written in this section is written as comment.

Subject and UNIT: Object Oriented Programming: Unit I: Introduction to OOP and Java

Java was invented by James Gosling, Patrick Naughton, Chris Warth, Ed Frank and Mike Sheridan at Sun Microsystems, Inc. in 1991. It took 18 months to complete the first working version of Java.

Subject and UNIT: Object Oriented Programming: Unit I: Introduction to OOP and Java

Various applications in which object oriented programming is preferred are • Business logic applications,• Knowledge based and expert systems, • Web based applications, • Real time systems, • Simulation and modeling

Subject and UNIT: Object Oriented Programming: Unit I: Introduction to OOP and Java

1. Using inheritance the redundant code can be eliminated and the existing classes can be used.2. The standard working modules can be created using object oriented programming.These modules can then communicate to each other to accomplish certain task.

OOP and Java

Subject and UNIT: Object Oriented Programming: Unit I: Introduction to OOP and Java

There are various characteristics of object oriented programming and those are -1) Abstraction, 2) Object and Classes, 3) Encapsulation, 4) Inheritance and ,5) Polymorphism.

Subject and UNIT: Object Oriented Programming: Unit I: Introduction to OOP and Java

In object oriented programming approach there is a collection of objects. Each object consists of corresponding data structures and the required operations (procedures). This is basically the bottom up problem solving approach.

Programming in C | File processing

Subject and UNIT: Programming in C: Unit V: File processing

The tmpfile() function is used to create a temporary file. The tmpfile () opens the corresponding stream with access parameters set as "w+". The file created with tmpfile () will be automatically deleted when all references to the file are closed.

Syntax with Example C Program

Subject and UNIT: Programming in C: Unit V: File processing

The function rename (), as the name suggests, is used to rename a file. The prototype of the function is : int rename (const char *oldname, const char *newname).Here, oldname specifies the pathname of the file to be renamed and newname gives the new pathname of the file.

Syntax with Example C Program

Subject and UNIT: Programming in C: Unit V: File processing

The function remove (), as the name suggests, is used to erase a file. The prototype of remove () as given in Hove () stdio.h can be given as int remove (const char *filename);The remove() will erase the file specified by filename.

Syntax with Example C Programs | File processing

Subject and UNIT: Programming in C: Unit V: File processing

In this section we will read about functions that are used to randomly access a record stored in a binary file. These functions include fseek (), ftell(), rewind (), fgetpos (), and fsetpos ().

Syntax with Example C Programs | File processing

Subject and UNIT: Programming in C: Unit V: File processing

C facilitates its programmers to pass command arguments. Command-line arguments are given after the name of a program in command-line operating systems like DOS or Linux, and are passed in to the program from the operating system.

Syntax with Example C Programs

Subject and UNIT: Programming in C: Unit V: File processing

It is quite common that an error may occur while reading data from or writing data to a file.If we fail to check for errors, then the program may behave abnormally. Therefore, an unchecked error may result in premature termination of the program or incorrect output.