Get Unique study materials from

Size: px
Start display at page:

Download "Get Unique study materials from"

Transcription

1 Downloaded from VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Year & Semester : IV Section : EEE - 1 & 2 Subject Code : CS6456 Subject Name : Object Oriented Programming Degree & Branch : B.E & EEE Staff in charge : Ms.R.Anitha & Ms. D.Kavitha UNIT What are the programming paradigms currently available? 2. What is object oriented paradigm? 3. What are the differences between structures and classes in C++? 4. Differentiate Object Oriented and Object Based Programming Languages. 5. What is Object Oriented Programming? How is it different from the Procedure Oriented Programming? 6. List any two drawbacks of procedure oriented languages. 7. What is meant by prototype based programming? 8. What is a Class? What is an Object? Give an example for each 9. Define encapsulation. 10. Compare inheritance and delegation with respect to Object Oriented Programming. 11. Which feature of object oriented programming provides (a) data hiding (b) reusability? 12. Define (a) Object (b) class 13. What is the use of scope resolution operator :: in C++? 14. Can you have a class named main in C++? If yes how do you call its constructor? 15. What is an abstract class? 16. What is Object Orients Programming? List any four OOP languages. 17. What is meant by function overloading? 18. What are conditional constructor and destructor? 19. What is nameless object? 20. Give a note on access specifiers. Prepared By Staff 1 & Staff 2 Page 1 Get Unique study materials from

2 Downloaded from 16 MARK QUESTIONS: 1. Describe the basic concepts of Object Oriented Programming and bring out the advantages of OOP. 2. Explain the declaration and defining a class in C++. How will you define the member functions of a class? Explain. 3. What is the need for parameterized constructors? Explain the function of constructors with their declaration and definition inside a class. 4. Illustrate the reserved word inline with two examples. 5. Explain the constructors and destructors. 6. explain the relation between (i)structured Programming(POP) and (ii)oops 7. Differentiate Object Oriented and Object based Languages.(8) 8. Explain copy constructor? Explain with a suitable example. 9. Differentiate Object Oriented and Object based Languages. Give examples for both. List any 8 features of Oops. (Detailed explanation or examples are not required). 10. Explain the following terms with respect to OOPS.Give suitable examples (i) Dynamic Binding (ii) Message Passing (iii) Reusability (iv) Polymorphism UNIT-2 1. Define interfaces in java.how interfaces are implemented? How they can be accessed? How to apply interfaces? What is meant by extension of interfaces? Explain with an example. 2. What are threads? Synchronization? Explain the life cycle of thread with example 3. Explain life cycle of applet with example 4. Explain in detail exception handling in java 5. Explain in detail about JAVA I/O operations 6. Explain Inheritance in JAVA 7. Develop a real life application program to illustrate the use of multithreads. 8. Explain with an example how multiple inheritances is achieved in Java. 9. How is synchronization of threads performed? 10. An educational institution wishes to maintain its employee s database which is divided into a number of classes with minimum information as shown in figure. Specify all the classes and define methods to create the database and retrieve individual information as when required. 11. Explain the life cycle of an applet and write a simple applet to display a moving banner. 12. What is the purpose of garbage collection in Java, and when is it used? 13. Give the importance of operator overloading. 14. Differentiate overloaded and overridden functions. 15. What is the main purpose of a template in C++? Give an example. 16. Write a program to exchange values of two variables. Use template variables as function arguments. 17. What is hierarchical inheritance? Prepared By Staff 1 & Staff 2 Page 2 Get Unique study materials from

3 Downloaded from What are the operators of C++ that cannot be overloaded? 19. Can friendship between classes be symmetric or transitive? Justify your answer with an example. 20. What is the use of virtual function? 16 MARK QUESTIONS: 1. What is operator overloading? How will you define it? Illustrate unary operator overloading with an example. 2. Describe the syntax of multiple inheritance. When do we use such an inheritance? Explain with an example. 3. Define friend class and specify its importance. Explain with suitable example. 4. Explain the operators used for dynamic memory allocation with examples. 5. Define functional overloading with example. 6. Explain in detail the various types of Inheritance with example programs 7. Explain virtual function in C++. Describe any two applications in which virtual functions may use. For each of these applications, specify the parent classes and derived classes. 8. What are inline functions? What are their advantages? Give an example.what is the rules to be followed while defining inline functions? 9. What is the need for and advantages of Templates? What is the difference between function template and class template? 10. What are the various type conversions? Explain each with a program UNIT-3 1. Draw console stream class hierarchy. 2. Describe how exceptions are handled. 3. What are file pointers? 4. Give any two examples of exceptions. 5. What are the predefined C++ stream objects? 6. What stream class is required to create an output stream? 7. Why is it not possible to refer an exception declared within try block outside try block? 8. Explain the various file stream classes needed for file manipulation. 9. What are file pointers? Describe get pointers and put pointers. 10. What is an I/O stream? 11. Why is it necessary to include the file iostream in all our programs? 12. Name the two ways in which a file can be opened. 13. Illustrate the exception handling mechanism 14. What are the file stream classes used for creating input and output files? 15. List out any four containers supported by Standard Template Library? 16. What is Seekg() and Seekp()?Give Example? 17. What is rethrowing an expression? 18. What are the classes in iostream.h header files? 19. What is an exception? Give any four examples of exception. 20. What are the types of exceptions? Prepared By Staff 1 & Staff 2 Page 3 Get Unique study materials from

4 Downloaded from 16 MARK QUESTIONS: 1. What is meant by exceptions? How an exception is handled in C++? Bring out the advantages of using various exception handling mechanisms. 2. Explain the hierarchy of Stream classes in C++ 3. Give the hierarchy of console stream classes 4. Explain in detail about STRINGS in C++, with necessary examples 5. Explain in detail the various File handling Operations 6. What are the keywords used in C++ for exception handling? Describe their usage with suitable example. 7. What are file modes? Describe various file mode options available in C Explain the use of keywords try, catch and throw in handling exceptions in a program. Indicate how the control flows in case of occurrence and non occurrence of exceptions. Write a program to implement a stack with appropriate exception handling. 9. Explain the 4 functions Seekg, Seekp, tellg, tellp used for setting pointers during file operation and show how they are derived from f stream class. 10. Write a program to append to the contents of a file. UNIT-4 1. What is a token? List the various types of tokens supported by Java. 2. How do we add a class to a package? 3. In Java, can a class be defined inside a method? If so what rule governs access to the variables of the enclosing method? If not, give reasons. 4. How does Java achieve platform independence? 5. Distinguish between method overriding and method overloading in Java. 6. Justify the statement Java is platform independent 7. Define Java Virtual Machine. 8. What is a package? 9. What is the type of class for which objects cannot be created? 10. What type of inheritance is supported in Java? 11. What is java Virtual machine? 12. What is default for methods in Java? 13. What is the need for java virtual machine? 14. What is wait(), notify(), notifyall()? 15. What method can be used for changing case of characters? 16. How can overriding be prevented? 17. What are the two ways of using Super Keyword? 18. What are the ways of calling a method in Java? 19. What is abstract class in Java? 20. Give the paint method of an applet which draws a blue circle. 16 MARK QUESTIONS: 1. How is object class created in java environment?discuss on objects in java 2. Explain in detail about JAVA VIRTUAL MACHINE 3. Briefly explain about JAVA Byte code 4. What is the purpose of using packages? How to create user defined package? Give an example. Prepared By Staff 1 & Staff 2 Page 4 Get Unique study materials from

