www.becbgk.edu Basaveshwar Engineering College : BE CSE Model Question Paper

+ Ask Question / Post resume
Results 1 to 1 of 1
  1. Post Count Number #1
    IJT addict
    Join Date
    February 14th, 2012
    Location
    Tuticorin
    Posts
    9,712

    www.becbgk.edu Basaveshwar Engineering College : BE CSE Model Question Paper

    Basaveshwar Engineering College, Bagalkot
    Model Question Paper
    FOURTH SEMESTER B.E (CSE)
    Object Oriented Programming with C++ (UCS405C)
    Duration: 3 Hours Max marks: 100

    Note: Answer any FIVE full questions choosing at least ONE from each unit.

    Home Page
    : http://www.becbgk.edu/
    Model Question Paper : http://www.becbgk.edu/UG-09-Model-QP-4%20Sem.pdf

    UNIT –I
    1. a) List out the difference between object oriented paradigm and procedure Oriented paradigm. 5
    b) What are the default arguments? Explain with suitable examples. State and explain the rules applying the default arguments. 10
    c) Write the function definition and function call to swap the contents of two integer I & J using call by reference. 5
    2. a) What is class? Explain the structure of a class with the help of an example Differentiate between class and structure. 8
    b) With example, explain this pointer. 4
    c) What is a friend class? With an example explain the working of friend class. 8

    UNIT –II
    3. a) Explain the new and delete operator with example. 6
    b) What is memory leak? Explain with an example how it can be prevented? 4
    c) What are constructors? Explain different types of constructors with suitable example. 10
    4. a) Draw figures to illustrate the different types of inheritance & explain them. 6
    b) Write a C++ program to create a class student with data members regno and name. Create a derived class marks having marks in 3 subjects as member variables. Let the program display the average marks scored by the student. 10
    c) List the effect on the accessibility of members when a base class is derived different access specifiers. 4

    UNIT –III 5. a) What is virtual function ? Explain with an example its usage. 8
    b) What are IO streams in C++? Give the stream class hierarchy. 8
    c) What are pure virtual functions? When they are needed. 4

    6. a) What is operator overloading ? Explain its general syntax and rules along with an example. 10
    b) Write a C++ program to read a text file and display the contents, number of lines and number of words and alphabets on the screen. 10

    UNIT –IV 7. a) Create a class FLOAT that contains two float data members. Write a C++ program to overload all the four arithmetic operators so that they operate on the objects of FLOAT. 10
    b) What function template? Write a C++ program to swap two integer, float and character type data using template function. 10
    8. a) What is class template and class template instantiation? Give suitable example. 10
    b) Briefly define the four new style casts provided in C++. 5
    c) Write a C++ program to input two numbers and divide the first by second Apply exception handling to mange divide by zero error. 5