Exam Details

Subject programming with c++
Paper
Exam / Course mca
Department
Organization Gujarat Technological University
Position
Exam Date January, 2018
City, State gujarat, ahmedabad


Question Paper

1
Seat No.: Enrolment
GUJARAT TECHNOLOGICAL UNIVERSITY
MCA SEMESTER III • EXAMINATION WINTER 2017
Subject Code: 3630004 Date: 04-01-2018
Subject Name: Programming with
Time: 10.30 am to 1.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

Select most appropriate answer(s)
i. Which operator is used to signify the namespace? Conditional operator Ternary operator Scope operator None of the mentioned
ii. What does your class can hold? Data Functions Both a b None of the mentioned iii. Which of the following is not a type of constructor? Copy constructor Default constructor Friend constructor Parameterized constructor
iv. Which of the following operators cannot be overloaded?
(Subscript operator) Ternary operator) (Function call operator) None of the mentioned
v. Which one of the following options is correct? Friend function can access public data members of the class. Friend function can access protected data members of the class. Friend function can access private data members of the class. All of the above. vi. Which of the following concepts means determining at runtime what method
to invoke?
Data hiding
Dynamic typing
Dynamic loading
Dynamic binding
vii. Which of the following concept of oops allows compiler to insert arguments
in a function call if it is not specified?
Call by value
Call by reference
Default arguments
Call by pointer
07
2

State whether following statements are TRUE or FALSE.
i. Protected variables are only available to the class.
ii. It is not possible to achieve inheritance of structures in
iii. The iostream header file is useful when your program needs to receive key
input and print text on the screen.
iv. Structure members are private by default.
v. A static member function can access only static data members of a class.
vi. never provides a default constructor.
vii. Each program may have many main functions.
07
Q.2

i. Explain this pointer with suitable example.
ii. Write a general syntax of unnamed namespace.
05
02

Write a sort note on data types available in
07
OR

What is a destructor? Explain destructor with suitable example.
07
Q.3

What is a wrapper class? Explain wrapper class with suitable example.
07

Explain abstract class with suitable example.
07
OR
Q.3

What is a template function? Explain template function with suitable example.
07

Write a sort note on std namespace.
07
Q.4

What are multiple inheritances? Explain drawback of multiple inheritances.
07

What is a namespace? Explain namespace alias with suitable example.
07
OR
Q.4

Explain composite object with suitable example.
07

What is a static function? Explain static function with suitable example.
07
Q.5

Explain multimap sorted associative container with suitable example.
07

Write a program in which design classes such that they support the following statements:
Dollar
Rupee r1;
r1 d1; convert dollar to rupees
d2 r1; convert rupees to dollar
NOTE: Assume 1 Dollar 65 Rupees
07
OR
Q.5

Write a sort note on local class.
07

Explain principles behind design of STL.
07



Other Question Papers

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)