5 Downloaded from 5. Explain in detail about java documentation. 6. Explain about arrays(matrix multiplication) and strings in java 7. What is meant by Overloading objects? How are related classes used in java? 8. Differentiate abstract classes and interfaces 9. Describe the structure of a typical Java program. 10. How can a subclass call a method or a constructor defined in a super class? Illustrate with an example program. UNIT-5 1. What are the similarities between interfaces and classes in Java? 2. How do we set priorities for threads? 3. What happens if an exception handler is not defined when exception is thrown? 4. Explain the life cycle of thread. 5. Compare interface and abstract class. 6. What is the major difference between interfaces and a class? 7. What are the two methods by which we may stop threads? 8. What is an exception? Give any four examples of exception. 9. List any four advantages of inheritance. What type of inheritance is not supported by Java 10. What is multithreading? 11. What is an exception? 12. What is an interface? Write an interface to define the few constants, in Java. 13. What is final and finally? 14. Does Java support multiple inheritance? Justify your answer. 15. What is the difference between an abstract class and an interface in Java? 16. What is meant by binding? 17. Can array become private member of the class? How? 18. What is meant by anonymous Union? 19. What is Static data member? 20. What is Polymorphism? 16 MARK QUESTIONS: 1. Define interfaces in java.how interfaces are implemented? How they can be accessed? How to apply interfaces? What is meant by extension of interfaces? Explain with an example. 2. What are threads? Synchronization? Explain the life cycle of thread with example 3. Explain life cycle of applet with example 4. Explain in detail exception handling in java 5. Explain in detail about JAVA I/O operations 6. Explain Inheritance in JAVA 7. Develop a real life application program to illustrate the use of multithreads. 8. Explain with an example how multiple inheritances is achieved in Java. 9. How is synchronization of threads performed? 10. An educational institution wishes to maintain its employee s database which is divided into a number of classes with minimum information as shown in figure. Specify all the classes and define methods to create the database and retrieve individual information as when required. Prepared By Staff 1 & Staff 2 Page 5 Get Unique study materials from

6 Downloaded from Prepared By Staff 1 & Staff 2 Page 6 Get Unique study materials from

7 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Year & Semester : IV Section : EEE - 1 & 2 Subject Code : CS6456 Subject Name : Object Oriented Programming Degree & Branch : B.E & EEE UNIT What are the programming paradigms currently available? 2. What is object oriented paradigm? 3. What are the differences between structures and classes in C++? 4. Differentiate Object Oriented and Object Based Programming Languages. 5. What is Object Oriented Programming? How is it different from the Procedure Oriented Programming? 6. List any two drawbacks of procedure oriented languages. 7. What is meant by prototype based programming? 8. What is a Class? What is an Object? Give an example for each 9. Define encapsulation. 10. Compare inheritance and delegation with respect to Object Oriented Programming. 11. Which feature of object oriented programming provides (a) data hiding (b) reusability? 12. Define (a) Object (b) class 13. What is the use of scope resolution operator :: in C++? 14. Can you have a class named main in C++? If yes how do you call its constructor? 15. What is an abstract class? 16. What is Object Orients Programming? List any four OOP languages. 17. What is meant by function overloading? 18. What are conditional constructor and destructor? 19. What is nameless object? 20. Give a note on access specifiers. Page 1

8 16 MARK QUESTIONS: 1. Describe the basic concepts of Object Oriented Programming and bring out the advantages of OOP. 2. Explain the declaration and defining a class in C++. How will you define the member functions of a class? Explain. 3. What is the need for parameterized constructors? Explain the function of constructors with their declaration and definition inside a class. 4. Illustrate the reserved word inline with two examples. 5. Explain the constructors and destructors. 6. explain the relation between (i)structured Programming(POP) and (ii)oops 7. Differentiate Object Oriented and Object based Languages.(8) 8. Explain copy constructor? Explain with a suitable example. 9. Differentiate Object Oriented and Object based Languages. Give examples for both. List any 8 features of Oops. (Detailed explanation or examples are not required). 10. Explain the following terms with respect to OOPS.Give suitable examples (i) Dynamic Binding (ii) Message Passing (iii) Reusability (iv) Polymorphism UNIT-2 1. Define interfaces in java.how interfaces are implemented? How they can be accessed? How to apply interfaces? What is meant by extension of interfaces? Explain with an example. 2. What are threads? Synchronization? Explain the life cycle of thread with example 3. Explain life cycle of applet with example 4. Explain in detail exception handling in java 5. Explain in detail about JAVA I/O operations 6. Explain Inheritance in JAVA 7. Develop a real life application program to illustrate the use of multithreads. 8. Explain with an example how multiple inheritances is achieved in Java. 9. How is synchronization of threads performed? 10. An educational institution wishes to maintain its employee s database which is divided into a number of classes with minimum information as shown in figure. Specify all the classes and define methods to create the database and retrieve individual information as when required. 11. Explain the life cycle of an applet and write a simple applet to display a moving banner. 12. What is the purpose of garbage collection in Java, and when is it used? 13. Give the importance of operator overloading. 14. Differentiate overloaded and overridden functions. 15. What is the main purpose of a template in C++? Give an example. 16. Write a program to exchange values of two variables. Use template variables as function arguments. 17. What is hierarchical inheritance? Page 2

9 18. What are the operators of C++ that cannot be overloaded? 19. Can friendship between classes be symmetric or transitive? Justify your answer with an example. 20. What is the use of virtual function? 16 MARK QUESTIONS: 1. What is operator overloading? How will you define it? Illustrate unary operator overloading with an example. 2. Describe the syntax of multiple inheritance. When do we use such an inheritance? Explain with an example. 3. Define friend class and specify its importance. Explain with suitable example. 4. Explain the operators used for dynamic memory allocation with examples. 5. Define functional overloading with example. 6. Explain in detail the various types of Inheritance with example programs 7. Explain virtual function in C++. Describe any two applications in which virtual functions may use. For each of these applications, specify the parent classes and derived classes. 8. What are inline functions? What are their advantages? Give an example.what is the rules to be followed while defining inline functions? 9. What is the need for and advantages of Templates? What is the difference between function template and class template? 10. What are the various type conversions? Explain each with a program UNIT-3 1. Draw console stream class hierarchy. 2. Describe how exceptions are handled. 3. What are file pointers? 4. Give any two examples of exceptions. 5. What are the predefined C++ stream objects? 6. What stream class is required to create an output stream? 7. Why is it not possible to refer an exception declared within try block outside try block? 8. Explain the various file stream classes needed for file manipulation. 9. What are file pointers? Describe get pointers and put pointers. 10. What is an I/O stream? 11. Why is it necessary to include the file iostream in all our programs? 12. Name the two ways in which a file can be opened. 13. Illustrate the exception handling mechanism 14. What are the file stream classes used for creating input and output files? 15. List out any four containers supported by Standard Template Library? 16. What is Seekg() and Seekp()?Give Example? 17. What is rethrowing an expression? 18. What are the classes in iostream.h header files? 19. What is an exception? Give any four examples of exception. 20. What are the types of exceptions? Page 3

