Subject Name: Object Oriented Programming in C++ Subject Code:

Save this PDF as:
 WORD  PNG  TXT  JPG

Size: px
Start display at page:

Download "Subject Name: Object Oriented Programming in C++ Subject Code: 2140705"

Transcription

1 Faculties: L.J. Institute of Engineering & Technology Semester: IV (2016) Subject Name: Object Oriented Programming in C++ Subject Code: Sr No UNIT - 1 : CONCEPTS OF OOCP Topics -Introduction OOCP, Procedural & Object Oriented Programming, Principal, Benefits & Application of OOP 1 What is object oriented programming? (Dec, 2012) [LJIET] 1 2 What is object? 1 3 What is class? 1 4 What is data abstraction? 1 5 What is encapsulation? 1 6 What is inheritance? 1 7 What is Polymorphism? 1 8 What is Dynamic binding? 1 9 List the benefits of OOP 1 10 List applications of OOP 1 1 Explain dynamic binding with example (Jan, 2016) [LJIET] 03 2 Distinguish between Dynamic binding and message Passing. (June, 2015) [LJIET] 03 3 Explain any two characteristics of OOP(June 2015/Jan, 2016) [LJIET] 04 4 List benefits of OOP.(June, 2015) [LJIET] 03 5 Describe multi-level and multiple inheritances. (June, 2015) [LJIET] 04 6 Explain features of object oriented programming language.(dec, 2012) [LJIET] 06 7 Explain features of object oriented programming language or Explain basic concepts of Object- Oriented Programming. (May/June2012/Dec 2011/June2013/Dec2013/Jan 2015) [LJIET] 8 Explain benefits of Object oriented programming. (Jan, 2016) [LJIET] 9 Give difference between POP Language and OOP Language. (Dec 2010/June 2014)[LJIET] Sr No UNIT - 2 : C++ BASICS Topics - Overview & Program Structure, Namespace, Identifiers, Variables, Constants, Enum, Operators, Type Casting & Control Structure 1 Why main function is special in C++? 1 2 What is run-time error, logical error and syntax error? 1 3 What is the role of #include directive in C++? 1 4 What is compiler and linker? 1 OOCP (1405) 2016 Page 1

2 5 What is the difference between while and do-while loop? 1 6 In control structure switch-case what is the purpose of default in C++? 1 7 What is the effect of absence of break in switch case in C++? 1 8 What is type conversion in C++? 1 9 What is the difference between local variable and global variable? 1 10 How does a main () function in C++ differ from main () in C? 1 12 Find errors, if any in given C++ statement cout<< X= X; 1 13 Find errors, if any in given C++ statement cin>>x;>>y; 1 14 Find errors, if any in given C++ statement m=5;// n=10; // s= m+n ; 1 15 Why array called derived data type? 1 16 What are the applications of void data type in C++? 1 17 How does a const defined by const differ from the constant defined by the preprocessor 1 directive statement #define? 18 What is the application of scope resolution operator:: in C++? 1 19 What is the advantage of new operator as compared to the function malloc()? 1 1 Describe with examples the use of enumeration data types.(june 2015) [LJIET] 04 2 Explain new & delete operator. What are the advantages of new operator Over malloc? (June, )[LJIET] (Jan, 2016)[LJIET] 3 Explain scope resolution operator with example. (June, 2013)[LJIET] 03 4 What is a reference variable? What is its major use? Give Example. (June 2013)[LJIET] 04 5 Explain member dereferencing operator and memory management operator in 04 C++. (Jan, 2016)[LJIET] 6 Explain << and >> operators.(june, 2015) [LJIET] 04 7 Explain how to allocate and de-allocate memory dynamically(june, 2015) [LJIET] 03 8 Explain reference variables(june, 2015) [LJIET] 03 9 Explain reference variables and their usage by giving examples. (Jan 2016)[LJIET] 10 Describe various operators in C++.( Dec 2013, Jan 2015)[LJIET] 11 Write the basic structure of a C++ program with all necessary blocks. (June, 2014) [LJIET] UNIT - 3 : C++ Functions Topic 1: Simple Functions, Call By value & Call By Reference, 1 When do we need to use default arguments in a function? 1 2 What are different types of writing prototype? 1 3 Explain function prototyping with example 1 4 Difference between get() and getline(). 1 5 What is function prototype? 1 1 Write a C++ Program to generate a Fibonacci Series by Using Recursion(June,2015) [LJIET] OOCP (1405) 2016 Page 2 03

3 2 Write a program using a function with arguments to swap the values of a pair of integers using call by reference. (Dec 2012)[LJIET] 3 Write a program using function with arguments to swap the values of a pair of integersmay/june2012[ljiet] 4 Explain Call by reference and Return By Reference with suitable example. (Jan,2015)[LJIET] 5 What is call and return by reference? Explain with example.(june 2014)[LJIET] 6 What do you mean by call by value and call by reference? Justify your answer with suitable example. (Jan,2016)[LJIET] 7 Write a program using function with arguments to swap the values of a pair of integers. (Dec 2011)[LJIET] Topic 2: Inline Functions & Macro Vs. Inline Functions 1 When you will make function inline? Why? 1 2 When argument is passed by reference in function 1 3 Write some situations where inline expansion may not work 1 4 What does micro differs from inline function? 1 1 What is Inline Function? In which Situation Inline Function may not work? How does an inline function differ from a pre-processor macro? Write program using Inline Function to find largest of three numbers. (June 2013)[LJIET] 2 Explain the inline functions and default arguments giving examples. ( June 2011)[LJIET] 3 Describe inline function in C++ with example. ( May/June2012)[LJIET] 4 What is inline function? Where and How it is useful in C++? Give an example. (June 2014) [LJIET] 5 Explain the inline functions and default arguments giving examples. (June 2011) [LJIET] 6 Explain inline function and its use with suitable example. (Jan 2015) [LJIET] 7 Explain merits and demerits of inline function. (June 2015/Jan 2016) [LJIET] 04 Topic 3: Overloading of functions, Default Arguments 1 What is a default argument? 2 What is function overloading? 1 Define function overloading. Give proper example.(june 2013) [LJIET] 03 2 Explain function overloading with suitable example. (June 2015) [LJIET] 04 3 Explain default arguments by giving an example(s).(june 2015/ Jan 2016) [LJIET] 04 4 Declare a class called book having members like book_title, publisher and author_name. 04 Overload extractor and inserter operators ( >> and << ) for class book. (June 2015) [LJIET] 5 Explain function overloading with suitable example. (Jan 2015) [LJIET] OOCP (1405) 2016 Page 3

4 7 Describe following terms in C++ with suitable example. Function Overloading, Inline function, Default argument, Call by reference (Dec 2013) [LJIET] Topic 4: Friend Functions & Virtual Functions 1 What are Friend functions? Write the syntax 1 2 Write some properties of friend functions 1 1 Define friend function (June 2014) [LJIET] 02 2 Define & Discuss pure virtual function.(june 2013) [LJIET] 03 3 Can we overload an assignment operator using friend function? Justify your answer. 04 (June 2015) [LJIET] 4 Is assignment operator overloaded by default? Justify your answer. When do you overload it 04 mandatorily? 5 Explain friend function and its use? (Jan 2016) [LJIET] 04 6 Explain two usage of keyword virtual. (June, 2015) [LJIET] 03 7 What are the Virtual Functions? Where are they needed? Are virtual functions inherited? Justify your answer with the help of an example. (June 2015) [LJIET] 8 What is Friend function? Explain with example. (Dec 2010) [LJIET] 9 Explain friend function with suitable example. (Jan 2015) [LJIET]/ (June 2015) / Explain a friend function with example and List some of the special properties of the friend function. (Dec 2012)[LJIET] 11 What is friend function? Give an example. What is the advantage of Overloading binary operator as friend function?( June 2010) [LJIET] UNIT 4: Object & Classes Topic 1: Basics of Object & Class in C++ 1 How the class is specified? 1 2 How to create an object? 1 3 How to access a class member? 1 4 How the member functions are defined? 1 5 Define local classes 1 How does a main() function in C differ from C++? Give General format of Class. 1 (June 2013)[LJIET] 2 Create a class Account. It has three data member account id, name and balance. Define function to assign value and display value. Define function that search account number given by the user. If account number exists, print detail of that account. Write a program using array of object. 02 OOCP (1405) 2016 Page 4

