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

Similar documents
SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

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

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

Object Oriented Programming with c++ Question Bank

Object Oriented Programming

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

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

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

Absolute C++ Walter Savitch

Get Unique study materials from

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

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

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

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

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

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

VALLIAMMAI ENGINEERING COLLEGE

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

C++ for System Developers with Design Pattern

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

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

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

10CS36: Object Oriented Programming with C++

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


Welcome to Teach Yourself Acknowledgments Fundamental C++ Programming p. 2 An Introduction to C++ p. 4 A Brief History of C++ p.

C++ Important Questions with Answers


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

Problem Solving with C++

CHOICE BASED CREDIT SYSTEM (With effect from )

An Object Oriented Programming with C

Real Time & Embedded Linux Solutions. C++ and OOD for Embedded Systems. משך הקורס 40 שעות לימוד ותרגול בשיטת Hands-on-Training

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

CGS 2405 Advanced Programming with C++ Course Justification

AN OVERVIEW OF C++ 1

XII- COMPUTER SCIENCE VOL-II MODEL TEST I

Syllabus of C++ Software for Hands-on Learning: This course offers the following modules: Module 1: Getting Started with C++ Programming

Interview Questions of C++

Short Notes of CS201

Object Oriented Programming with Java. Unit-1

Introduction to Programming Using Java (98-388)

QUIZ. Write the following for the class Bar: Default constructor Constructor Copy-constructor Overloaded assignment oper. Is a destructor needed?

CS201 - Introduction to Programming Glossary By

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

CS 162, Lecture 25: Exam II Review. 30 May 2018

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING

CHAPTER 1 Introduction to Computers and Programming CHAPTER 2 Introduction to C++ ( Hexadecimal 0xF4 and Octal literals 031) cout Object

END TERM EXAMINATION

DEPARTMENT OF COMPUTER APPLICATIONS B.C.A. - FIRST YEAR ( REGULATION) SECOND SEMESTER LESSON PLAN SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

Polymorphism. Zimmer CSCI 330

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

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

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING OBJECT ORIENTED PROGRAMMING CLASS : THIRD SEMESTER CSE

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

LESSON PLAN B.C.A. - FIRST YEAR ( REGULATION) SECOND SEMESTER

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

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

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


Cpt S 122 Data Structures. Course Review FINAL. Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University

CMSC 202 Section 010x Spring Justin Martineau, Tuesday 11:30am

Sri Vidya College of Engineering & Technology

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

DEPARTMENT OF INFORMATION TECHNOLOGY

MAHALAKSHMI ENGINEERING COLLEGE B TIRUCHIRAPALLI

Jh fouk;d egkfo ky;] xkmjokjk RANI DURGAVATI VISHWAVIDYALAYA, JABALPUR BACHLOR OF COMPUTER APPLICATION BCA SYLLABUS THIRD SEMESTER

CPSC 427: Object-Oriented Programming

Object Oriented Programming. Solved MCQs - Part 2

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

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

Increases Program Structure which results in greater reliability. Polymorphism

What are the characteristics of Object Oriented programming language?

OBJECT ORIENTED DATA STRUCTURE & ALGORITHMS

Study Guide to Exam 2

STRUCTURING OF PROGRAM

Tokens, Expressions and Control Structures

Inheritance, Polymorphism and the Object Memory Model

INTRODUCTION TO.NET. Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.)

CERTIFICATE IN WEB PROGRAMMING

B.Sc II Year Computer Science (Optional)

CORE JAVA TRAINING COURSE CONTENT

Programming in Visual Basic with Microsoft Visual Studio 2010

SAURASHTRA UNIVERSITY

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL. TWO MARKS

CS35 - Object Oriented Programming

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Question Paper Code : 97044

PROGRAMMING IN VISUAL BASIC WITH MICROSOFT VISUAL STUDIO Course: 10550A; Duration: 5 Days; Instructor-led

Instantiation of Template class

Course Text. Course Description. Course Objectives. StraighterLine Introduction to Programming in C++

PROGRAMMING IN C++ COURSE CONTENT

Compulsory course in Computer Science

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

Object-Oriented Programming

OBJ. ORI.& MULT. PROG., M.C.Q. BANK, FOR UNIT -2, SECOND YEAR COMP. ENGG. SEM-4, 2012 PATTERN, U.O.P. UNIT-2

Course Hours

C# Syllabus. MS.NET Framework Introduction

CS304 Object Oriented Programming

CS304 Object Oriented Programming Final Term

Transcription:

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 characteristics of procedure-oriented language. 3) State the limitations of structured programming.(apr 16) 4) Write any four features of OOPS. 5) What are the basic concepts of OOPS?(Nov 15) 6) What are objects?(nov 14) 7) What is a class?(nov 14) 8) What is encapsulation? 9) What is data abstraction?(nov 15) 10) What are data members and member functions? 11) What is dynamic binding or late binding? 12) Write the process of programming in an object-oriented language? 13) Give any four advantages of OOPS. 14) What are the features required for object-based programming Language? 15) What are the features required for object oriented language? 16) Give any four applications of OOPS 17) Give any four applications of C++? 18) What are tokens? 19) What are keywords? 20) Rules for naming the identifiers in C++. 21) What are the operators available in C++? 22) What is a scope resolution operator? 23) What are free store operators (or) Memory management operators? 24) What are manipulators? 1 prepared by, M.Indumathy AP/IT