10 16 MARK QUESTIONS: 1. What is meant by exceptions? How an exception is handled in C++? Bring out the advantages of using various exception handling mechanisms. 2. Explain the hierarchy of Stream classes in C++ 3. Give the hierarchy of console stream classes 4. Explain in detail about STRINGS in C++, with necessary examples 5. Explain in detail the various File handling Operations 6. What are the keywords used in C++ for exception handling? Describe their usage with suitable example. 7. What are file modes? Describe various file mode options available in C Explain the use of keywords try, catch and throw in handling exceptions in a program. Indicate how the control flows in case of occurrence and non occurrence of exceptions. Write a program to implement a stack with appropriate exception handling. 9. Explain the 4 functions Seekg, Seekp, tellg, tellp used for setting pointers during file operation and show how they are derived from f stream class. 10. Write a program to append to the contents of a file. UNIT-4 1. What is a token? List the various types of tokens supported by Java. 2. How do we add a class to a package? 3. In Java, can a class be defined inside a method? If so what rule governs access to the variables of the enclosing method? If not, give reasons. 4. How does Java achieve platform independence? 5. Distinguish between method overriding and method overloading in Java. 6. Justify the statement Java is platform independent 7. Define Java Virtual Machine. 8. What is a package? 9. What is the type of class for which objects cannot be created? 10. What type of inheritance is supported in Java? 11. What is java Virtual machine? 12. What is default for methods in Java? 13. What is the need for java virtual machine? 14. What is wait(), notify(), notifyall()? 15. What method can be used for changing case of characters? 16. How can overriding be prevented? 17. What are the two ways of using Super Keyword? 18. What are the ways of calling a method in Java? 19. What is abstract class in Java? 20. Give the paint method of an applet which draws a blue circle. 16 MARK QUESTIONS: 1. How is object class created in java environment?discuss on objects in java 2. Explain in detail about JAVA VIRTUAL MACHINE 3. Briefly explain about JAVA Byte code 4. What is the purpose of using packages? How to create user defined package? Give an example. Page 4

11 5. Explain in detail about java documentation. 6. Explain about arrays(matrix multiplication) and strings in java 7. What is meant by Overloading objects? How are related classes used in java? 8. Differentiate abstract classes and interfaces 9. Describe the structure of a typical Java program. 10. How can a subclass call a method or a constructor defined in a super class? Illustrate with an example program. UNIT-5 1. What are the similarities between interfaces and classes in Java? 2. How do we set priorities for threads? 3. What happens if an exception handler is not defined when exception is thrown? 4. Explain the life cycle of thread. 5. Compare interface and abstract class. 6. What is the major difference between interfaces and a class? 7. What are the two methods by which we may stop threads? 8. What is an exception? Give any four examples of exception. 9. List any four advantages of inheritance. What type of inheritance is not supported by Java 10. What is multithreading? 11. What is an exception? 12. What is an interface? Write an interface to define the few constants, in Java. 13. What is final and finally? 14. Does Java support multiple inheritance? Justify your answer. 15. What is the difference between an abstract class and an interface in Java? 16. What is meant by binding? 17. Can array become private member of the class? How? 18. What is meant by anonymous Union? 19. What is Static data member? 20. What is Polymorphism? 16 MARK QUESTIONS: 1. Define interfaces in java.how interfaces are implemented? How they can be accessed? How to apply interfaces? What is meant by extension of interfaces? Explain with an example. 2. What are threads? Synchronization? Explain the life cycle of thread with example 3. Explain life cycle of applet with example 4. Explain in detail exception handling in java 5. Explain in detail about JAVA I/O operations 6. Explain Inheritance in JAVA 7. Develop a real life application program to illustrate the use of multithreads. 8. Explain with an example how multiple inheritances is achieved in Java. 9. How is synchronization of threads performed? 10. An educational institution wishes to maintain its employee s database which is divided into a number of classes with minimum information as shown in figure. Specify all the classes and define methods to create the database and retrieve individual information as when required. Page 5

12 CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE J.K.K.MUNIRAJAH COLLEGE OF TECHNOLOGY T.N.PALAYAM, GOBI (TK) ERODE B.E-ELECTRICAL AND ELECTRONICS ENGINEERING Regulation 2013 Fourth Semester CS 6456 OBJECT ORIENTED PROGRAMMING UNITWISE POSSIBLE QUESTIONS MAY/JUNE Prepared by, A.LOGESWARAN M.E, MISTE., (Asst.Professor, IT) Page 1

13 CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE PART A UNIT I 1. Differentiate object oriented programming from procedure oriented programming. 2. Define abstraction and encapsulation. 3. Differentiate between object and class. 4. List some applications of oop. 5. What is object oriented programming? 6. List the operators used in C++ for handling memory. 7. What is function prototype? Give its specification. 8. What is the difference between a pointer and a reference? 9. What is a namespace? 10. State the purpose of namespaces with an example. 11. What is meant by ADT and abstract class? UNIT II 1. What is dynamic constructor? Give an example. 2. Write copy constructor for class date (assume mm, dd, yy as its members). 3. When will the destructor be called? Is it implicit or explicit? 4. What are copy constructors? 5. Highlight the advantages of static data members and static functions in C What is destructor? 7. Define attribute. 8. Define operator overloading. 9. State the significance of this pointer in C What is encapsulation? Does friend function violate encapsulation? 11. List the operators that cannot be overload. 12. What is a friend function? 13. Why can t friend function be used to overload assignment operator? 14. What is the use of operator overloading? 15. What is friend class? 16. What are merits of using classes? Page 2

14 CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE UNIT III 1. What is difference between a function template and template function? 2. What is STL, Standard Template Library? 3. How are virtual functions declared in C++? 4. What is single inheritance? 5. What is to be done if we inherit some of the properties of constructor? 6. What is abstract class in cpp in C++? 7. Compare overloading and overriding. 8. Define exceptions. Give an example. UNIT IV 1. What is JVM? 2. What is byte code? Mention its advantage. 3. Give sample statement for parseint() and give comments for the statement. 4. Why is java language called as robust? 5. What is inner class? 6. What is the difference between super class and subclass? UNIT V 1. List any four packages in java and highlight their features. 2. What are packages? 3. Define interface. State its use. 4. What is the difference between an interface and an abstract class? 5. What is API package? 6. Under which contexts would you use final and finally. 7. What is the difference between throw and throws? 8. What are the advantages of using exception handling? 9. What are the two ways of creating java threads? 10. What is thread? How does it differ from a process? 11. What is multithreading? 12. Which class and interface in java is used to create thread and which is the most advantageous one? 13. What is the difference between the String and String Buffer classes? 14. What is stream? What is input stream? 15. Name the two super classes used in character stream. Page 3

15 CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE PART - B UNIT I 1. What are the needs for object oriented paradigm? 2. Explain in detail of object oriented concepts. 3. Explain the characteristics of OOPS in detail. 4. List the features of object oriented programming. 5. Explain data encapsulation and inheritance in detail. 6. Explain the structure of C++ program. 7. Explain various control statements used in C Explain Do-While with an example. 9. Compare inline functions of C++ with ordinary functions and with macros. 10. What is dynamic binding? How is it achieved? 11. Write short notes on call and Return Reference. 12. Write short notes on New and Delete Operators. 13. Write a C++ program to implement dynamic memory allocation. 14. Explain the concept of ADT with some illustrative example. UNIT II 1. Explain in detail about data hiding. 2. Write a C++ program that will ask for a temperature in Fahrenheit and display. 3. Write a program to declare array of objects, initialize and display the contents of arrays. 4. Explain in detail about class, objects, methods and messages. 5. Write about static member variable and static member functions. 6. Write about object creation and destruction. 7. Write a program to illustrate multiple constructors and default argument for a single class. 8. Write a C++ program to define overload constructor to perform string initialization, string copy and string destruction. 9. Write a C++ program to generate Fibonacci using copy constructor. 10. Discuss the characteristics of constructors and destructors. 11. What are constructors? Explain the concept of destructor with an example. 12. Explain the constructors and destructors in detail with an example program. Page 4