5 Declare at least 5 account and print details. (June 2013) [LJIET] 3 Define Friend Function. Create two classes DM and DB which store the value of distances. DM stores distances in meters and centimeters and DB in feet and inches. Write a program that can read values for the class objects and add one object of DM with another object of DB. Use a friend function to carry out the addition operation. The object stores the results may a DM object or DB object, depending on the units in which the results are required. The display should be in the format of feet and inches or meters and centimeters depending on the object on display. 1 Feet = Meter 1Meter = 3.28 Feet 1 Inch = 2.54 Centimeter 1 Centimeter = Inch(June 2013) [LJIET] 4 Explain Friend function and its characteristics. Define a class matrix with an integer array of 3X3 as a data member. Define a friend function which adds two matrix objects and returns resultant matrix object. (Dec 2013) [LJIET] 5 Define a class to represent a string with operations string length, compare and reverse. Show its use by writing main().(june 2011) [LJIET] 6 Write a program in C++ to find the sum of two entered complex numbers from different classes and display the sum using a common friend function of both classes. (June 2015) [LJIET] 7 Explain the difference between structure and class in C++. (Jan 2015) [LJIET] 8 Write a program which includes class to represent a vector (a serious of float values). Include member functions to perform the following tasks: a> To create the vector b> To modify the value of given elements c> To Display the given vector in the form(10,20,30)(dec 2011)[LJIET] 9 Define a class complex, having data member as X and Y, Define a friend function sum () to add two complex numbers and display all numbers using show () friend function Program for Maximum number using Friend function for two classes. (Dec 2010)[LJIET] Topic 2: Private & Public Members, Static Data & Function Members 1 What is static data member? 1 2 What is static member function? 1 3 How the objects are used as function argument? 1 4 List access specifiers. 1 5 What is a private member of a class? 1 1 What is the purpose of Static? Write Characteristics of Static Data Member and Static Member Function. Write a program that demonstrates the Static Data Member And static member function. (June 2013) [LJIET] 2 Define a class Time with hours and minutes as two data members, add necessary member functions to initialize and display data of class. Do not use constructors in a class. Define a member function sum() which adds two Time objects. Invoke the statements like T3.sum(T1, T2) in main ().(Dec, 2013) [LJIET] OOCP (1405) 2016 Page 5

6 3 Discuss the use of static data members and static member functions with example (June, 2014) [LJIET] 4 Explain Static Data Member and Static Member Function with their special characteristics. Also write a suitable programming example. (Jan, 2015) [LJIET] 5 Write a C++ program to explain Objects as function arguments. Define a class name VALUE with two data member variable, two member functions for inputting data and displaying the result. Define third member function that takes two objects as arguments and adds the objects. (June, 2015) [LJIET 6 Write a single C++ program to explain static member and static member function. (June, 2015) [LJIET] 7 What is friend function? Write a program to find out sum of two private data members x and y of two classes A and B using a common friend function. Assume that the prototype for both the classes will be void sum (A, B); (Jan, 2016) [LJIET] 8 Write down the uses of static data member and static member function with suitable example. (Jan, 2016) [LJIET 9 Explain the constant argument, constant member function and constant object with suitable example. (June 2010)[LJIET] Topic 3: Constructors & Their Types, Destructors 1 Define constructor 1 2 Define default constructor 1 3 Define parameterized constructor 1 4 Define copy constructor 1 5 Define dynamic constructor 1 6 Define destructor 1 7 Define multiple constructors or constructor overloading 1 8 Write some special characteristics of constructor 1 1 Explain by example(s), copy constructor. (Jan, 2016) [LJIET] 04 2 Explain copy constructor and its usage by giving an example. (June, 2015) [LJIET] 04 3 Explain Constructor with default arguments.( Dec 2010) [LJIET] 03 4 Destructor function cannot be overloaded. True or false? Justify your answer. 04 (Jan, 2016) [LJIET] 5 What is Constructor? Write the characteristics of constructor function. Define Class named point which represents 2-D Point, i.e P(x, y). Define Default constructor to initialize both data member value 5, Parameterized constructor to initialize member according to value supplied by user and Copy Constructor. Define Necessary Function and Write a program to test class Point. (June 2013) [LJIET] 6 What is a constructor? Which are the special characteristics of constructor functions? What is the need of do-nothing implicit constructor? When the destructor function invoked? (Dec 2013) [LJIET] OOCP (1405) 2016 Page 6

7 7 What is a constructor? Explain types of constructors with examples. (June, 2014/ Jan 2015) [LJIET] 8 Explain the use of destructor in C++. Discuss its features. (June, 2014) [LJIET] 9 Write a single C++ program to explain the concept of both constructor and destructor. (June, 2015) [LJIET] 10 Define copy constructor. Explain its significance. Under which condition is it invoked? Describe your answer with program. (June, 2015) [LJIET] 11 What are the characteristics of constructor in C++? Write a program to illustrate the use of copy constructor. (Jan, 2016) [LJIET] 12 Explain following with respect to C++ with examples. New operator, destructor (June 2011)[LJIET] 13 Declare a class called book_details to represent details for a book, having data members like title, author, edition, price and no_of_copies_available. Define following functions: - constructor(s) - display to display all data members - find_books to find and display details of all books having price less than Rs main to create an array of book_details and to show usage of above functions (June 2015)[LJIET] 14 Write a class called arithmetic having two integer and one character data members. It performs the operation on its integer members indicated by character member (+, -, *, /). For example * indicates multiplication on data members as d1 * d2. Write a class with all necessary constructors and methods to perform the operation and print the operation performed in format Ans = d1 op d2. Test your class using main(). (June 2011)[LJIET] Topic 4: Operator Overloading & Type Conversion 1 What is operator overloading? 1 2 List out the operators that cannot be overloaded. 1 3 What is the purpose of using operator function? 1 4 List out the operators that cannot be overloaded using Friend function. 1 5 What is type conversion? 1 What is Type conversion? Explain Basic to class type conversion with example. 1 (June 2013)/(June 2015) [LJIET] 2 Define Operator overloading. Create class Time that has three data members hour, minute and second and two constructor, default constructor and parameterized constructor to initialize data member. Write a program to add two times by overloading operator +.(June 2013) [LJIET] 3 What is type conversion? Explain the type conversion from basic type to class type and from class type to basic type with proper example.( Dec 2012/June 2013/Dec 2013) [LJIET] 4 Define a class complex with real and imaginary as two data member, add necessary constructors and member function to initialize and display data of class. Class should overload the + operator to add two complex objects and return the results. Invoke the statements like C3=C1+C2 in main (). (Dec 2013) [LJIET] 04 OOCP (1405) 2016 Page 7

8 5 Write a C++ program that overloads + operator to add two complex numbers. (June 2014) [LJIET] 6 Define a class complex with real and imaginary as two data member with default & parameterized constructors, function to initialize and display data of class. It should overload the + operator to add two complex objects. Write a complete C++ program to demonstrate use of complex class. (Jan 2015) [LJIET] 7 Write a C++ program to overload the + operator to concatenate two strings. (June 2015)[LJIET] 8 The effect of a default argument can be alternatively achieved by overloading. Discuss with an example. (June 2015)[LJIET] 9 What is an operator function? Write a program to overload binary + operator as a member function. (Jan 2016)[LJIET] 10 Explain type conversion from class type to basic type and one class type to another class type with suitable example. (Dec 2013 / Jan 2016)[LJIET] 11 Define a circle class with radius as data member, necessary constructors and member function to compute area of circle. Class should overload the = = operator to compare two circle objects whether they are equal in radius. Demonstrate its use in main(). (June 2010/June 2011) [LJIET] 12 Define operator overloading. Explain how to overload unary operator and binary operator (Dec 2012) [LJIET] 13 Declare a class called bird having two private data members called name and weight. Define following functions : - default constructor for reading data members from key board - overloaded constructor with two arguments to be used for initialization of data members. - display function to display data members. - overloaded member operator >= to compare weight of two bird objects, returning false if weight of first bird object is less than that of second & true otherwise. Define function main to illustrate use of above functions. (June 2015/ Jan 2016) [LJIET] 14 Declare a class called book having members like book_title, publisher and author_name. Overload operators << and >> for class book. Define function main. (Jan 2016) [LJIET] Sr UNIT - 5 :Inheritance No Topic 1: Concept Of Inheritance,Types of Inheritance: Single, Multiple, Multi-Level, Hybrid, Hierarchical, Protected Members, Overriding, Virtual Base Class 1 1 What is meant by inheritance? 1 2 List the class member s visibility 1 3 Explain the public visibility 1 4 Explain the private visibility 1 5 Explain the protected visibility 1 6 What is meant by Abstract base class? 1 7 Protected data members. (June, 2014)[LJIET] 2 OOCP (1405) 2016 Page 8

9 1 Explain Visibility mode. (Jan 2016)[LJIET] 03 2 What does Inheritance mean in C++? Explain different forms of Inheritance. 04 (Dec 2010)[LJIET] 3 Explain virtual and pure virtual functions. (Jan 2016)[LJIET] 04 4 Explain in brief different types of inheritance. (Jan 2016)[LJIET] 04 5 Explain keywords public and protected. (June, 2015) [LJIET] 04 6 What does inheritance mean in c++? What are different forms of inheritance? Give an example for each. (Dec 2012/ Dec 2011) [LJIET] 7 Write down different form of inheritance and describe them in detail. Or Explain various forms of inheritance with suitable diagrammatic illustrations. (May/June 2012/Dec 2013)[LJIET] 8 Define Inheritance. Write the types of Inheritance. Explain Inheritance with example. Consider Example with respect to print result of Student and Student Details. (June, 2013) [LJIET] 9 Consider a class network as shown in figure given below. The class Employee derives information from both Account and Admin classes which in turn derive information from the class Person. Define all the four classes and write a program to create, update and display the information contained in Employee objects. (Dec 2013) [LJIET] 10 Explain various forms of inheritance with suitable diagram.(jan 2015) [LJIET] 11 Explain the importance of Inheritance. List its types and explain any one with example. (June 2014) [LJIET] 12 What is Inheritance? What are the different visibility modes observed while deriving a class from a base class. Explain with C++ Program. (June 2015) [LJIET] 13 What is inheritance? Why do we use of protected specifier for base class data members in inheritance? Explain hybrid inheritance with example. (Jan 2016) [LJIET] 14 Explain access specifier and its effects with different modes of inheritance (Jan 2016) [LJIET] 15 Consider the following class structure as shown in the figure. The class Result derives information from the classes Internal, University and External respectively. The Internal and External classes access information from the Student class. Define all five classes and write a suitable program to create and display the information contained in Result object. (Jan 2016) [LJIET] OOCP (1405) 2016 Page 9

10 16 What is inheritance? Give the different types of inheritance and explain how it encourages reusability and sharing. (June 2011)[LJIET] 17 Explain following: a).constructor with default arguments. b).call by reference. c).private, Public and Protected access specifier[ljiet] Dec Declare a class called item having data members item_code, item_name, cost and discount. Derive two classes from class item, namely employee and customer. The class employee has data members like employee_id and amount. The class customer has data members like customer_name and amount. Define following functions - to initialize data members. - to display the values of members. - to compute amount to be paid for purchased item. - main to create objects of both derived classes and to show usage of above functions. (June 2015/ Jan 2016)[LJIET] 19 Assume that Circle is defined using radius and Cylinder is defined using radius and height. Write a Circle class as base class and inherit the Cylinder class from it. Develop classes such that user can compute the area of Circle objects and volume of Cylinder objects. Area of Circle is pie *radius*radius, while volume of Cylinder is pie*(radius * radius)*height. (Dec 2013)[LJIET] 20 Assume that vehicle class is defined as base class with price and year of manufacturing. Derive two classes namely bus and truck from base class with bus with seating capacity and truck with loading capacity. Develop classes with necessary member functions to get and put data. Demonstrate its use in main ().June 2010[LJIET] 21 Create a class student that stores roll_no, name. Create a class test that stores marks obtained in five subjects. Class result derived from student and test contains the total marks and percentage obtained in test. Input and display information of a student. (Jan 2015) [LJIET] OOCP (1405) 2016 Page 10

