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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

JAVA - QUICK GUIDE. Java SE is freely available from the link Download Java. So you download a version based on your operating system.

JAVA - QUICK GUIDE. Java SE is freely available from the link Download Java. So you download a version based on your operating system. http://www.tutorialspoint.com/java/java_quick_guide.htm JAVA - QUICK GUIDE Copyright tutorialspoint.com What is Java? Java is: Object Oriented Platform independent: Simple Secure Architectural- neutral

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

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

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

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

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

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

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

Course notes Standard C++ programming

Course notes Standard C++ programming Department of Cybernetics The University of Reading SE2B2 Further Computer Systems Course notes Standard C++ programming by Dr Virginie F. Ruiz November, 03 CREATING AND USING A COPY CONSTRUCTOR... 27

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

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

CS 111 Classes I 1. Software Organization View to this point:

CS 111 Classes I 1. Software Organization View to this point: CS 111 Classes I 1 Software Organization View to this point: Data Objects and primitive types Primitive types operators (+, /,,*, %). int, float, double, char, boolean Memory location holds the data Objects

More information

CpSc212 Goddard Notes Chapter 6. Yet More on Classes. We discuss the problems of comparing, copying, passing, outputting, and destructing

CpSc212 Goddard Notes Chapter 6. Yet More on Classes. We discuss the problems of comparing, copying, passing, outputting, and destructing CpSc212 Goddard Notes Chapter 6 Yet More on Classes We discuss the problems of comparing, copying, passing, outputting, and destructing objects. 6.1 Object Storage, Allocation and Destructors Some objects

More information

An Incomplete C++ Primer. University of Wyoming MA 5310

An Incomplete C++ Primer. University of Wyoming MA 5310 An Incomplete C++ Primer University of Wyoming MA 5310 Professor Craig C. Douglas http://www.mgnet.org/~douglas/classes/na-sc/notes/c++primer.pdf C++ is a legacy programming language, as is other languages

More information

CS193D Handout 06 Winter 2004 January 26, 2004 Copy Constructor and operator=

CS193D Handout 06 Winter 2004 January 26, 2004 Copy Constructor and operator= CS193D Handout 06 Winter 2004 January 26, 2004 Copy Constructor and operator= We already know that the compiler will supply a default (zero-argument) constructor if the programmer does not specify one.

More information

Java SE 8 Programming

Java SE 8 Programming Oracle University Contact Us: 1.800.529.0165 Java SE 8 Programming Duration: 5 Days What you will learn This Java SE 8 Programming training covers the core language features and Application Programming

More information

C++ Language Tutorial

C++ Language Tutorial cplusplus.com C++ Language Tutorial Written by: Juan Soulié Last revision: June, 2007 Available online at: http://www.cplusplus.com/doc/tutorial/ The online version is constantly revised and may contain

More information

IS0020 Program Design and Software Tools Midterm, Feb 24, 2004. Instruction

IS0020 Program Design and Software Tools Midterm, Feb 24, 2004. Instruction IS0020 Program Design and Software Tools Midterm, Feb 24, 2004 Name: Instruction There are two parts in this test. The first part contains 50 questions worth 80 points. The second part constitutes 20 points

More information

Java EE Web Development Course Program

Java EE Web Development Course Program Java EE Web Development Course Program Part I Introduction to Programming 1. Introduction to programming. Compilers, interpreters, virtual machines. Primitive types, variables, basic operators, expressions,

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

Embedded Programming in C/C++: Lesson-1: Programming Elements and Programming in C

Embedded Programming in C/C++: Lesson-1: Programming Elements and Programming in C Embedded Programming in C/C++: Lesson-1: Programming Elements and Programming in C 1 An essential part of any embedded system design Programming 2 Programming in Assembly or HLL Processor and memory-sensitive

More information

TECHNOLOGY Computer Programming II Grade: 9-12 Standard 2: Technology and Society Interaction

TECHNOLOGY Computer Programming II Grade: 9-12 Standard 2: Technology and Society Interaction Standard 2: Technology and Society Interaction Technology and Ethics Analyze legal technology issues and formulate solutions and strategies that foster responsible technology usage. 1. Practice responsible

More information

RARITAN VALLEY COMMUNITY COLLEGE ACADEMIC COURSE OUTLINE. CISY 105 Foundations of Computer Science

RARITAN VALLEY COMMUNITY COLLEGE ACADEMIC COURSE OUTLINE. CISY 105 Foundations of Computer Science I. Basic Course Information RARITAN VALLEY COMMUNITY COLLEGE ACADEMIC COURSE OUTLINE CISY 105 Foundations of Computer Science A. Course Number and Title: CISY-105, Foundations of Computer Science B. New

