Exam Details

Subject object-oriented programming concepts & programmingoocp)
Paper
Exam / Course mca
Department
Organization Gujarat Technological University
Position
Exam Date June, 2017
City, State gujarat, ahmedabad


Question Paper

1
Seat No.: Enrolment
GUJARAT TECHNOLOGICAL UNIVERSITY
MCA SEMESTER- II• EXAMINATION SUMMER 2017
Subject Code: 2620002 Date:02/06/2017
Subject Name: Object Oriented Programming Concepts
Programming
Time: 10.30 am to 01.00 pm Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
Q.1

What is inheritance? Specify its types. Which type of inheritance is having ambiguity? How to overcome it?
07

What is polymorphism? Explain in detail different ways of achieving compile-time polymorphism in
07
Q.2

I Explain user defined conversion function which converts user-defined object to built-in data type.
II What are the differences between public, private and protected inheritance?
04
03

What is the need of friend function within a class? Explain with proper real-life example.
07
OR

What is file opening mode? Describe the various file opening modes available in Explain how a file pointer can be managed in a random file for read write operations.
07
Q.3

I When static data member is declared in a class? Explain with example.
II Explain Exception handling mechanism.
04
03

I Explain and operators with suitable example.
II What is difference between a default constructor provided by compiler and
a user-defined default constructor?
04
03
OR
Q.3

I What is the need of virtual base class? Explain with code.
II Differentiate constructor and destructor.
04
03

I What is Error Handling with reference to File IO? Explain with suitable
program.
II Write a code to illustrate class template.
04
03
Q.4

Distinguish between macro definition, normal function and inline function. What are the advantages and disadvantages of inline function?
07

I Differentiate Constant pointer and pointer to constant.
II Explain Abstraction and Encapsulation.
04
03
OR
Q.4

How can and operator be overloaded?
07

I What do you mean by inline functions?
II What is a namespace? How do you extend a namespace?
04
03
Q.5

What is RTTI? Explain how typeid and dynamic_cast are used for RTTI.
07
2

Define a class Computer. Also define classes of Main, Mini and Micro inheriting from that. Main is further inherited into Super and Non-Super, while Micro is inherited into PC and HandHelds. Define an array which contains 10 different types of Computers. Define a function ReadDetails() in all above classes. Write a program to create single array which read details of different computers and display them. Details should be displayed based on the type of the computer.
07
OR
Q.5

What are manipulators? How are they different than ios formatting functions? How can one create your own manipulator?
07

Create a class called Distance having member data feet and inches of type int and float respectively. Define necessary constructors and getDistance() function to enter feet and inches and putDistance() function to print feet and inches in proper format (i.e. Write a routine to convert given measurement in meters of type float to an object of Distance class and vice-versa.
07



Subjects

  • advance database management system
  • advanced biopharmaceutics & pharmacokinetics
  • advanced medicinal chemistry
  • advanced networking (an)
  • advanced organic chemistry -i
  • advanced pharmaceutical analysis
  • advanced pharmacognosy-1
  • advanced python
  • android programming
  • artificial intelligence (ai)
  • basic computer science-1(applications of data structures and applications of sql)
  • basic computer science-2(applications of operating systems and applications of systems software)
  • basic computer science-3(computer networking)
  • basic computer science-4(software engineering)
  • basic mathematics
  • basic statistics
  • big data analytics (bda)
  • big data tools (bdt)
  • chemistry of natural products
  • cloud computing (cc)
  • communications skills (cs)
  • computer aided drug delivery system
  • computer graphics (cg)
  • computer-oriented numerical methods (conm)
  • cyber security & forensics (csf)
  • data analytics with r
  • data mining
  • data structures (ds)
  • data visualization (dv)
  • data warehousing
  • data warehousing & data mining
  • database administration
  • database management system (dbms)
  • design & analysis of algorithms(daa)
  • digital technology trends ( dtt)
  • discrete mathematics for computer science (dmcs)
  • distributed computing (dc1)
  • drug delivery system
  • dynamic html
  • enterprise resource planning (erp)
  • food analysis
  • function programming with java
  • fundamentals of computer organization (fco)
  • fundamentals of java programming
  • fundamentals of networking
  • fundamentals of programming (fop)
  • geographical information system
  • image processing
  • industrial pharmacognostical technology
  • information retrieving (ir)
  • information security
  • java web technologies (jwt)
  • language processing (lp)
  • machine learning (ml)
  • management information systems (mis)
  • mobile computing
  • molecular pharmaceutics(nano tech and targeted dds)
  • network security
  • object-oriented programming concepts & programmingoocp)
  • object-oriented unified modelling
  • operating systems
  • operation research
  • operations research (or)
  • pharmaceutical validation
  • phytochemistry
  • procedure programming in sql
  • programming skills-i (ps-i-fop)
  • programming skills-ii (ps-oocp)
  • programming with c++
  • programming with java
  • programming with linux, apache,mysql, and php (lamp)
  • programming with python
  • search engine techniques (set)
  • soft computing
  • software development for embedded systems
  • software engineering
  • software lab (dbms: sql & pl/sql)
  • software project in c (sp-c)
  • software project in c++ (sp-cpp)
  • software quality and assurance (sqa)
  • statistical methods
  • structured & object oriented analysis& design methodology
  • system software
  • virtualization and application of cloud
  • web commerce (wc)
  • web data management (wdm)
  • web searching technology and search engine optimization
  • web technology & application development
  • wireless communication & mobile computing (wcmc)
  • wireless sensor network (wsn)