11 Sr No L.J. Institute of Engineering & Technology Semester: IV (2016) UNIT - 6 :Polymorphism Topic 1: Pointers in C++, Pointers & Objects, This Pointer, Virtual & Pure Virtual Functions, Implementing, Polymorphism 1 Explain generic pointer What is polymorphism? 1 3 What are the types of polymorphism? 1 4 What the types in compile time polymorphism? 1 5 What is pointer to objects? 1 6 What is this pointer? 1 7 What are pure virtual functions? Write the syntax 1 8 What are virtual functions? 1 1 Define and Discuss Pure Virtual Function. (June 2013)[LJIET] 02 2 Explain this pointer.(june 2013)[LJIET] 03 3 Explain this pointer with example. (June 2015)[LJIET] 04 4 Explain need and usage of this pointer How they differ? 02 Char const *ptr Char *const ptr(june 2013)[LJIET] 6 How is polymorphism achieved at compile time & run time. ( June 2013)[LJIET] 03 7 Differentiate Compile time polymorphism and Runtime polymorphism.(june )[LJIET] 8 Explain this pointer. Discuss effect of C++ statement delete this in the program(jan )[LJIET] 9 Write a C++ program that creates inventory of items by storing item_code, item name and qty. Access the data using pointers. (June 2014)[LJIET] 10 Create a class ITEM with item_code, item_rate and quantity as data members. Create an array of pointers to objects of class ITEM. Write a member function which will calculate the amount of item. Print item_code and amount of item. (Jan 2015)[LJIET] 11 Explain pointer to objects. What is this pointer? Write a complete program to illustrate the use of this pointer.(dec 2013/Jan 2015)[LJIET] 12 Explain Runtime polymorphism. Explain and demonstrate, how virtual function to achieve runtime polymorphism? (Dec 2013)[LJIET] 13 What is a virtual function? Write rules for virtual function. Explain with example. (Dec 2012)[LJIET] 14 Describe the following terms in C++ with example. (Jan 2016)[LJIET] i) Default Argument (Jan2016)[LJIET]ii) Function Overloading iii) Destructor iv) this pointer 15 What is polymorphism? How can we implement it in C++? (June 2014)[LJIET] 16 What is polymorphism? How is it achieved in C++? Explain with suitable example. OOCP (1405) 2016 Page 11

12 (Jan 2016)[LJIET] 17 Declare a class called logic_gate to represent logic gates. The class has two data members - input1 and input2 to represent two inputs of the gate and a virtual function member called get_gate_output. Derive two classes from the base class logic_gate, namely and_gate and or_gate to represent logical and gate and logical or gate respectively. Define function get_gate_output in both of these classes to get the output of the gate. Show use of above classes and functions to have dynamic polymorphism in function main. (June 2015/ Jan 2016)[LJIET] 18 Declare a class called my_string having char * str_ptr as a member, used to point to a string. Define a constructor for initializing member. Define an overloaded operator + to be applied on two operands of type class my_string for concatenating strings pointed by str_ptr of operands. The resultant string is placed in a new object of type class my_string which is returned. Define main to show the usage of these functions (Jan 2016) [LJIET] 19 Write a C++ program demonstrating use of the pure virtual function with the use of base and derived classes (June 2011)[LJIET] Sr UNIT - 7 : I/O and File Management No Topic 1: Concepts of Streams, cin and cout objects, C++ Stream classes 1 What are streams? 1 2 What are the stream classes for console operations? 1 3 Draw the console stream classes for hierarchy 1 1 Explain Function : seekp(), tellg()(june 2015/ Jan 2016)[LJIET] 03 2 Explain seekg(), tellg() (Jan 2016)[LJIET] 04 3 Define following with examples (1) Object (2) Macro (3) Binary File (4) Portability(June 2014)[LJIET] 4 What is a stream? Describe various stream classes for console I/O operations. (Dec 2013)/(Jan 2015)/(Jan 2016)[LJIET] 5 Explain the class istream and class ostream with hierarchy along with their member. (June 2015)[LJIET] Topic 2: Unformatted & Formatted I/O, manipulators, File Stream 1 List out some of the unformatted I/O operators. 1 2 List out some of the formatted I/O operation 1 3 List some of the ios functions 1 4 List out some of the manipulators 1 OOCP (1405) 2016 Page 12