More information

C++ Crash Kurs. C++ Object-Oriented Programming

C++ Crash Kurs. C++ Object-Oriented Programming C++ Crash Kurs C++ Object-Oriented Programming Dr. Dennis Pfisterer Institut für Telematik, Universität zu Lübeck http://www.itm.uni-luebeck.de/people/pfisterer C++ classes A class is user-defined type

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

9 Control Statements. 9.1 Introduction. 9.2 Objectives. 9.3 Statements

9 Control Statements. 9.1 Introduction. 9.2 Objectives. 9.3 Statements 9 Control Statements 9.1 Introduction The normal flow of execution in a high level language is sequential, i.e., each statement is executed in the order of its appearance in the program. However, depending

More information

MAHALAKSHMI ENGINEERING COLLEGE B TIRUCHIRAPALLI 621213

MAHALAKSHMI ENGINEERING COLLEGE B TIRUCHIRAPALLI 621213 MAHALAKSHMI ENGINEERING COLLEGE B TIRUCHIRAPALLI 621213 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Sub code: CS2203 SEM: III Sub Name: Object Oriented Programming Year: II UNIT-IV PART-A 1. Write the

More information

Objectif. Participant. Prérequis. Remarque. Programme. C# 3.0 Programming in the.net Framework. 1. Introduction to the.

Objectif. Participant. Prérequis. Remarque. Programme. C# 3.0 Programming in the.net Framework. 1. Introduction to the. Objectif This six-day instructor-led course provides students with the knowledge and skills to develop applications in the.net 3.5 using the C# 3.0 programming language. C# is one of the most popular programming

More information

Chapter One Introduction to Programming

Chapter One Introduction to Programming Chapter One Introduction to Programming 1-1 Algorithm and Flowchart Algorithm is a step-by-step procedure for calculation. More precisely, algorithm is an effective method expressed as a finite list of

More information

Ch 7-1. Object-Oriented Programming and Classes