16 CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE 13. Explain friend function with an example. 14. Write a program to perform multiplication using an integer and object. Use friend function. 15. Design calculator using function overloading. 16. Illustrate the concept of function overloading to find the maximum of two numbers. 17. Write about operator overloading with an example. 18. Write a C++ program to implement C=A+B, C=A-B and C-A*B where A, B and C are objects containing a int value (vector). 19. Write a program to concatenate two strings using + operator overloading. 20. Write a program using operator overloading to add two time values in the format HH:MM:SS to the resulting time along with rounding off when 24 hrs is reached. A time class is created and operator + is overloaded to add the two time class objects. 21. Write the list of rules for overloading operators with one example. UNIT III 1. Explain the usage of templates in C Describe templates and its types. 3. Explain function templates with an example. 4. Explain major categories of containers supported by STL. 5. Explain the components of standard template library in detail. 6. Explain with examples, the types of inheritance in C What is multiple inheritances? Discuss the syntax and rules of multiple inheritances in C++. How can you pass parameters to the constructors of base classes in multiple inheritances? Explain with suitable example. 8. What is inheritance? List out the advantages of inheritance. 9. Write a C++ program to illustrate the concept of hierarchical inheritance. 10. Explain the order in which the constructors are called when an object of derived class is created. 11. State the rules for virtual functions. Write a C++ program to declare a virtual function &demonstrate it. 12. Explain run time polymorphism with an example program in C Explain about implementation of run time polymorphism in C++ with an example. 14. What is an abstract class? What is dynamic binding? How is it achieved? 15. What is the difference between a virtual function and a pure virtual function? Give example of each. 16. Explain about exception handling with an example program. Page 5

17 CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE 17. Write a C++ program to generate user defined exception user inputs odd numbers. UNIT IV 1. Explain the virtual machine concept with reference to java. 2. Explain the importance of JVM in JRE. 3. Explain various features of java. 4. Explain how C++ differs from java. 5. Write a java program to find factorial of a given number. 6. Write a menu based java program that can calculate the area of triangle, circle or square based on the user s choice. 7. Write a java program to find the sum of the following series n. 8. Write a java program to create two single dimensional arrays, initialize them and add them; store the result in another array. 9. Write a java program to find the maximum number of given array. 10. Write a program to convert an integer array to string. 11. Discuss about java command line arguments. 12. Explain arrays and its types in detail with suitable example. 13. Create a complex number class in java. The class should have a constructor and methods to add, subtract and multiply two complex numbers and to return the real and imaginary parts. 14. Write a java class called student with name, marks of 3 subjects and total marks. Write another class name calculate that gets marks of the student and calculates the total marks and displays the result. (pass and fail). 15. Create class box and box3d. box3d is an extended class of box. The above two classes has to fulfill the following requirement. (i) Include constructor (ii) Set value of breadth, height (iii) find out area and volume. 16. Explain in detail about the inheritance mechanism in java with an example programs. UNIT V 1. What are packages? How do they created and used? 2. Explain about packages in java. 3. How do we add a class or interface to a package? Page 6

18 CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE 4. Write a java program to implement nested packages. 5. Explain the interfaces in detail with suitable example. 6. What is an exception? List the java common exception types and causes. 7. Write a java program to add 2 integers and raise exception when any other character except number (0-9) is given as input. 8. Write a java program to create a user defined exception whenever user input a word hello. 9. Write a program containing a possible exception. Use a try block and throw it and a catch block to handle it properly. 10. Explain with an example program, exception handling in java. 11. Explain the life cycle of a thread in detail with an example. 12. What is a thread? How do you create threads? 13. What is multithreading? Explain with an example. 14. Explain about thread synchronization with an example. 15. Write a java program to perform all string operations using the string class. 16. Explain about various string operations in java. 17. Write short note on Strings in java. 18. Write a simple program to find a given string in a string array. 19. Write a java program to split a string into multiple java string objects. 20. Explain the concept of stream and its byte stream classes in detail. 21. Write a short note on various I/O streams in java. 22. Write a java program to demonstrate how to read and write data to a file. *****BEST OF LUCK**** Page 7

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE PART A UNIT I 1. Differentiate object oriented programming from procedure oriented programming. 2. Define abstraction and encapsulation. 3. Differentiate

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK B.E. - Electrical and Electronics Engineering IV SEMESTER CS6456 - OBJECT ORIENTED

More information

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR 603203 DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS QUESTION BANK (2017-2018) Course / Branch : M.Sc CST Semester / Year : EVEN / II Subject Name

More information

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR 603203 DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS QUESTION BANK (2017-2018) Course / Branch : M.Sc.,CST Semester / Year : EVEN / III Subject Name

More information

DEPARTMENT OF INFORMATION TECHNOLOGY

DEPARTMENT OF INFORMATION TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY II Year/III Sem CS8392- OBJECT ORIENTED PROGRAMMING Prepared by: Komal Kumar.N, AP/IT, VTHT UNIVERSITY QUESTIONS FROM 2011 to 2018 PART-A 1. What are the advantages

More information

Preface to the Second Edition Preface to the First Edition Brief Contents Introduction to C++ p. 1 A Review of Structures p.

Preface to the Second Edition Preface to the First Edition Brief Contents Introduction to C++ p. 1 A Review of Structures p. Preface to the Second Edition p. iii Preface to the First Edition p. vi Brief Contents p. ix Introduction to C++ p. 1 A Review of Structures p. 1 The Need for Structures p. 1 Creating a New Data Type Using

More information

Jayaram college of Engineering and Technology, Pagalavadi. CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT

Jayaram college of Engineering and Technology, Pagalavadi. CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT Two Mark Questions UNIT - I 1. DEFINE ENCAPSULATION. Encapsulation is the process of combining data and functions

More information

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++ No. of Printed Pages : 3 I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination 05723. June, 2015 BCS-031 : PROGRAMMING IN C ++ Time : 3 hours Maximum Marks : 100 (Weightage 75%)

More information

Object Oriented Programming

Object Oriented Programming Object Oriented Programming Course Title: Object Oriented Programming Full Marks: 60 20 20 Course No: CSC161 Pass Marks: 24 8 8 Nature of Course: Theory Lab Credit Hrs: 3 Semester: II Course Description:

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 60 0 DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK III SEMESTER CS89- Object Oriented Programming Regulation 07 Academic Year 08 9 Prepared

More information

JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli (An approved by AICTE and Affiliated to Anna University)

JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli (An approved by AICTE and Affiliated to Anna University) Estd: 1994 JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli - 621014 (An approved by AICTE and Affiliated to Anna University) ISO 9001:2000 Certified Subject Code & Name : CS 1202

More information

MaanavaN.Com CS1203 OBJECT ORIENTED PROGRAMMING DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