25) What do you mean by enumerated datatype? 26) What are symbolic constants? 27) What do you mean by dynamic initialization of variables? 28) What are reference variable? 29) What is member-dereferencing operator? 30) what is function prototype? 31) What is an inline function? 32) Write some situations where inline expansion may not work 33) what is a default argument? 34) What are constant arguments? 35) How the class is specified? 36) How to create an object? 37) How to access a class member? 38) How the member functions are defined? 39) What is static data member? 40) What is static member function? 41) How the objects are used as function argument? 42) What is called pass by reference? 43) Define const member 44) Define pointers to member 45) When the deferencing operator ->* is used? 46) What are Friend functions? Write the syntax.(nov 16) 47) Write some properties of friend functions. 48) What is polymorphism?(nov 16) 49) What is function overloading? Give an example. (Nov 16,Nov 14) 50) Define local classes. 1) Describe the advantages of OOP(8) 2) Explain the data types in c++?(nov 2016,Nov 2014) 3) Explain class and object with an example c++ program.(nov 2015,Nov 2016) 4) Explain object-oriented paradigm with al1 its essential elements.(nov 2015,Nov 14) 5) Explain the following concepts of object oriented programming in detail with an example. (Apr 2015,Nov 15) 2 prepared by, M.Indumathy AP/IT

(i) Data abstraction (ii) Inheritance (iii) Polymorphism (iv) Objects 6) Write brief notes on Friend function and show how Modifying a Class s private Data With a Friend Function. (Nov/dec 2011,Nov 14) 7) Write a program to get student details and print the same using pointer to objects and pointers to members of a class,create a class students.use appropriate functions and data members.(nov 15) 8) What is a static data member and what are common characteristics.(nov 14) UNIT II 1) Define constructor with syntax.(nov 15) 2) Define default constructor 3) Define parameterized constructor 4) Define default argument constructor 5) What is the ambiguity between default constructor and default argument constructor? 6) Define copy constructor 7) Define dynamic constructor 8) Define const object 9) Define destructor.(nov 16,Nov 14) 10) Define multiple constructors (constructor overloading). 11) Write some special characteristics of constructor 12) How the objects are initialized dynamically? 13) Define Inline Function? 14) Explain return by reference with an example. 15) What is operator overloading? 16) List out the operators that cannot be overloaded. 17) What is the purpose of using operator function? Write its syntax. 18) Write at least four rules for Operator overloading. (Apr 16) 19) Difference between unary and binary operator overloading.(nov 15) 3 prepared by, M.Indumathy AP/IT

20) How will you overload Unary & Binary operator using member functions? 21) How will you overload Unary and Binary operator using Friend functions? 22) How an overloaded operator can be invoked using member functions? 23) How an overloaded operator can be invoked using Friend functions? 24) List out the operators that cannot be overloaded using Friend function. 25) Explain basic to class type conversion with an example. 26) Explain class to basic type conversion with an example. 27) Explain one class to another class conversion with an example. 28) Define explicit constructor.(nov 14) 1) Explain copy constructor with suitable C++ coding.(nov 16) 2) Explain different types of constructor with an example C++ program.(nov 2016,Nov 14) 3) List out the rules for defining constructor with appropriate example.(nov 14) 4) State the rules to be followed while overloading an operator. Write a program to illustrate an overloading 5) What is operator overloading? How many arguments are required in the definition of an overloaded binary operator?(nov 2016,Nov 14,Nov 15) 6) What is constructor? Explain the types of constructor with an suitable example Write a program to overload = operator. Assign values of data members of one object to another object of the same type.(nov 15) 7) Difference between operator overloading and operator overriding.(nov 14). 8) Explain default constructors and parameterized constructor with suitable example(apr 2015,Nov 15). 9) Give comments on type conversion.(nov 14) 10) Explain constructor with Dynamic Allocation give example UNIT III 1) What are Exceptions?(Nov 16) 2) What are the two types of exceptions? 3) What is a synchronous exception? 4) What is an Asynchronous exception? 4 prepared by, M.Indumathy AP/IT