Ch 7-1. Object-Oriented Programming and Classes 2014-1 Ch 7-1. Object-Oriented Programming and Classes May 10, 2014 Advanced Networking Technology Lab. (YU-ANTL) Dept. of Information & Comm. Eng, Graduate School, Yeungnam University, KOREA (Tel : +82-53-810-2497;

More information

Programming and Software Development (PSD)

Programming and Software Development (PSD) Programming and Software Development (PSD) Course Descriptions Fundamentals of Information Systems Technology This course is a survey of computer technologies. This course may include computer history,

More information

Chapter 2: Elements of Java

Chapter 2: Elements of Java Chapter 2: Elements of Java Basic components of a Java program Primitive data types Arithmetic expressions Type casting. The String type (introduction) Basic I/O statements Importing packages. 1 Introduction

More information

Algorithms, Flowcharts & Program Design. ComPro

Algorithms, Flowcharts & Program Design. ComPro Algorithms, Flowcharts & Program Design ComPro Definition Algorithm: o sequence of steps to be performed in order to solve a problem by the computer. Flowchart: o graphical or symbolic representation of

More information

Programming in C# with Microsoft Visual Studio 2010

Programming in C# with Microsoft Visual Studio 2010 Course 10266A: Programming in C# with Microsoft Visual Studio 2010 Course Details Course Outline Module 1: Introducing C# and the.net Framework This module explains the.net Framework, and using C# and

More information

09336863931 : provid.ir

09336863931 : provid.ir provid.ir 09336863931 : NET Architecture Core CSharp o Variable o Variable Scope o Type Inference o Namespaces o Preprocessor Directives Statements and Flow of Execution o If Statement o Switch Statement

More information

C++FA 3.1 OPTIMIZING C++

C++FA 3.1 OPTIMIZING C++ C++FA 3.1 OPTIMIZING C++ Ben Van Vliet Measuring Performance Performance can be measured and judged in different ways execution time, memory usage, error count, ease of use and trade offs usually have

More information

CORBA Programming with TAOX11. The C++11 CORBA Implementation

CORBA Programming with TAOX11. The C++11 CORBA Implementation CORBA Programming with TAOX11 The C++11 CORBA Implementation TAOX11: the CORBA Implementation by Remedy IT TAOX11 simplifies development of CORBA based applications IDL to C++11 language mapping is easy

More information

Basics of C++ and object orientation in OpenFOAM

Basics of C++ and object orientation in OpenFOAM Basics of C++ and object orientation in OpenFOAM To begin with: The aim of this part of the course is not to teach all of C++, but to give a short introduction that is useful when trying to understand

More information

Sources: On the Web: Slides will be available on:

Sources: On the Web: Slides will be available on: C programming Introduction The basics of algorithms Structure of a C code, compilation step Constant, variable type, variable scope Expression and operators: assignment, arithmetic operators, comparison,

More information

Specialized Programme on Web Application Development using Open Source Tools

Specialized Programme on Web Application Development using Open Source Tools Specialized Programme on Web Application Development using Open Source Tools Objective: At the end of the course, Students will be able to: Understand various open source tools(programming tools and databases)

More information

B.Sc. (Computer Science) First Year

B.Sc. (Computer Science) First Year B.Sc. (Computer Science) First Year Paper No. Title of Paper External Internal Assessment Maximum Pass Exam Durations Semester I I Computer Fundamentals & Programming 40 5 45 16 3hrs in C II Logical Organization

More information

Android Application Development Course Program

Android Application Development Course Program Android Application Development Course Program Part I Introduction to Programming 1. Introduction to programming. Compilers, interpreters, virtual machines. Primitive data types, variables, basic operators,

More information

Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months

Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months Our program is a practical knowledge oriented program aimed at making innovative and attractive applications for mobile

More information

Programming and Software Development CTAG Alignments

Programming and Software Development CTAG Alignments Programming and Software Development CTAG Alignments This document contains information about four Career-Technical Articulation Numbers (CTANs) for Programming and Software Development Career-Technical

More information

! " # $ %& %' ( ) ) *%%+, -..*/ *%%+ - 0 ) 1 2 1

!  # $ %& %' ( ) ) *%%+, -..*/ *%%+ - 0 ) 1 2 1 !" #$%&%'())*%%+,-..*/*%%+- 0 )12 1 *!" 34 5 6 * #& ) 7 8 5)# 97&)8 5)# 9 : & ; < 5 11 8 1 5)=19 7 19 : 0 5)=1 ) & & >) ) >) 1? 5)= 19 7 19 : # )! #"&@)1 # )? 1 1#& 5)=19719:# 1 5)=9 7 9 : 11 0 #) 5 A

More information

OBJECT ORIENTED PROGRAMMING AND DATA STRUCTURES CONSTRUCTORS AND DESTRUCTORS

OBJECT ORIENTED PROGRAMMING AND DATA STRUCTURES CONSTRUCTORS AND DESTRUCTORS CONSTRUCTORS AND DESTRUCTORS Constructors: A constructor is a member function whose name is same as class name and is used to initialize data members and allocate memory dynamically. A constructor is automatically

More information

Syllabus for CS 134 Java Programming

Syllabus for CS 134 Java Programming - Java Programming Syllabus Page 1 Syllabus for CS 134 Java Programming Computer Science Course Catalog 2000-2001: This course is an introduction to objectoriented programming using the Java language.

More information

Lecture 3. Arrays. Name of array. c[0] c[1] c[2] c[3] c[4] c[5] c[6] c[7] c[8] c[9] c[10] c[11] Position number of the element within array c

Lecture 3. Arrays. Name of array. c[0] c[1] c[2] c[3] c[4] c[5] c[6] c[7] c[8] c[9] c[10] c[11] Position number of the element within array c Lecture 3 Data structures arrays structs C strings: array of chars Arrays as parameters to functions Multiple subscripted arrays Structs as parameters to functions Default arguments Inline functions Redirection

More information

Summit Public Schools Summit, New Jersey Grade Level / Content Area: Mathematics Length of Course: 1 Academic Year Curriculum: AP Computer Science A

Summit Public Schools Summit, New Jersey Grade Level / Content Area: Mathematics Length of Course: 1 Academic Year Curriculum: AP Computer Science A Summit Public Schools Summit, New Jersey Grade Level / Content Area: Mathematics Length of Course: 1 Academic Year Curriculum: AP Computer Science A Developed By Brian Weinfeld Course Description: AP Computer

More information

Database Programming with PL/SQL: Learning Objectives

Database Programming with PL/SQL: Learning Objectives Database Programming with PL/SQL: Learning Objectives This course covers PL/SQL, a procedural language extension to SQL. Through an innovative project-based approach, students learn procedural logic constructs

More information

C++ Outline. cout << "Enter two integers: "; int x, y; cin >> x >> y; cout << "The sum is: " << x + y << \n ;

C++ Outline. cout << Enter two integers: ; int x, y; cin >> x >> y; cout << The sum is:  << x + y << \n ; C++ Outline Notes taken from: - Drake, Caleb. EECS 370 Course Notes, University of Illinois Chicago, Spring 97. Chapters 9, 10, 11, 13.1 & 13.2 - Horstman, Cay S. Mastering Object-Oriented Design in C++.

More information

COMPUTER SCIENCE 1999 (Delhi Board)

COMPUTER SCIENCE 1999 (Delhi Board) COMPUTER SCIENCE 1999 (Delhi Board) Time allowed: 3 hours Max. Marks: 70 Instructions: (i) All the questions are compulsory. (ii) Programming Language: C++ QUESTION l. (a) Why main function is special?

More information

Stacks. Linear data structures

Stacks. Linear data structures Stacks Linear data structures Collection of components that can be arranged as a straight line Data structure grows or shrinks as we add or remove objects ADTs provide an abstract layer for various operations

More information

Object Oriented Software Design II

Object Oriented Software Design II Object Oriented Software Design II Real Application Design Christian Nastasi http://retis.sssup.it/~lipari http://retis.sssup.it/~chris/cpp Scuola Superiore Sant Anna Pisa April 25, 2012 C. Nastasi (Scuola

More information

Compiler Construction

Compiler Construction Compiler Construction Lecture 1 - An Overview 2003 Robert M. Siegfried All rights reserved A few basic definitions Translate - v, a.to turn into one s own language or another. b. to transform or turn from

More information

Constructor, Destructor, Accessibility and Virtual Functions

Constructor, Destructor, Accessibility and Virtual Functions Constructor, Destructor, Accessibility and Virtual Functions 182.132 VL Objektorientierte Programmierung Raimund Kirner Mitwirkung an Folienerstellung: Astrit Ademaj Agenda Constructor Destructors this

More information

ADVANCED SCHOOL OF SYSTEMS AND DATA STUDIES (ASSDAS) PROGRAM: CTech in Computer Science

ADVANCED SCHOOL OF SYSTEMS AND DATA STUDIES (ASSDAS) PROGRAM: CTech in Computer Science ADVANCED SCHOOL OF SYSTEMS AND DATA STUDIES (ASSDAS) PROGRAM: CTech in Computer Science Program Schedule CTech Computer Science Credits CS101 Computer Science I 3 MATH100 Foundations of Mathematics and

More information

Basic Programming and PC Skills: Basic Programming and PC Skills:

Basic Programming and PC Skills: Basic Programming and PC Skills: Texas University Interscholastic League Contest Event: Computer Science The contest challenges high school students to gain an understanding of the significance of computation as well as the details of

More information

Object Oriented Software Design II

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

More information

Object Oriented Software Design

Object Oriented Software Design Object Oriented Software Design Introduction to Java - II Giuseppe Lipari http://retis.sssup.it/~lipari Scuola Superiore Sant Anna Pisa September 14, 2011 G. Lipari (Scuola Superiore Sant Anna) Introduction

More information

Visual Basic. murach's TRAINING & REFERENCE

Visual Basic. murach's TRAINING & REFERENCE TRAINING & REFERENCE murach's Visual Basic 2008 Anne Boehm lbm Mike Murach & Associates, Inc. H 1-800-221-5528 (559) 440-9071 Fax: (559) 440-0963 murachbooks@murach.com www.murach.com Contents Introduction

More information

Appendix K Introduction to Microsoft Visual C++ 6.0

Appendix K Introduction to Microsoft Visual C++ 6.0 Appendix K Introduction to Microsoft Visual C++ 6.0 This appendix serves as a quick reference for performing the following operations using the Microsoft Visual C++ integrated development environment (IDE):

More information

Java CPD (I) Frans Coenen Department of Computer Science

Java CPD (I) Frans Coenen Department of Computer Science Java CPD (I) Frans Coenen Department of Computer Science Content Session 1, 12:45-14:30 (First Java Programme, Inheritance, Arithmetic) Session 2, 14:45-16:45 (Input and Programme Constructs) Materials

More information

Keywords are identifiers having predefined meanings in C programming language. The list of keywords used in standard C are : unsigned void

Keywords are identifiers having predefined meanings in C programming language. The list of keywords used in standard C are : unsigned void 1. Explain C tokens Tokens are basic building blocks of a C program. A token is the smallest element of a C program that is meaningful to the compiler. The C compiler recognizes the following kinds of

More information

Classes and Pointers: Some Peculiarities (cont d.)

Classes and Pointers: Some Peculiarities (cont d.) Classes and Pointers: Some Peculiarities (cont d.) Assignment operator Built-in assignment operators for classes with pointer member variables may lead to shallow copying of data FIGURE 3-22 Objects objectone

More information