MaanavaN.Com CS1203 OBJECT ORIENTED PROGRAMMING DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING SUB CODE / SUBJECT: CS1203 / Object oriented programming YEAR / SEM: II / III QUESTION BANK UNIT I FUNDAMENTALS PART-A (2 MARKS) 1. What is Object Oriented

More information

RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY OBJECT ORIENTED PROGRAMMING QUESTION BANK UNIT I 2 MARKS

RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY OBJECT ORIENTED PROGRAMMING QUESTION BANK UNIT I 2 MARKS RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY OBJECT ORIENTED PROGRAMMING YEAR/SEM:II & III UNIT I 1) Give the evolution diagram of OOPS concept. 2) Give some

More information

END TERM EXAMINATION

END TERM EXAMINATION END TERM EXAMINATION THIRD SEMESTER [BCA] DECEMBER 2007 Paper Code: BCA 209 Subject: Object Oriented Programming Time: 3 hours Maximum Marks: 75 Note: Attempt all questions. Internal choice is indicated.

More information

Time : 3 hours. Full Marks : 75. Own words as far as practicable. The questions are of equal value. Answer any five questions.

Time : 3 hours. Full Marks : 75. Own words as far as practicable. The questions are of equal value. Answer any five questions. XEV (H-3) BCA (6) 2 0 1 0 Time : 3 hours Full Marks : 75 Candidates are required to give their answers in their Own words as far as practicable. The questions are of equal value. Answer any five questions.

More information

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur 603203. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Year & Semester : II / III Section : CSE - 1 & 2 Subject Code : CS 6301 Subject Name : Programming

More information

Object Oriented Programming with Java. Unit-1

Object Oriented Programming with Java. Unit-1 CEB430 Object Oriented Programming with Java Unit-1 PART A 1. Define Object Oriented Programming. 2. Define Objects. 3. What are the features of Object oriented programming. 4. Define Encapsulation and

More information

DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY ACADEMIC YEAR (ODD SEM)

DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY ACADEMIC YEAR (ODD SEM) DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY ACADEMIC YEAR 2018-19 (ODD SEM) DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING SUB: OBJECT ORIENTED PROGRAMMING SEM/YEAR: III SEM/ II YEAR

More information

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR 603203 DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS QUESTION BANK (2017-2018) Course / Branch : MCA Semester / Year : EVEN / II Subject Name : Programming

More information

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING CS6456 OBJECT ORIENTED PROGRAMMING

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING CS6456 OBJECT ORIENTED PROGRAMMING DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING CS6456 OBJECT ORIENTED PROGRAMMING Unit I : OVERVIEW PART A (2 Marks) 1. Give some characteristics of procedure-oriented

More information

M.C.A DEGREE EXAMINATION,NOVEMBER/DECEMBER 2010 Second Semester MC 9222-OBJECT ORIENTED PROGRAMMING (Regulation 2009)

M.C.A DEGREE EXAMINATION,NOVEMBER/DECEMBER 2010 Second Semester MC 9222-OBJECT ORIENTED PROGRAMMING (Regulation 2009) M.C.A DEGREE EXAMINATION,NOVEMBER/DECEMBER 2010 MC 9222-OBJECT ORIENTED PROGRAMMING (Regulation 2009) Max:100 Marks 1. How are data and function organized in an object oriented programming? 2. Compare

More information

Object Oriented Programming with c++ Question Bank

Object Oriented Programming with c++ Question Bank Object Oriented Programming with c++ Question Bank UNIT-1: Introduction to C++ 1. Describe the following characteristics of OOP. i Encapsulation ii Polymorphism, iii Inheritance 2. Discuss function prototyping,

More information

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING OBJECT ORIENTED PROGRAMMING STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING 1. Object Oriented Programming Paradigms 2. Comparison of Programming Paradigms 3. Basic Object Oriented Programming

More information

Absolute C++ Walter Savitch

Absolute C++ Walter Savitch Absolute C++ sixth edition Walter Savitch Global edition This page intentionally left blank Absolute C++, Global Edition Cover Title Page Copyright Page Preface Acknowledgments Brief Contents Contents

More information

B.C.A 2017 OBJECT ORIENTED PROGRAMMING USING C++ BCA303T MODULE SPECIFICATION SHEET

B.C.A 2017 OBJECT ORIENTED PROGRAMMING USING C++ BCA303T MODULE SPECIFICATION SHEET B.C.A 2017 OBJECT ORIENTED PROGRAMMING USING C++ BCA303T MODULE SPECIFICATION SHEET Course Outline The main objective of this course is to introduce students to the basic concepts of a selected language

More information

Inheritance, and Polymorphism.

Inheritance, and Polymorphism. Inheritance and Polymorphism by Yukong Zhang Object-oriented programming languages are the most widely used modern programming languages. They model programming based on objects which are very close to

More information

Name of subject: JAVA PROGRAMMING Subject code: Semester: V ASSIGNMENT 1

Name of subject: JAVA PROGRAMMING Subject code: Semester: V ASSIGNMENT 1 Name of subject: JAVA PROGRAMMING Subject code: 17515 Semester: V ASSIGNMENT 1 3 Marks Introduction to Java (16 Marks) 1. Write all primitive data types available in java with their storage size in bytes.

More information

STRUCTURING OF PROGRAM

STRUCTURING OF PROGRAM Unit III MULTIPLE CHOICE QUESTIONS 1. Which of the following is the functionality of Data Abstraction? (a) Reduce Complexity (c) Parallelism Unit III 3.1 (b) Binds together code and data (d) None of the

More information

S.No Question Blooms Level Course Outcome UNIT I. Programming Language Syntax and semantics

S.No Question Blooms Level Course Outcome UNIT I. Programming Language Syntax and semantics S.No Question Blooms Level Course Outcome UNIT I. Programming Language Syntax and semantics 1 What do you mean by axiomatic Knowledge C254.1 semantics? Give the weakest precondition for a sequence of statements.

More information

Interview Questions of C++

Interview Questions of C++ Interview Questions of C++ Q-1 What is the full form of OOPS? Ans: Object Oriented Programming System. Q-2 What is a class? Ans: Class is a blue print which reflects the entities attributes and actions.

More information

Short Notes of CS201

Short Notes of CS201 #includes: Short Notes of CS201 The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with < and > if the file is a system

More information

Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p.

Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p. Preface p. xix Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p. 5 Java Applets and Applications p. 5

More information

OBJECT ORIENTED PROGRAMMING USING C++ CSCI Object Oriented Analysis and Design By Manali Torpe

OBJECT ORIENTED PROGRAMMING USING C++ CSCI Object Oriented Analysis and Design By Manali Torpe OBJECT ORIENTED PROGRAMMING USING C++ CSCI 5448- Object Oriented Analysis and Design By Manali Torpe Fundamentals of OOP Class Object Encapsulation Abstraction Inheritance Polymorphism Reusability C++

More information

CS201 - Introduction to Programming Glossary By

CS201 - Introduction to Programming Glossary By CS201 - Introduction to Programming Glossary By #include : The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with

More information

Sri Vidya College of Engineering & Technology

Sri Vidya College of Engineering & Technology UNIT I INTRODUCTION TO OOP AND FUNDAMENTALS OF JAVA 1. Define OOP. Part A Object-Oriented Programming (OOP) is a methodology or paradigm to design a program using classes and objects. It simplifies the

More information

5. In JAVA, is exception handling implicit or explicit or both. Explain with the help of example java programs. [16]