5) Mention any four exceptions.(nov 16) 6) What are the blocks used in the Exception Handling? 7) Draw the Exception handling model? 8) Write the syntax of try construct 9) Write the syntax of catch construct 10) Write the syntax of throw construct 11) List out the tasks to be performed for error handling code 12) Write the steps to be performed when an exception is raised(nov 15) 13) Write the syntax of specifying a list of exceptions 14) Write the syntax of catch all construct 15) What is a secure operation? 16) What is stack unwinding? 17) Write the functions to handle uncaught exceptions 18) What are the types of fault tolerant design techniques 19) List the components of exception handling.(nov 14) 20) List out some of the error handling functions 21) What are the two types of errors or bugs? 22) What is function template?(nov 15) 23) Write the syntax of function template(nov 14) 24) What is class template? 25) Write the syntax of class template.(nov 14) 1) Discuss the need for exception with try, catch and throw keywords.(nov 2014,Nov 2016) 2) What is Function Template? Write the syntax for function template. Write an example program for function template.(nov 16) 3) What is class template? Write the syntax for class template. Write an example program for class template.(nov 16,Nov 15) 4) What are Exceptions? What are the two types of exceptions? Draw the Exception handling model with example?(nov 2016,Apr 16,Nov 15) 5) What are uncaught exceptions? Write the functions to handle uncaught exceptions with a suitable example.(nov 2014) 6) What is terminating function?why is it needed?(nov 14) 5 prepared by, M.Indumathy AP/IT

UNIT I 1) What is meant by inheritance? (Nov 14,Apr 16) 2) List the rules for inheritance 3) List the class member s visibility?(nov 14) 4) Explain the public visibility 5) Explain the private visibility 6) Explain the protected visibility 7) What is meant by single inheritance? 8) What is multiple inheritance? (Nov 15) 9) What is hierarchical inheritance? 10) What is multilevel inheritance? 11) What is hybrid inheritance? 12) What is meant by Abstract base class? 13) Write short notes on virtual base class. 14) What are virtual functions? 15) Write some of the basic rules for virtual functions. 16) Differentiate between virtual and pure virtual function.(nov 14) 17) What are pure virtual functions? Write the syntax. (Nov 16) 18) What is polymorphism? 19) What are the types of polymorphism? 20) What is compile time polymorphism? 21) What the types in compile time polymorphism? 22) What is RTTI?(Nov 15) 23) List Out RTTI? 24) Explain the other functions of RTTI 25) Write the purpose of typeid operator. 26) Mention types of casting.(nov 16) 27) What is dynamic casting? 6 prepared by, M.Indumathy AP/IT

28) Define Downcasting 29) Define Upcasting 1) Discuss about polymorphism and its advantages. 2) Write a C++ program that will give the conditions of environment required, food habits and unique characteristics of pet animals fish and dog. Define a base called pet that describe any common household pet; two derived classes called fish and dog with items specific to that type of animals. Write pure virtual functions in the base class for operations that are common to both types of animals. Write a program to test the usage of classes. 3) Explain hybrid inheritance with suitable C++ coding 4) Define polymorphism. Explain the different types of polymorphism.(nov 14,Apr 16) 5) What are the different kinds of inheritance? Explain them with suitable examples(nov 16,Nov 14,Nov 15) 6) Define virtual base classes with example(nov 14) 7) Briefly explain RTTI(Nov 14) 8) Describe virtual function with suitable example(nov 16,Nov 15) 9) Explain pure virtual function.(nov 15) UNIT V 1) What are streams? 2) What are the stream classes for console operations? 3) Draw the console stream classes for hierarchy 4) List out some of the unformatted I/O operators.(apr 16) 5) List out some of the formatted I/O operations(apr 16) 6) List some of the ios functions 7) List some of the non-parameterized manipulators 8) What is custom/user-defined manipulators?(nov 15) 9) Write the syntax of creating a custom manipulator 10) List out some of the manipulators 7 prepared by, M.Indumathy AP/IT

11) What are the flags that do not have bit fields? 12) What are the two types of data communication? 13) Draw the stream classes for hierarchy 14) Write the use of following streams.cin,cout,cerr,clog.(nov 14) 15) What are the functions that the file stream class provides? 16) What is a file? 17) List some of the file modes(nov 15) 18) What is meant by namespace?(nov 16,Nov 14) 19) Write the syntax for defining a namespace 20) What is unnamed namespaces? 21) Mention the functions in string class.(nov 16) 22) What is Standard Template Library? 23) List the components of STL 24) What is container? 25) What is an algorithm? 26) What is an iterator? 27) What are the three types of containers? 28) What is meant by sequence containers? 29) What are the types of sequence containers? 30) What is meant by Associative Containers? 31) What are the types of Associative containers? 32) What is meant by Derived Containers? 33) What are the types of derived containers 34) What is meant by vector? 35) What is meant by lists? 36) What is meant by maps? 37) Write the member functions of the map class 1) Write a program to write and read data in a file using object I/O functions write ( ) and read ( ). Declare class with data members name [2] m int bill no, int _amount debited and int received _ amount and in balance. Add 10 records and display the list 8 prepared by, M.Indumathy AP/IT

of persons with balances. The user should have a facility to modify the existing records.(nov 15) 2) Elaborate about formatted and unformatted I/O.(Nov 14,Nov 15) 3) Comment on the following ios member functions.i)width(),fill(),unsetf(). 4) Write a C++ program to read from 2 files simultaneously.(nov 16) 5) What is file? Write the types of File access? Write an example program for sequential access.(nov 16) 6) Discuss in detail about the operation of string objects.(nov 14 ). 7) What is standard template library? Write the types of STL? Write an example program for each STL types.(nov 16) 9 prepared by, M.Indumathy AP/IT