13 1 (i) Write output for the following (Assume all libraries has been included): 04 (June 2013)[LJIET] 1. int main() { float f = ; cout.fill ( * ); cout.precision(3); cout.setf(ios::internal, ios::adjustfield); cout.setf(ios::scientific, ios:floatfield); cout.width(15); cout << f << \n ; } 2. int main() { float f = 123.4; cout.setf(ios::showpoint); cout.setf(ios::showpos); cout.precision(3); cout.setf(ios::fixed, ios::floatfield); cout.setf(ios::internal, ios:adjustfield); cout.width(10); cout << f << \n ; } 2 Explain ios::ate and ios::binary (June 2015/ Jan 2016)[LJIET] 03 3 Explain manipulators by giving example. (June 2015/ Jan 2016)[LJIET] 03/3.5 4 List functions with equivalent manipulators in C++. Explain any one manipulator with example. (Dec 2013)[LJIET] Topic 3: File Stream Classes, File management functions, File modes, Binary & Random Files 1 What is a file? 1 2 List some of the file modes 1 3 What are the functions that the file stream class provides? 1 4 What are steps involved in using a file in a C++ program. 1 5 What does the current position mean when applied to files? 1 6 What is the advantage of saving data in binary form? 1 1 List the file mode parameters. (June 2014)[LJIET] 04 2 List error handling file functions in C++ (June 2014)[LJIET] 02 3 Explain characteristics of binary and random files (Jan 2016)[LJIET] 03 4 Explain different constructors of ifstream (Jan 2016)[LJIET] 03 5 Explain various constructors of ofstream. (June 2015)[LJIET] 03 6 Write a program that reads a text file and creates another file that is identical OOCP (1405) 2016 Page 13

14 except that every character is in upper case.(june, 2013)[LJIET] 7 Explain File Pointers and functions for their manipulation.(dec, 2013)[LJIET] 8 Write a program that reads a text file and creates another text file that is identical except that every letter must be converted to lower case irrespective of its original case (e.g a or A will become a ). (Jan, 2015)[LJIET] 9 Explain various file mode parameters in C++. Write a program to copy the contents of a source file student1.txt to a destination file student2.txt character by character. (Jan, 2016)[LJIET] 10 Write a program that opens two text files for reading data. It creates a third file that contains the text of first file and then that of second file (text of second file to be appended after text of the first file, to produce the third file). (June 2015)[LJIET] UNIT - 8 : Templates, Exceptions & STL Topic 1: What is template? Function template & Class template 1 List the components of STL 1 2 What is container? 1 3 What is an algorithm? 1 4 What is template? 1 5 What are types of template? 1 1 Explain Structure of Template class. (June, 2014)[LJIET] 02 2 What is STL? Describe the use of STL. (June, 2015)[LJIET] 03 3 What is Generic Programming? How it is implemented in C++.Write General format of class templates and function Template. Write program to swap Number using Function Template. Function prototype is given below: void swap(int, int, float, float ) Swap two integer number and swap two float number.(june, 2013)[LJIET] 4 Explain with the help of an example why templates are used in programming? (Dec, 2013)[LJIET] 5 What is template? Explain function templates and class templates with example. (June, 2015)[LJIET] 6 What is the purpose of using template in C++? Explain template function and template class,04 with example. (Jan, 2016)[LJIET](Jan, 2016)[LJIET] 7 Explain STL with its core components. (Jan, 2015)[LJIET] 8 It is required to find roots of quadratic equation ax2 + bx + c = 0. Write a program that reads values of a, b & c and finds roots if roots are real; otherwise raises and handles exception (if roots are complex). (Jan, 2016)[LJIET] 9 Create a generic class (using template), called my_class having following data members : - an array to store numbers - an array of flags to indicate whether the location is occupied or free Define following member functions: - to insert a number at specified location - to remove a number from specified location, if the specified location is occupied - to search a number in the array. OOCP (1405) 2016 Page 14

15 Define function main to crate two objects of type class my_class to store int & float numbers respectively. Also show usage of member functions in the main. (Jan, 2016)[LJIET] 10 Declare a template class called exam having an array of generic type as a data member, named elements[10]. Define following generic (template) member functions: - sort to arrange elements in ascending order - find_max to find and return maximum from the array Define main to illustrate usage of these functions to process two different types of data. (June, 2015)[LJIET] Topic 2: Introduction to exception, try-catch, multi catch, catch all 1 What are Exceptions? 1 2 What are the blocks used in the Exception Handling? 1 3 Write the syntax of catch construct 1 4 Write the syntax of throw construct 1 5 List out the tasks to be performed for error handling code 1 1 Explain try.catch.throw (June 2014)[LJIET] 04 2 Explain generic exception handler (Jan 2016)[LJIET] 03 3 Components of STL. (June 2014)[LJIET] 04 4 What is Exception? Explain Exception Handling Mechanism. Write a program that demonstrates use of multiple catch. Add at least three catch block in your Program (June, 2013)[LJIET] 5 What is an exception? What are the advantages of using exception handling in a program? Illustrate C++ exception handling mechanism.(dec, 2013)[LJIET] 6 What is Exception? Explain Exception Handling Mechanism. Give example with multiple catch blocks. (Jan, 2015)[LJIET] 7 What is Exception Handling and how is it implemented in C++? Write a C++ program that throws an arithmetic exception whenever the result of arithmetic computation becomes odd. (June, 2015)[LJIET] 8 Explain the mechanism of keywords try, throw and catch to handle Exceptions in C++. Explain with an example like division by zero situation. (Jan, 2016)[LJIET] 9 Explain catch all exception and multiple catch exception with example.(jan, 2016)[LJIET] 10 By giving an example, illustrate use and working of nested try blocks and re -throwing of an exception. (June, 2015)[LJIET] OOCP (1405) 2016 Page 15

PART-A Questions. 2. How does an enumerated statement differ from a typedef statement?

PART-A Questions. 2. How does an enumerated statement differ from a typedef statement? 1. Distinguish & and && operators. PART-A Questions 2. How does an enumerated statement differ from a typedef statement? 3. What are the various members of a class? 4. Who can access the protected members

More information

Marathwada Institute of Technology

Marathwada Institute of Technology Marathwada Institute of Technology Master of Computer Application Title of the subject: Object Oriented Programming using C++ Course Code: MCA 101 Faculty: Shubhashree Savant Class: FY MCA Part - I (Question

More information

BHARATHIAR UNIVERSITY: COIMBATORE CENTRE FOR COLLABORATION OF INDUSTRY AND INSTITUTIONS(CCII) CERTIFICATE IN ADVANCED PROGRAMMING C++ LANGUAGE

BHARATHIAR UNIVERSITY: COIMBATORE CENTRE FOR COLLABORATION OF INDUSTRY AND INSTITUTIONS(CCII) CERTIFICATE IN ADVANCED PROGRAMMING C++ LANGUAGE Certificate in Advanced Programming - C++ Language Page 1 of 7 BHARATHIAR UNIVERSITY: COIMBATORE 641046 CENTRE FOR COLLABORATION OF INDUSTRY AND INSTITUTIONS(CCII) CERTIFICATE IN ADVANCED PROGRAMMING C++

More information

Multichoice Quetions 1. Atributes a. are listed in the second part of the class box b. its time is preceded by a colon. c. its default value is

Multichoice Quetions 1. Atributes a. are listed in the second part of the class box b. its time is preceded by a colon. c. its default value is Multichoice Quetions 1. Atributes a. are listed in the second part of the class box b. its time is preceded by a colon. c. its default value is preceded by an equal sign d. its name has undereline 2. Associations

More information

Summary. Pre requisition. Content Details: 1. Basics in C++

Summary. Pre requisition. Content Details: 1. Basics in C++ Summary C++ Language is one of the approaches to provide object-oriented functionality with C like syntax. C++ adds greater typing strength, scoping and other tools useful in object-oriented programming

More information

KITES TECHNOLOGY COURSE MODULE (C, C++, DS)

KITES TECHNOLOGY COURSE MODULE (C, C++, DS) KITES TECHNOLOGY 360 Degree Solution www.kitestechnology.com/academy.php info@kitestechnology.com technologykites@gmail.com Contact: - 8961334776 9433759247 9830639522.NET JAVA WEB DESIGN PHP SQL, PL/SQL

More information

C++ INTERVIEW QUESTIONS

C++ INTERVIEW QUESTIONS C++ INTERVIEW QUESTIONS http://www.tutorialspoint.com/cplusplus/cpp_interview_questions.htm Copyright tutorialspoint.com Dear readers, these C++ Interview Questions have been designed specially to get

More information

Object Oriented Programming With C++(10CS36) Question Bank. UNIT 1: Introduction to C++

Object Oriented Programming With C++(10CS36) Question Bank. UNIT 1: Introduction to 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 3. Explain the console I/O functions supported

More information

Theory Assignments-3. Theory Assignments-4

Theory Assignments-3. Theory Assignments-4 Prof. Ramkrishna More Arts, Commerce & Science College S.Y.B.Sc.(Computer Science) Subject Object oriented concepts & programming in C++. Theory Assignments-1 Q.1) Answer the following.(1m) 1. List any