5. In JAVA, is exception handling implicit or explicit or both. Explain with the help of example java programs. [16] Code No: R05220402 Set No. 1 1. (a) java is freeform language. Comment (b) Describe in detail the steps involved in implementing a stand-alone program. (c) What are command line arguments? How are they

More information

Object-Oriented Programming

Object-Oriented Programming Object-Oriented Programming 1. What is object-oriented programming (OOP)? OOP is a technique to develop logical modules, such as classes that contain properties, methods, fields, and events. An object

More information

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR 603 203 FIRST SEMESTER B.E / B.Tech., (Common to all Branches) QUESTION BANK - GE 6151 COMPUTER PROGRAMMING UNIT I - INTRODUCTION Generation and

More information

CHOICE BASED CREDIT SYSTEM (With effect from )

CHOICE BASED CREDIT SYSTEM (With effect from ) B.Sc. Computer Science Syllabus Under the CHOICE BASED CREDIT SYSTEM (With effect from 2017-18) DEPARTMENT OF COMPUTER SCIENCE University College,TU,Nizamabad-503322 Syllabus for Computer Science (With

More information

PROGRAMMING IN C AND C++:

PROGRAMMING IN C AND C++: PROGRAMMING IN C AND C++: Week 1 1. Introductions 2. Using Dos commands, make a directory: C:\users\YearOfJoining\Sectionx\USERNAME\CS101 3. Getting started with Visual C++. 4. Write a program to print

More information

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur 603203. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK Degree & Branch : B.E E.C.E. Year & Semester : II / IV Section : ECE 1, 2 &

More information

CGS 2405 Advanced Programming with C++ Course Justification

CGS 2405 Advanced Programming with C++ Course Justification Course Justification This course is the second C++ computer programming course in the Computer Science Associate in Arts degree program. This course is required for an Associate in Arts Computer Science

More information

CS Internet programming Unit- I Part - A 1 Define Java. 2. What is a Class? 3. What is an Object? 4. What is an Instance?

CS Internet programming Unit- I Part - A 1 Define Java. 2. What is a Class? 3. What is an Object? 4. What is an Instance? CS6501 - Internet programming Unit- I Part - A 1 Define Java. Java is a programming language expressly designed for use in the distributed environment of the Internet. It was designed to have the "look

More information

BCA (Part II) EXAMINATION 2008 C++ PROGRAMMING Max Time : 3 Hours Max. Marks : 50

BCA (Part II) EXAMINATION 2008 C++ PROGRAMMING Max Time : 3 Hours Max. Marks : 50 C++ PROGRAMMING 1. (a) What are the characteristics of object-oriented language? What are the advantages of using OOPS? (b) What are the Application of Public, Private, and Protected keywords? Explain.

More information

FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN

FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN Course Code: CS1005 Course Title: Object Oriented Programming Semester: II Course Time: Jul-Dec 2014 A B C D E F

More information

Introduction to Programming Using Java (98-388)

Introduction to Programming Using Java (98-388) Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;

More information

OOPS Viva Questions. Object is termed as an instance of a class, and it has its own state, behavior and identity.

OOPS Viva Questions. Object is termed as an instance of a class, and it has its own state, behavior and identity. OOPS Viva Questions 1. What is OOPS? OOPS is abbreviated as Object Oriented Programming system in which programs are considered as a collection of objects. Each object is nothing but an instance of a class.

More information

Objective Questions. BCA Part III Paper XIX (Java Programming) page 1 of 5

Objective Questions. BCA Part III Paper XIX (Java Programming) page 1 of 5 Objective Questions BCA Part III page 1 of 5 1. Java is purely object oriented and provides - a. Abstraction, inheritance b. Encapsulation, polymorphism c. Abstraction, polymorphism d. All of the above

More information

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries 1 CONTENTS 1. Introduction to Java 2. Holding Data 3. Controllin g the f l o w 4. Object Oriented Programming Concepts 5. Inheritance & Packaging 6. Handling Error/Exceptions 7. Handling Strings 8. Threads

More information

XII- COMPUTER SCIENCE VOL-II MODEL TEST I

XII- COMPUTER SCIENCE VOL-II MODEL TEST I MODEL TEST I 1. What is the significance of an object? 2. What are Keyword in c++? List a few Keyword in c++?. 3. What is a Pointer? (or) What is a Pointer Variable? 4. What is an assignment operator?

More information

Object-Oriented Programming

Object-Oriented Programming Object-Oriented Programming 3/18/14 Presentation for use with the textbook Data Structures and Algorithms in Java, 6th edition, by M. T. Goodrich, R. Tamassia, and M. H. Goldwasser, Wiley, 2014 Object-Oriented

More information

I BSc(IT) [ Batch] Semester II Core: Object Oriented Programming With C plus plus - 212A Multiple Choice Questions.

I BSc(IT) [ Batch] Semester II Core: Object Oriented Programming With C plus plus - 212A Multiple Choice Questions. Dr.G.R.Damodaran College of Science (Autonomous, affiliated to the Bharathiar University, recognized by the UGC)Reaccredited at the 'A' Grade Level by the NAAC and ISO 9001:2008 Certified CRISL rated 'A'

More information

KLiC C++ Programming. (KLiC Certificate in C++ Programming)

KLiC C++ Programming. (KLiC Certificate in C++ Programming) KLiC C++ Programming (KLiC Certificate in C++ Programming) Turbo C Skills: Pre-requisite Knowledge and Skills, Inspire with C Programming, Checklist for Installation, The Programming Languages, The main

More information

10CS36: Object Oriented Programming with C++

10CS36: Object Oriented Programming with C++ 10CS36: Object Oriented Programming with C++ Question Bank: UNIT 1: Introduction to C++ 1. What is Procedure-oriented Programming System? Dec 2005 2. What is Object-oriented Programming System? June 2006

More information

Object Oriented Programming. Assistant Lecture Omar Al Khayat 2 nd Year

Object Oriented Programming. Assistant Lecture Omar Al Khayat 2 nd Year Object Oriented Programming Assistant Lecture Omar Al Khayat 2 nd Year Syllabus Overview of C++ Program Principles of object oriented programming including classes Introduction to Object-Oriented Paradigm:Structures

More information

Syllabus for Bachelor of Technology. Computer Engineering. Subject Code: 01CE1303. B.Tech. Year - II

Syllabus for Bachelor of Technology. Computer Engineering. Subject Code: 01CE1303. B.Tech. Year - II Subject Code: 01CE1303 Subject Name: Object Oriented Design and Programming B.Tech. Year - II Objective: The objectives of the course are to have students identify and practice the object-oriented programming

More information

Compaq Interview Questions And Answers

Compaq Interview Questions And Answers Part A: Q1. What are the difference between java and C++? Java adopts byte code whereas C++ does not C++ supports destructor whereas java does not support. Multiple inheritance possible in C++ but not

More information

An Object Oriented Programming with C

An Object Oriented Programming with C An Object Oriented Programming with C By Tanmay Kasbe Dr. Ravi Singh Pippal IDEA PUBLISHING WWW.ideapublishing.in i Publishing-in-support-of, IDEA PUBLISHING Block- 9b, Transit Flats, Hudco Place Extension

More information

Object Oriented Programming. Solved MCQs - Part 2

Object Oriented Programming. Solved MCQs - Part 2 Object Oriented Programming Solved MCQs - Part 2 Object Oriented Programming Solved MCQs - Part 2 It is possible to declare as a friend A member function A global function A class All of the above What

More information

Java for Programmers Course (equivalent to SL 275) 36 Contact Hours

Java for Programmers Course (equivalent to SL 275) 36 Contact Hours Java for Programmers Course (equivalent to SL 275) 36 Contact Hours Course Overview This course teaches programmers the skills necessary to create Java programming system applications and satisfies the

More information

SRM INSTITUTE OF SCIENCE & TECHNOLOGY Faculty of Science and Humanities Department of Computer Science UNIT I - INTRODUCTION TO JAVA

SRM INSTITUTE OF SCIENCE & TECHNOLOGY Faculty of Science and Humanities Department of Computer Science UNIT I - INTRODUCTION TO JAVA SRM INSTITUTE OF SCIENCE & TECHNOLOGY Faculty of Science and Humanities Department of Computer Science Subject code : UCS15301 Subject Name : Java Programming Staff Name : S.P.ANGELIN CLARET No. of : 5

More information

Object-Oriented Programming (OOP) Fundamental Principles of OOP

Object-Oriented Programming (OOP) Fundamental Principles of OOP Object-Oriented Programming (OOP) O b j e c t O r i e n t e d P r o g r a m m i n g 1 Object-oriented programming is the successor of procedural programming. The problem with procedural programming is

More information

AN OVERVIEW OF C++ 1

AN OVERVIEW OF C++ 1 AN OVERVIEW OF C++ 1 OBJECTIVES Introduction What is object-oriented programming? Two versions of C++ C++ console I/O C++ comments Classes: A first look Some differences between C and C++ Introducing function

More information

Department of Computer science and Engineering Sub. Name: Object oriented programming and data structures Sub. Code: EC6301 Sem/Class: III/II-ECE Staff name: M.Kavipriya Two Mark Questions UNIT-1 1. List

More information

OBJECT ORIENTED PROGRAMMING. Ms. Ajeta Nandal C.R.Polytechnic,Rohtak

OBJECT ORIENTED PROGRAMMING. Ms. Ajeta Nandal C.R.Polytechnic,Rohtak OBJECT ORIENTED PROGRAMMING Ms. Ajeta Nandal C.R.Polytechnic,Rohtak OBJECT ORIENTED PARADIGM Object 2 Object 1 Data Data Function Function Object 3 Data Function 2 WHAT IS A MODEL? A model is an abstraction

More information

BCA (Part II) EXAMINATION, 2009 C++ PROGRAMMING Time allowed: Three Hours Maximum Marks: 50 Attempt any five questions

BCA (Part II) EXAMINATION, 2009 C++ PROGRAMMING Time allowed: Three Hours Maximum Marks: 50 Attempt any five questions C++ PROGRAMMING Attempt any five questions 1. (a) What is encapsulation? Why is data considered safe if encapsulated? How are the terms abstraction and encapsulation related. 4 (b) What do you understand

More information

Lesson Plan. Subject: OBJECT ORIENTED PROGRAMMING USING C++ :15 weeks (From January, 2018 to April,2018)

Lesson Plan. Subject: OBJECT ORIENTED PROGRAMMING USING C++ :15 weeks (From January, 2018 to April,2018) Lesson Plan Name of the Faculty Discipline Semester :Mrs. Reena Rani : Computer Engineering : IV Subject: OBJECT ORIENTED PROGRAMMING USING C++ Lesson Plan Duration :15 weeks (From January, 2018 to April,2018)

More information

Govt. of Karnataka, Department of Technical Education Diploma in Information Science & Engineering. Fifth Semester

Govt. of Karnataka, Department of Technical Education Diploma in Information Science & Engineering. Fifth Semester Govt. of Karnataka, Department of Technical Education Diploma in Information Science & Engineering Fifth Semester Subject: Programming With Java Contact Hrs / week: 4 Total hrs: 64 Table of Contents SN

More information

Problem Solving with C++

Problem Solving with C++ GLOBAL EDITION Problem Solving with C++ NINTH EDITION Walter Savitch Kendrick Mock Ninth Edition PROBLEM SOLVING with C++ Problem Solving with C++, Global Edition Cover Title Copyright Contents Chapter

More information

SCHEME OF COURSE WORK

SCHEME OF COURSE WORK SCHEME OF COURSE WORK Course Details: Course Title Object oriented programming through JAVA Course Code 15CT1109 L T P C : 3 0 0 3 Program: B.Tech. Specialization: Information Technology Semester IV Prerequisites

More information

Babaria Institute of Technology Computer Science and Engineering Department Practical List of Object Oriented Programming with C

Babaria Institute of Technology Computer Science and Engineering Department Practical List of Object Oriented Programming with C Practical -1 Babaria Institute of Technology LEARN CONCEPTS OF OOP 1. Explain Object Oriented Paradigm with figure. 2. Explain basic Concepts of OOP with example a. Class b. Object c. Data Encapsulation

More information

Intro to OOP Visibility/protection levels and constructors Friend, convert constructor, destructor Operator overloading a<=b a.

Intro to OOP Visibility/protection levels and constructors Friend, convert constructor, destructor Operator overloading a<=b a. Intro to OOP - Object and class - The sequence to define and use a class in a program - How/when to use scope resolution operator - How/when to the dot operator - Should be able to write the prototype

More information

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS Contents Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS 1.1. INTRODUCTION TO COMPUTERS... 1 1.2. HISTORY OF C & C++... 3 1.3. DESIGN, DEVELOPMENT AND EXECUTION OF A PROGRAM... 3 1.4 TESTING OF PROGRAMS...

More information

Paytm Programming Sample paper: 1) A copy constructor is called. a. when an object is returned by value

Paytm Programming Sample paper: 1) A copy constructor is called. a. when an object is returned by value Paytm Programming Sample paper: 1) A copy constructor is called a. when an object is returned by value b. when an object is passed by value as an argument c. when compiler generates a temporary object

More information

15CS45 : OBJECT ORIENTED CONCEPTS

15CS45 : OBJECT ORIENTED CONCEPTS 15CS45 : OBJECT ORIENTED CONCEPTS QUESTION BANK: What do you know about Java? What are the supported platforms by Java Programming Language? List any five features of Java? Why is Java Architectural Neutral?

More information

Question Paper Code : 97044

Question Paper Code : 97044 Reg. No. : Question Paper Code : 97044 B.E./B.Tech. DEGREE EXAMINATION NOVEMBER/DECEMBER 2014 Third Semester Computer Science and Engineering CS 6301 PROGRAMMING AND DATA STRUCTURES-II (Regulation 2013)

More information

Contents. iii Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1998, Revision B

Contents. iii Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1998, Revision B Contents About the Course...xv Course Overview... xvi Course Map... xvii Module-by-Module Overview... xviii Course Objectives... xxii Skills Gained by Module... xxiii Guidelines for Module Pacing... xxiv

More information

CS506 Web Programming and Development Solved Subjective Questions With Reference For Final Term Lecture No 1