More information

AFF 826. Sub. Code 4BSO1C1. Sp2. B.Sc. DEGREE EXAMINATION, NOVEMBER First Semester. Software FUNDAMENTALS OF COMPUTERS AND C PROGRAMMING

AFF 826. Sub. Code 4BSO1C1. Sp2. B.Sc. DEGREE EXAMINATION, NOVEMBER First Semester. Software FUNDAMENTALS OF COMPUTERS AND C PROGRAMMING Sp2 AFF 826 Sub. Code 4BSO1C1 B.Sc. DEGREE EXAMINATION, NOVEMBER 2015 First Semester Software FUNDAMENTALS OF COMPUTERS AND C PROGRAMMING (CBCS 2014 onwards) Time : 3 Hours Maximum : 75 Marks Part A (10

More information

C++ for Game Programmers

C++ for Game Programmers C++ for Game Programmers Course Description C++ has become one of the favourite programming language for game programmers. Reasons for wide spread acceptability of C++ are plenty, but primary reasons are,

More information

Bhakta Kavi Narsinh Mehta University, Junagadh

Bhakta Kavi Narsinh Mehta University, Junagadh Bhakta Kavi Narsinh Mehta University, Junagadh Draft Syllabus for B.Sc. (Computer Science) Bachelor of Science (Computer Science) (Semester - 1) Effective From June - 2016 B.Sc. (C.S.) (Semester - 1) CS-101:

More information

The C Programming Language course syllabus associate level

The C Programming Language course syllabus associate level TECHNOLOGIES The C Programming Language course syllabus associate level Course description The course fully covers the basics of programming in the C programming language and demonstrates fundamental programming

More information

Course Name: ADVANCE COURSE IN SOFTWARE DEVELOPMENT (Specialization:.Net Technologies)

Course Name: ADVANCE COURSE IN SOFTWARE DEVELOPMENT (Specialization:.Net Technologies) Course Name: ADVANCE COURSE IN SOFTWARE DEVELOPMENT (Specialization:.Net Technologies) Duration of Course: 6 Months Fees: Rs. 25,000/- (including Service Tax) Eligibility: B.E./B.Tech., M.Sc.(IT/ computer

More information

OBJECT ORIENTED PROGRAMMING IN C++

OBJECT ORIENTED PROGRAMMING IN C++ OBJECT ORIENTED PROGRAMMING IN C++ For Off Campus BSc Computer Science Programme UNIT 1 1. The goal of programmers is to develop software that are. A. Correct B. Reliable and maintainable C. Satisfy all

More information

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANKULATHUR 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK IN REVISED BLOOM S TAXONOMY

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANKULATHUR 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK IN REVISED BLOOM S TAXONOMY ACADEMIC YEAR: 0 7 VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANKULATHUR 0 0 SEMESTER: ODD BRANCH: MCA YEAR: I SEMESTER: I SUBJECT CODE AND NAME: MC70 Problem Solving and Programming NAME OF THE FACULTY

More information

El Dorado Union High School District Educational Services

El Dorado Union High School District Educational Services El Dorado Union High School District Course of Study Information Page Course Title: ACE Computer Programming II (#495) Rationale: A continuum of courses, including advanced classes in technology is needed.

More information

NIIT. Table of Contents. Introduction. Lesson 1 Introduction to Object-Oriented Approach. Lesson 2 Creating Objects

NIIT. Table of Contents. Introduction. Lesson 1 Introduction to Object-Oriented Approach. Lesson 2 Creating Objects Introduction Table of Contents About This Course...i Who Should Attend this Course...i How to Use this Book... ii Conventions Used in this Book... ii Lesson 1 Introduction to Object-Oriented Approach Object-Oriented

More information

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ODD/EVEN ACADEMICSEMESTER (2014-15) ASSIGNMENT / QUESTION BANK (2110003) [F.Y.B.E.

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ODD/EVEN ACADEMICSEMESTER (2014-15) ASSIGNMENT / QUESTION BANK (2110003) [F.Y.B.E. SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ODD/EVEN ACADEMICSEMESTER (2014-15) ASSIGNMENT / QUESTION BANK Subject: Computer Programming and Utilization (2110003) [F.Y.B.E.: ALL BRANCHES] Unit 1

More information

What is C++? C++ also allows us to create hierarchy related objects. All C programs are also C++ programs with few differences.

What is C++? C++ also allows us to create hierarchy related objects. All C programs are also C++ programs with few differences. What is C++? 1 Object oriented programming languages. Initially named as C with classes. C++ was developed at AT & T Bell Labs. C++ is superset of C. Three important facilities are added onto C. Classes

More information

PROBLEM SOLVING SEVENTH EDITION WALTER SAVITCH UNIVERSITY OF CALIFORNIA, SAN DIEGO CONTRIBUTOR KENRICK MOCK UNIVERSITY OF ALASKA, ANCHORAGE PEARSON

PROBLEM SOLVING SEVENTH EDITION WALTER SAVITCH UNIVERSITY OF CALIFORNIA, SAN DIEGO CONTRIBUTOR KENRICK MOCK UNIVERSITY OF ALASKA, ANCHORAGE PEARSON PROBLEM SOLVING WITH SEVENTH EDITION WALTER SAVITCH UNIVERSITY OF CALIFORNIA, SAN DIEGO CONTRIBUTOR KENRICK MOCK UNIVERSITY OF ALASKA, ANCHORAGE PEARSON Addison Wesley Boston San Francisco New York London

More information

Laboratory Assignments of OBJECT ORIENTED METHODOLOGY & PROGRAMMING (USING C++) [IT 553]

Laboratory Assignments of OBJECT ORIENTED METHODOLOGY & PROGRAMMING (USING C++) [IT 553] Laboratory Assignments of OBJECT ORIENTED METHODOLOGY & PROGRAMMING (USING C++) [IT 553] Books: Text Book: 1. Bjarne Stroustrup, The C++ Programming Language, Addison Wesley 2. Robert Lafore, Object-Oriented

More information

C++ Programming Language

C++ Programming Language C++ Programming Language Lecturer: Yuri Nefedov 7th and 8th semesters Lectures: 34 hours (7th semester); 32 hours (8th semester). Seminars: 34 hours (7th semester); 32 hours (8th semester). Course abstract

More information

BCS2B02: OOP Concepts and Data Structures Using C++

BCS2B02: OOP Concepts and Data Structures Using C++ SECOND SEMESTER BCS2B02: OOP Concepts and Data Structures Using C++ Course Number: 10 Contact Hours per Week: 4 (2T + 2P) Number of Credits: 2 Number of Contact Hours: 30 Hrs. Course Evaluation: Internal

More information

Advanced C++ Programming

Advanced C++ Programming Advanced C++ Programming Course ID CPP110 Course Description The comprehensive, five-day course consists of three modules. A preliminary module reviews topics, including inheritance, the ANSI C++ Standard

More information

13 Classes & Objects with Constructors/Destructors

13 Classes & Objects with Constructors/Destructors 13 Classes & Objects with Constructors/Destructors 13.1 Introduction In object oriented programming, the emphasis is on data rather than function. Class is a way that binds the data & function together.

More information

WORKSPACE WEB DEVELOPMENT & OUTSOURCING TRAINING CENTER

WORKSPACE WEB DEVELOPMENT & OUTSOURCING TRAINING CENTER WORKSPACE WEB DEVELOPMENT & OUTSOURCING TRAINING CENTER Course Outline (2015) Basic Programming With Procedural & Object Oriented Concepts (C, C++) Training Office# Road: 11, House: 1 A, Nikunja 2, Khilkhet,

More information

ALLIED PAPER : DISCRETE MATHEMATICS (for B.Sc. Computer Technology & B.Sc. Multimedia and Web Technology)

ALLIED PAPER : DISCRETE MATHEMATICS (for B.Sc. Computer Technology & B.Sc. Multimedia and Web Technology) ALLIED PAPER : DISCRETE MATHEMATICS (for B.Sc. Computer Technology & B.Sc. Multimedia and Web Technology) Subject Description: This subject deals with discrete structures like set theory, mathematical

More information

10266A: Programming in C# with Microsoft Visual Studio 2010

10266A: Programming in C# with Microsoft Visual Studio 2010 10266A: Programming in C# with Microsoft Visual Studio 2010 Course Overview The course focuses on the C# program structure, language syntax, and implementation details with.net Framework 4.0. This course

More information

Visual C++ Object-Oriented Programming

Visual C++ Object-Oriented Programming Visual C++ Object-Oriented Programming A Mark Andrews SAMS PUBLISHING A Division of Prentice Hall Computer Publishing 201 West 103rd Street, Indianapolis, Indiana, 46290 USA Contents Introduction xxvii

More information

Object Oriented Software Design II

Object Oriented Software Design II Object Oriented Software Design II Introduction to C++ Giuseppe Lipari http://retis.sssup.it/~lipari Scuola Superiore Sant Anna Pisa February 20, 2012 G. Lipari (Scuola Superiore Sant Anna) C++ Intro February

More information

Glossary of Object Oriented Terms

Glossary of Object Oriented Terms Appendix E Glossary of Object Oriented Terms abstract class: A class primarily intended to define an instance, but can not be instantiated without additional methods. abstract data type: An abstraction

More information

C++ Programming: From Problem Analysis to Program Design, Fifth Edition. Chapter 2: Basic Elements of C++

C++ Programming: From Problem Analysis to Program Design, Fifth Edition. Chapter 2: Basic Elements of C++ C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 2: Basic Elements of C++ Objectives In this chapter, you will: Become familiar with the basic components of a C++ program,

More information

I PUC - Computer Science. Practical s Syllabus. Contents

I PUC - Computer Science. Practical s Syllabus. Contents I PUC - Computer Science Practical s Syllabus Contents Topics 1 Overview Of a Computer 1.1 Introduction 1.2 Functional Components of a computer (Working of each unit) 1.3 Evolution Of Computers 1.4 Generations

More information

Storage Classes CS 110B - Rule Storage Classes Page 18-1 \handouts\storclas

Storage Classes CS 110B - Rule Storage Classes Page 18-1 \handouts\storclas CS 110B - Rule Storage Classes Page 18-1 Attributes are distinctive features of a variable. Data type, int or double for example, is an attribute. Storage class is another attribute. There are four storage

More information

UNIT-1 PART-A UNIT-2 PART-A

UNIT-1 PART-A UNIT-2 PART-A UNIT-1 1. Define computer? 2. Discuss briefly about input and output devices? 3. What is a RAM? 4. What is arom? 5. What is a compiler? 6. Write about a linker? 7. List any 5 key wordsof c? 8. Illustrate

More information

Operator Overloading. Lecture 8. Operator Overloading. Running Example: Complex Numbers. Syntax. What can be overloaded. Syntax -- First Example

Operator Overloading. Lecture 8. Operator Overloading. Running Example: Complex Numbers. Syntax. What can be overloaded. Syntax -- First Example Operator Overloading Lecture 8 Operator Overloading C++ feature that allows implementer-defined classes to specify class-specific function for operators Benefits allows classes to provide natural semantics

More information

Introduction to C++ Data Abstraction w/ Classes Topic #2

Introduction to C++ Data Abstraction w/ Classes Topic #2 Introduction to C++ Data Abstraction w/ Classes Topic #2 CS202 2-1 Lecture #1 plus Review Abstract Data Types Introduction to...object Models Introduction to...data Abstraction Using Data Abstraction in

More information

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT COURSE CURRICULUM COURSE TITLE: JAVA PROGRAMMING (COURSE CODE: )

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT COURSE CURRICULUM COURSE TITLE: JAVA PROGRAMMING (COURSE CODE: ) GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT COURSE CURRICULUM COURSE TITLE: JAVA PROGRAMMING (COURSE CODE: 3350703) Diploma Programme in which this course is offered Computer Engineering/ Information

More information

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE NOTE: IMPORTANT INSTRUCTIONS: 1. Question Paper in English and Hindi and Candidate can choose any one language. 2. In case of discrepancies in

More information

10CS35: Data Structures Using C

10CS35: Data Structures Using C CS35: Data Structures Using C QUESTION BANK REVIEW OF STRUCTURES AND POINTERS, INTRODUCTION TO SPECIAL FEATURES OF C OBJECTIVE: Learn : Usage of structures, unions - a conventional tool for handling a

More information

C++FA 5.1 PRACTICE MID-TERM EXAM

C++FA 5.1 PRACTICE MID-TERM EXAM C++FA 5.1 PRACTICE MID-TERM EXAM This practicemid-term exam covers sections C++FA 1.1 through C++FA 1.4 of C++ with Financial Applications by Ben Van Vliet, available at www.benvanvliet.net. 1.) A pointer

More information

Curriculum Map. Discipline: Computer Science Course: C++

Curriculum Map. Discipline: Computer Science Course: C++ Curriculum Map Discipline: Computer Science Course: C++ August/September: How can computer programs make problem solving easier and more efficient? In what order does a computer execute the lines of code

More information

GETTING STARTED WITH C++ C++ BASICS - 1 -

GETTING STARTED WITH C++ C++ BASICS - 1 - - 1 - GETTING STARTED WITH C++ Programming is a core activity in the process of performing tasks or solving problems with the aid of a computer. An idealised picture is: PROBLEM COMPUTER SOLUTION Unfortunately

More information

SYSTEMS PROGRAMMING C++ INTRODUCTION

SYSTEMS PROGRAMMING C++ INTRODUCTION Faculty of Computer Science / Institute of Systems Architecture / Operating Systems SYSTEMS PROGRAMMING C++ INTRODUCTION Alexander Warg WHY C++? C++ is the language that allows to express ideas from the

More information

Advanced C++ Exception Handling Topic #5

Advanced C++ Exception Handling Topic #5 Advanced C++ Exception Handling Topic #5 CS202 5-1 CS202 5-2 Exception Handling Throwing an Exception Detecting an Exception Catching an Exception Examine an Example using Classes and Operator Overloading

More information

C++ How to Program, 8/e by Pearson Education, Inc. All Rights Reserved.

C++ How to Program, 8/e by Pearson Education, Inc. All Rights Reserved. C++ How to Program, 8/e 1992-2012 by Pearson Education, Inc. 1992-2012 by Pearson Education, Inc. 1992-2012 by Pearson Education, Inc. We ve studied fixed-size data structures such as one-dimensional arrays

More information

GTU Questions. Computer Programming & Utilization. Chief Course Coordinator Prof. Mitul K.Patel. (Head of Department & Assistant Professor)

GTU Questions. Computer Programming & Utilization. Chief Course Coordinator Prof. Mitul K.Patel. (Head of Department & Assistant Professor) GTU Questions Computer Programming & Utilization Chief Course Coordinator Prof. Mitul K.Patel (Head of Department & Assistant Professor) Course Coordinator Prof. Vrutti D. Shah (Assistant Professor) Lab

More information

Polymorphism. Problems with switch statement. Solution - use virtual functions (polymorphism) Polymorphism

Polymorphism. Problems with switch statement. Solution - use virtual functions (polymorphism) Polymorphism Polymorphism Problems with switch statement Programmer may forget to test all possible cases in a switch. Tracking this down can be time consuming and error prone Solution - use virtual functions (polymorphism)

More information

Object Oriented Programming (Interview Questions & Answers)

Object Oriented Programming (Interview Questions & Answers) Object Oriented Programming (Interview Questions & Answers) Collected from different websites. Use for non-commercial purpose. Sohail Basheer Lecturer- Computer Science (visiting) Department of Computer

More information

CSE 303 Concepts and Tools for Software Development. Magdalena Balazinska Winter 2010 Lecture 19 Inheritance (virtual functions and abstract classes)

CSE 303 Concepts and Tools for Software Development. Magdalena Balazinska Winter 2010 Lecture 19 Inheritance (virtual functions and abstract classes) CSE 303 Concepts and Tools for Software Development Magdalena Balazinska Winter 2010 Lecture 19 Inheritance (virtual functions and abstract classes) Where We Are We have already covered the introduction

More information

Syllabus for Computer Science. Proposed scheme for B.Sc Programme under Choice Based Credit System

Syllabus for Computer Science. Proposed scheme for B.Sc Programme under Choice Based Credit System Syllabus for Computer Science Proposed scheme for B.Sc Programme under Choice Based Credit System SEMESTER - I Code Course Title Course Type HPW Credits BS106 SEMESTER -I I BS 206 SEMESTER -III BS 301

More information

Chapter 2: Problem Solving Using C++

Chapter 2: Problem Solving Using C++ Chapter 2: Problem Solving Using C++ 1 Objectives In this chapter, you will learn about: Modular programs Programming style Data types Arithmetic operations Variables and declaration statements Common

More information

Java Interview Questions and Answers

Java Interview Questions and Answers 1. What is the most important feature of Java? Java is a platform independent language. 2. What do you mean by platform independence? Platform independence means that we can write and compile the java

More information

OpenCL Static C++ Kernel Language Extension

OpenCL Static C++ Kernel Language Extension OpenCL Static C++ Kernel Language Extension Document Revision: 04 Advanced Micro Devices Authors: Ofer Rosenberg, Benedict R. Gaster, Bixia Zheng, Irina Lipov December 15, 2011 Contents 1 Overview... 3

More information

Syllabus OBJECT ORIENTED PROGRAMMING C++

Syllabus OBJECT ORIENTED PROGRAMMING C++ 1 Syllabus OBJECT ORIENTED PROGRAMMING C++ 1. Introduction : What is object oriented programming? Why do we need objectoriented. Programming characteristics of object-oriented languages. C and C++. 2.

More information

C programming: exercise sheet L2-STUE (2011-2012)

C programming: exercise sheet L2-STUE (2011-2012) C programming: exercise sheet L2-STUE (2011-2012) Algorithms and Flowcharts Exercise 1: comparison Write the flowchart and associated algorithm that compare two numbers a and b. Exercise 2: 2 nd order

More information

Adjusted/Modified by Nicole Tobias. Chapter 2: Basic Elements of C++

Adjusted/Modified by Nicole Tobias. Chapter 2: Basic Elements of C++ Adjusted/Modified by Nicole Tobias Chapter 2: Basic Elements of C++ Objectives In this chapter, you will: Become familiar with functions, special symbols, and identifiers in C++ Explore simple data types

More information

Java (12 Weeks) Introduction to Java Programming Language

Java (12 Weeks) Introduction to Java Programming Language Java (12 Weeks) Topic Lecture No. Introduction to Java Programming Language 1 An Introduction to Java o Java as a Programming Platform, The Java "White Paper" Buzzwords, Java and the Internet, A Short

More information

Dotnet Online Course - Smart Mind Online Training, Hyderabad. Dotnet Online Training Course Content

Dotnet Online Course - Smart Mind Online Training, Hyderabad. Dotnet Online Training Course Content Faculty: Real time and certified Dotnet Online Training Course Content Introduction to.net Online Training NET FUNDAMENTALS Why Dot Net? The Dot Net initiative Introduction to Dot Net frameworks Advantages

More information

C++ Programming: From Problem Analysis to Program Design, Fifth Edition. Chapter 3: Input/Output

C++ Programming: From Problem Analysis to Program Design, Fifth Edition. Chapter 3: Input/Output C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 3: Input/Output Objectives In this chapter, you will: Learn what a stream is and examine input and output streams Explore

More information

Online C++ FAQ/Tutorial and Advanced Questions

Online C++ FAQ/Tutorial and Advanced Questions Online C++ FAQ/Tutorial and Advanced Questions Alexis Angelidis January 11, 2005 1 Quick notes to C programmers instead of macros use const or enum to define constants inline to prevent function call overload

More information

Java Application Developer Certificate Program Competencies

Java Application Developer Certificate Program Competencies Java Application Developer Certificate Program Competencies After completing the following units, you will be able to: Basic Programming Logic Explain the steps involved in the program development cycle

More information

Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.

Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program. Name: Class: Date: Exam #1 - Prep True/False Indicate whether the statement is true or false. 1. Programming is the process of writing a computer program in a language that the computer can respond to

More information

6.096 Lab 1. Due: 7 January 12:30:00. September 20, 2011

6.096 Lab 1. Due: 7 January 12:30:00. September 20, 2011 6.096 Lab 1 Due: 7 January 1:30:00 September 0, 011 1 Additional Material 1.1 Constants A constant is an expressions with a fixed value. Kinds of constants: Literals: used to express particular values

More information

AP Computer Science Java Subset

AP Computer Science Java Subset APPENDIX A AP Computer Science Java Subset The AP Java subset is intended to outline the features of Java that may appear on the AP Computer Science A Exam. The AP Java subset is NOT intended as an overall

More information

Advanced Systems Programming

Advanced Systems Programming Advanced Systems Programming Introduction to C++ Martin Küttler September 23, 2016 1 / 21 About this presentation 2 / 21 About this presentation This presentation is not about learning to program 2 / 21

More information

Simple C++ Programs. Engineering Problem Solving with C++, Etter/Ingber. Dev-C++ Dev-C++ Windows Friendly Exit. The C++ Programming Language

Simple C++ Programs. Engineering Problem Solving with C++, Etter/Ingber. Dev-C++ Dev-C++ Windows Friendly Exit. The C++ Programming Language Simple C++ Programs Engineering Problem Solving with C++, Etter/Ingber Chapter 2 Simple C++ Programs Program Structure Constants and Variables C++ Operators Standard Input and Output Basic Functions from

More information

Object-Oriented Programming with C#

Object-Oriented Programming with C# Object-Oriented Programming with C# Description: Prerequisites: Audience: Length: This course introduces the student to writing object-oriented programs in C#. Prior study in object-orientation and UML

More information

IT Fresher Training Program. Course Contents

IT Fresher Training Program. Course Contents IT Fresher Training Program Course Contents Following courses are covered as a part of Fresher Training program Introduction to.net C# ASP.NET Core Java Advance Java Concept Overview SQL Server & MySQL

More information

Chapter 8. Arithmetic in C++

Chapter 8. Arithmetic in C++ Christian Jacob Chapter 8 Arithmetic in C++ 8.1 The C++ Vocabulary 8.2 Variables and Types 8.2.1 Data Objects 8.2.2 Variables 8.2.3 Declaration of Variables 8.3 Elementary C++ Data Types 8.3.1 Integers

More information

Fill in the Blanks: ACTS National Resource Center, Pune Question Bank Advanced C++ & Data Structures (Solved)

Fill in the Blanks: ACTS National Resource Center, Pune Question Bank Advanced C++ & Data Structures (Solved) Fill in the Blanks: 1. A is a special member function used to initialize the data members of a class. (constructor) 2. The default access for members of a class is. (private) 3. Member functions of a class

More information

Fundamentals of Java Programming

Fundamentals of Java Programming Fundamentals of Java Programming This document is exclusive property of Cisco Systems, Inc. Permission is granted to print and copy this document for non-commercial distribution and exclusive use by instructors

More information

CS1020E: DATA STRUCTURES AND ALGORITHMS I

CS1020E: DATA STRUCTURES AND ALGORITHMS I CS1020E: DATA STRUCTURES AND ALGORITHMS I Tutorial 1 Basic C++, OOP Problem Solving (Week 3, starting 22 August 2016) 1. Evaluation Order (Note: You can use any other C++ code editor/compiler). Examine

More information

Binary storage of graphs and related data

Binary storage of graphs and related data EÖTVÖS LORÁND UNIVERSITY Faculty of Informatics Department of Algorithms and their Applications Binary storage of graphs and related data BSc thesis Author: Frantisek Csajka full-time student Informatics

More information

PES Institute of Technology-BSC QUESTION BANK

PES Institute of Technology-BSC QUESTION BANK PES Institute of Technology-BSC Faculty: Mrs. R.Bharathi CS35: Data Structures Using C QUESTION BANK UNIT I -BASIC CONCEPTS 1. What is an ADT? Briefly explain the categories that classify the functions

More information

Final Exam Review. CS 1428 Fall Jill Seaman. Final Exam

Final Exam Review. CS 1428 Fall Jill Seaman. Final Exam Final Exam Review CS 1428 Fall 2011 Jill Seaman 1 Final Exam Friday, December 9, 11:00am to 1:30pm Derr 241 (here) Closed book, closed notes, clean desk Comprehensive (covers entire course) 25% of your

More information

C++ for Engineers and Scientists

C++ for Engineers and Scientists C++ for Engineers and Scientists Second Edition Chapter 8 I/O File Streams and Data Files Objectives I/O File Stream Objects and Methods Reading and Writing Character-Based Files Exceptions and File Checking

More information

Basic C Syntax. Comp-206 : Introduction to Software Systems Lecture 10. Alexandre Denault Computer Science McGill University Fall 2006

Basic C Syntax. Comp-206 : Introduction to Software Systems Lecture 10. Alexandre Denault Computer Science McGill University Fall 2006 Basic C Syntax Comp-206 : Introduction to Software Systems Lecture 10 Alexandre Denault Computer Science McGill University Fall 2006 Next Week I'm away for the week. I'll still check my mails though. No

More information

Introduction to Java A First Look

Introduction to Java A First Look Introduction to Java A First Look Java is a second or third generation object language Integrates many of best features Smalltalk C++ Like Smalltalk Everything is an object Interpreted or just in time

More information

MLR Institute of Technology

MLR Institute of Technology MLR Institute of Technology DUNDIGAL 500 043, HYDERABAD COMPUTER SCIENCE AND ENGINEERING Computer Programming Lab List of Experiments S.No. Program Category List of Programs 1 Operators a) Write a C program

More information

B.Sc.(Computer Science) and. B.Sc.(IT) Effective From July 2011

B.Sc.(Computer Science) and. B.Sc.(IT) Effective From July 2011 NEW Detailed Syllabus of B.Sc.(Computer Science) and B.Sc.(IT) Effective From July 2011 SEMESTER SYSTEM Scheme & Syllabus for B.Sc. (CS) Pass and Hons. Course Effective from July 2011 and onwards CLASS

More information

Fundamentals of Computer & Programming in C Short-answer type questions

Fundamentals of Computer & Programming in C Short-answer type questions Fundamentals of Computer & Programming in C Short-answer type questions Section- A i. What is a computer system? Draw the block diagram of computer. ii. Differentiate between Real Time Operating System

More information

Introduction to C ++ : Questions

Introduction to C ++ : Questions Introduction to C ++ : Questions Thomas Branch 28th November 204. A Tutorial Introduction. Getting Started Aim: Make sure the program compiles and runs, learn to get the program to output text. [Debug]

More information

Objected oriented Programming: C++ Unit 1 1. Introduction 1.1. Introduction to Object Oriented Programming. 1.2. C++ fundamentals.

Objected oriented Programming: C++ Unit 1 1. Introduction 1.1. Introduction to Object Oriented Programming. 1.2. C++ fundamentals. Gujarat University Choice Based Credit System (CBCS) Syllabus for B. Sc. Semester III (Computer Science) COM 201: DATA STRUCTURE USING C++ (Theory) Hours: 4 /week Credits: 4 Objected oriented Programming:

More information

CS6301 PROGRAMMING AND DATA STRUCTURES II QUESTION BANK UNIT-I. 2-marks

CS6301 PROGRAMMING AND DATA STRUCTURES II QUESTION BANK UNIT-I. 2-marks CS6301 PROGRAMMING AND DATA STRUCTURES II QUESTION BANK UNIT-I 2-marks 1) Give some characteristics of procedure-oriented language. Emphasis is on doing things (algorithms). Larger programs are divided

More information

Course Title: Software Development

Course Title: Software Development Course Title: Software Development Unit: Customer Service Content Standard(s) and Depth of 1. Analyze customer software needs and system requirements to design an information technology-based project plan.

More information

C++ Input/Output: Streams

C++ Input/Output: Streams C++ Input/Output: Streams 1 The basic data type for I/O in C++ is the stream. C++ incorporates a complex hierarchy of stream types. The most basic stream types are the standard input/output streams: istream

More information

2. Place the following computers in order from oldest to most recent. _middle ABC _oldest Analytical Engine _newest ENIAC

2. Place the following computers in order from oldest to most recent. _middle ABC _oldest Analytical Engine _newest ENIAC Chapter 1 1. Match the following people with their contribution to the field of Computer Science, where a name can be used more than once. A. John Atanasoff and Cilfford Berry B. Augusta Ada Byron C. Charles

More information

MSF 575: C++ with Financial Applications PROJECTS

MSF 575: C++ with Financial Applications PROJECTS MSF 575: C++ with Financial Applications PROJECTS 1.) Create a program that asks the user to enter 4 numbers: a, b, c, d. Next, if (a, b) and (c, d) are ordered pairs, calculate the slope of the line connecting

More information

The American University in Cairo Computer Science & Engineering Department CSCE 106 Fundamentals of Computer Science

The American University in Cairo Computer Science & Engineering Department CSCE 106 Fundamentals of Computer Science Dr. KHALIL The American University in Cairo Computer Science & Engineering Department CSCE 106 Fundamentals of Computer Science Problem Solving & Assignment (2) Programming in C++ Group 1 Write a C++ program

More information

Moving from Java to C++

Moving from Java to C++ Moving from Java to C++ This appendix explains how to transfer your Java programming skills to a substantial subset of C++. This is necessary for students who take their first programming course in Java

More information

CEC225 COURSE COMPACT

CEC225 COURSE COMPACT CEC225 COURSE COMPACT Course GEC 225 Applied Computer Programming II(2 Units) Compulsory Course Duration Two hours per week for 15 weeks (30 hours) Lecturer Data Name of the lecturer: Dr. Oyelami Olufemi

More information

Certified PHP Developer VS-1054

Certified PHP Developer VS-1054 Certified PHP Developer VS-1054 Certification Code VS-1054 Certified PHP Developer Vskills certification for PHP Developers assesses the candidate for developing PHP based applications. The certification

More information

Textbook: Y. Daniel Liang, Introduction to Programming with C++, Second edition, Pearson Higher Education, 2010.

Textbook: Y. Daniel Liang, Introduction to Programming with C++, Second edition, Pearson Higher Education, 2010. University of Macau Department of Electromechanical Engineering EMEB111 Program Design for Engineers Syllabus 1 st Semester 2012/2013 Part A Course Outline Compulsory course in Electromechanical Engineering

More information

Basics of I/O Streams and File I/O

Basics of I/O Streams and File I/O Basics of This is like a cheat sheet for file I/O in C++. It summarizes the steps you must take to do basic I/O to and from files, with only a tiny bit of explanation. It is not a replacement for reading

More information

www.sahajsolns.com Chapter 4 OOPS WITH C++ Sahaj Computer Solutions

www.sahajsolns.com Chapter 4 OOPS WITH C++ Sahaj Computer Solutions Chapter 4 OOPS WITH C++ Sahaj Computer Solutions 1 Session Objectives Classes and Objects Class Declaration Class Members Data Constructors Destructors Member Functions Class Member Visibility Private,

More information

Object-Oriented Programming, Iouliia Skliarova

Object-Oriented Programming, Iouliia Skliarova Object-Oriented Programming, Iouliia Skliarova Data types define the way you use the storage (memory) in the programs. By specifying a data type, you tell the sompiler how to create a particular piece

More information

C# 3.0 Programming in the.net Framework (MS50150)

C# 3.0 Programming in the.net Framework (MS50150) Duration: 6 days Course Description: This course provides students with the knowledge and skills to develop applications in the.net Framework 3.5 using the C# 3.0 programming language. The C# 3.0 revision

More information

Boolean Expressions, Conditions, Loops, and Enumerations. Precedence Rules (from highest to lowest priority)

Boolean Expressions, Conditions, Loops, and Enumerations. Precedence Rules (from highest to lowest priority) Boolean Expressions, Conditions, Loops, and Enumerations Relational Operators == // true if two values are equivalent!= // true if two values are not equivalent < // true if left value is less than the

More information