CS506 Web Programming and Development Solved Subjective Questions With Reference For Final Term Lecture No 1 P a g e 1 CS506 Web Programming and Development Solved Subjective Questions With Reference For Final Term Lecture No 1 Q1 Describe some Characteristics/Advantages of Java Language? (P#12, 13, 14) 1. Java

More information

CS201 Latest Solved MCQs

CS201 Latest Solved MCQs Quiz Start Time: 09:34 PM Time Left 82 sec(s) Question # 1 of 10 ( Start time: 09:34:54 PM ) Total Marks: 1 While developing a program; should we think about the user interface? //handouts main reusability

More information

The Foundation of C++: The C Subset An Overview of C p. 3 The Origins and History of C p. 4 C Is a Middle-Level Language p. 5 C Is a Structured

The Foundation of C++: The C Subset An Overview of C p. 3 The Origins and History of C p. 4 C Is a Middle-Level Language p. 5 C Is a Structured Introduction p. xxix The Foundation of C++: The C Subset An Overview of C p. 3 The Origins and History of C p. 4 C Is a Middle-Level Language p. 5 C Is a Structured Language p. 6 C Is a Programmer's Language

More information

WA1278 Introduction to Java Using Eclipse

WA1278 Introduction to Java Using Eclipse Lincoln Land Community College Capital City Training Center 130 West Mason Springfield, IL 62702 217-782-7436 www.llcc.edu/cctc WA1278 Introduction to Java Using Eclipse This course introduces the Java

More information

SAURASHTRA UNIVERSITY

SAURASHTRA UNIVERSITY SAURASHTRA UNIVERSITY RAJKOT INDIA Accredited Grade A by NAAC (CGPA 3.05) CURRICULAM FOR B.Sc. (Computer Science) Bachelor of Science (Computer Science) (Semester - 1 Semester - 2) Effective From June

More information

What are the characteristics of Object Oriented programming language?

What are the characteristics of Object Oriented programming language? What are the various elements of OOP? Following are the various elements of OOP:- Class:- A class is a collection of data and the various operations that can be performed on that data. Object- This is

More information

PROGRAMMING IN C++ (Regulation 2008) Answer ALL questions PART A (10 2 = 20 Marks) PART B (5 16 = 80 Marks) function? (8)

PROGRAMMING IN C++ (Regulation 2008) Answer ALL questions PART A (10 2 = 20 Marks) PART B (5 16 = 80 Marks) function? (8) B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2009 EC 2202 DATA STRUCTURES AND OBJECT ORIENTED Time: Three hours PROGRAMMING IN C++ Answer ALL questions Maximum: 100 Marks 1. When do we declare a

More information

DOWNLOAD PDF CORE JAVA APTITUDE QUESTIONS AND ANSWERS

DOWNLOAD PDF CORE JAVA APTITUDE QUESTIONS AND ANSWERS Chapter 1 : Chapter-wise Java Multiple Choice Questions and Answers Interview MCQs Java Programming questions and answers with explanation for interview, competitive examination and entrance test. Fully

More information

Cpt S 122 Data Structures. Course Review Midterm Exam # 2

Cpt S 122 Data Structures. Course Review Midterm Exam # 2 Cpt S 122 Data Structures Course Review Midterm Exam # 2 Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Midterm Exam 2 When: Monday (11/05) 12:10 pm -1pm

More information

C++ (Non for C Programmer) (BT307) 40 Hours

C++ (Non for C Programmer) (BT307) 40 Hours C++ (Non for C Programmer) (BT307) 40 Hours Overview C++ is undoubtedly one of the most widely used programming language for implementing object-oriented systems. The C++ language is based on the popular

More information

Hierarchical inheritance: Contains one base class and multiple derived classes of the same base class.

Hierarchical inheritance: Contains one base class and multiple derived classes of the same base class. 1. What is C#? C# (pronounced "C sharp") is a simple, modern, object oriented, and type safe programming language. It will immediately be familiar to C and C++ programmers. C# combines the high productivity

More information

Instantiation of Template class

Instantiation of Template class Class Templates Templates are like advanced macros. They are useful for building new classes that depend on already existing user defined classes or built-in types. Example: stack of int or stack of double

More information

Advanced C++ Programming Workshop (With C++11, C++14, C++17) & Design Patterns

Advanced C++ Programming Workshop (With C++11, C++14, C++17) & Design Patterns Advanced C++ Programming Workshop (With C++11, C++14, C++17) & Design Patterns This Advanced C++ Programming training course is a comprehensive course consists of three modules. A preliminary module reviews

More information

Object Oriented Programming in Java. Jaanus Pöial, PhD Tallinn, Estonia

Object Oriented Programming in Java. Jaanus Pöial, PhD Tallinn, Estonia Object Oriented Programming in Java Jaanus Pöial, PhD Tallinn, Estonia Motivation for Object Oriented Programming Decrease complexity (use layers of abstraction, interfaces, modularity,...) Reuse existing

More information

Cpt S 122 Data Structures. Introduction to C++ Part II

Cpt S 122 Data Structures. Introduction to C++ Part II Cpt S 122 Data Structures Introduction to C++ Part II Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Topics Objectives Defining class with a member function

More information

CS304 Object Oriented Programming

CS304 Object Oriented Programming 1 CS304 Object Oriented Programming 1. Which of the following is the way to extract common behaviour and attributes from the given classes and make a separate class of those common behaviours and attributes?

More information

(800) Toll Free (804) Fax Introduction to Java and Enterprise Java using Eclipse IDE Duration: 5 days

(800) Toll Free (804) Fax   Introduction to Java and Enterprise Java using Eclipse IDE Duration: 5 days Course Description This course introduces the Java programming language and how to develop Java applications using Eclipse 3.0. Students learn the syntax of the Java programming language, object-oriented

More information

Quiz Start Time: 09:34 PM Time Left 82 sec(s)

Quiz Start Time: 09:34 PM Time Left 82 sec(s) Quiz Start Time: 09:34 PM Time Left 82 sec(s) Question # 1 of 10 ( Start time: 09:34:54 PM ) Total Marks: 1 While developing a program; should we think about the user interface? //handouts main reusability

More information

Modern Programming Languages. Lecture Java Programming Language. An Introduction

Modern Programming Languages. Lecture Java Programming Language. An Introduction Modern Programming Languages Lecture 27-30 Java Programming Language An Introduction 107 Java was developed at Sun in the early 1990s and is based on C++. It looks very similar to C++ but it is significantly

More information

CERTIFICATE IN WEB PROGRAMMING

CERTIFICATE IN WEB PROGRAMMING COURSE DURATION: 6 MONTHS CONTENTS : CERTIFICATE IN WEB PROGRAMMING 1. PROGRAMMING IN C and C++ Language 2. HTML/CSS and JavaScript 3. PHP and MySQL 4. Project on Development of Web Application 1. PROGRAMMING

More information

C++ for System Developers with Design Pattern

C++ for System Developers with Design Pattern C++ for System Developers with Design Pattern Introduction: This course introduces the C++ language for use on real time and embedded applications. The first part of the course focuses on the language

More information

Software Development & Education Center. Java Platform, Standard Edition 7 (JSE 7)

Software Development & Education Center. Java Platform, Standard Edition 7 (JSE 7) Software Development & Education Center Java Platform, Standard Edition 7 (JSE 7) Detailed Curriculum Getting Started What Is the Java Technology? Primary Goals of the Java Technology The Java Virtual

More information

[Course Overview] After completing this module you are ready to: Develop Desktop applications, Networking & Multi-threaded programs in java.

[Course Overview] After completing this module you are ready to: Develop Desktop applications, Networking & Multi-threaded programs in java. [Course Overview] The Core Java technologies and application programming interfaces (APIs) are the foundation of the Java Platform, Standard Edition (Java SE). They are used in all classes of Java programming,

More information