BACHELOR IN COMPUTER APPLICATTONS Term-End Examination December, 2OO8 CC-16: INTRODUCTION TO C++ Time : 2 hours

MaximumMarks:75

Note :. Question number 7 is compulsory. Answer any three quesfionsfrom the resf. Use C++ whereuernecessoru. 1. Iu)

Explain the following with an example of each: 3x4=72 (i)

Function Overloading

(ii) Singlelnheritance (iii) Exception Handling (b) Write a program in C++ for the addition of two numbers. The numbers should be accepted as strings during input. There should be no limit on the number of digits in each number. (c) Write any three differences between 'C' and

6

cc-16

P.T.O.

2.

(a) Explain the paradigm of Object Oriented Programming with the help of suitable examples. What are the advantages of object 10 oriented programming?

(b) Write a program in C++ to compute in" factorial of the input integer. 3.

(a) Define the term "Class" with the help of an example. Is it possible to create objects of any class ? Justify your answer. (b) Write a function in C++ to swap two integer values.

4.

(a) List any two operators that can be overloaded. Write sample code demonstrating the 1A overloading of each of the two operators. (b) What is a friend function ? Write at least one advantage and one disadvantage of friend functions.

5.

(a) What is a Virtual Function ? Give an example. Also, write at least one advantageof it.

9

(b) Explain Multiple Inheritance with an example.

6

cc-16

2,000

Introduction to C++.pdf

BACHELOR IN COMPUTER. APPLICATTONS ... Write a program in C++ for the addition of two. numbers. ... Displaying Introduction to C++.pdf. Page 1 of 2.

46KB Sizes 0 Downloads 157 Views

Recommend Documents

pdf-1453\introduction-to-psychoneuroimmunology-introduction-to ...
Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. pdf-1453\introduction-to-psychoneuroimmunology-introduction-to-psychoneuroimmunology-.pdf. pdf-1453\introduction-to-psychoneuroimmunology-introduction-to-

INTRODUCTION TO MATLAB
7.1 Solve a Linear System . .... a sequence of Matlab commands that will be executed from top to bottom just as if you had typed them on the command ... There is also a wealth of information under Help Desk in the Help menu of Matlab's ...

Introduction to HTML
HTML tags are used to mark-up HTML elements. ○ HTML tags are surrounded by the two characters < and >. ○ The surrounding characters are called angle ...

INTRODUCTION TO MATLAB
Get on a department PC or buy Student Matlab for your own machine and start the .... x=0:h:20; % build an array of points [0,h,2h,...,20] ..... looks good. ... Note: the example in the box below is available on the Physics 330 course website, as.

Introduction to Lab 2
Sep 15, 2010 - http://www.it.uu.se/edu/course/homepage/realtid/ht10/lab2. Lab report ... Based on OSEK (industry standard for automotive embedded systems).

Introduction to Algorithms - GitHub
Each cut is free. The management of Serling ..... scalar multiplications to compute the 100 50 matrix product A2A3, plus another. 10 100 50 D 50,000 scalar ..... Optimal substructure varies across problem domains in two ways: 1. how many ...

Introduction to HTML
HTML tags are used to mark-up HTML elements. ○ HTML tags are surrounded by the two characters < and >. ○ The surrounding characters are called angle ...

Introduction to Java Programming
LiveLab is a programming course assessment and management system. Students can .... B MySQL Tutorial. C Oracle Tutorial. D Microsoft Access Tutorial. E Introduction to Database Systems. F Relational Database Concept. G Database Design ...... In 1954,

Introduction to R - GitHub
Nov 30, 2015 - 6 Next steps ... equals, ==, for equality comparison. .... invoked with some number of positional arguments, which are always given, plus some ...

Introduction To DCA - GitHub
Maximum-Entropy Probability Model. Joint & Conditional Entropy. Joint & Conditional Entropy. • Joint Entropy: H(X,Y ). • Conditional Entropy: H(Y |X). H(X,Y ) ...

Introduction to Java Programming
problem-driven complete revision new problems early console input hand trace box multidimensional arrays. Sudoku problem simplified basic GUI earlier .... T Networking Using Datagram Protocol. U Creating Internal ..... the outset, it is helpful to re

Introduction to Linux
1.1.3. Current application of Linux systems. .... 2.2.3. Using Bash features. ...... Home sweet /home. ...... On top of the basics, special third party software is added ...... Mind that having a journaled file system only provides data security in c

Introduction to Unix
Aug 14, 1996 - An option modifies the command, changing the way it performs. Commands are ... models for early computer terminals. For new ..... They allow you to back up through the previous pages and ...... Regular expressions, such as those shown

122COM: Introduction to C++ - GitHub
All students are expected to learn some C++. .... Going to be learning C++ (approved. ). ..... Computer Science - C++ provides direct memory access, allowing.

Introduction to Cryptocurrencies
mention some incidents when programming errors lead to forks that needed to be ... advanced types of contracts are the fair multiparty proto- cols, and in particular .... of bitcoin. launched! bitcointalk.org/index.php?topic=47417.0, Accessed on.

Introduction to Lab 2 (LEGO)
Sep 15, 2010 - Flash the custom firmware ... Custom FW using fwflash-jh. ▻ Original FW using fwflash- .... Application: Distance and touch sensor sensing. 1.

Introduction to Orthodoxy.pdf
Sign in. Page. 1. /. 2. Loading… Page 1 of 2. Page 1 of 2. Page 2 of 2. Page 2 of 2. Introduction to Orthodoxy.pdf. Introduction to Orthodoxy.pdf. Open. Extract.

Introduction to Panopto.pdf
Page 1 of 1. Introduction to Panopto. Panopto is a tool that provides many options for capturing and presenting video content, these include the. following: Recording a lecture or mini lecture and adding it to your Bb course or organization. Creating

Introduction to NumPy arrays - GitHub
www.scipy-lectures.org. Python. Matplotlib. SciKits. Numpy. SciPy. IPython. IP[y]:. Cython. 2015 ..... numbers and determine the fraction of pairs which has ... origin as a function of time. 3. Plot the variance of the trajectories as a function of t

INTRODUCTION to STRING FIELD THEORY
http://insti.physics.sunysb.edu/˜siegel/plan.html ... 1.3. Aspects. 4. 1.4. Outline. 6. 2. General light cone. 2.1. Actions. 8. 2.2. Conformal algebra. 10. 2.3. Poincaré ...

Introduction to P4 -
Open-source domain-specific language (DSL) for programmable ... E.g. PISA architecture, ingress/egress pipeline architecture, etc. ... Compiler$data$flow. P416.

Introduction to LDAP
Distribution - with LDAP data can be near where it is needed ... Directory tree is similar to unix file system ... In unix, an entry is either a file or a directory - not.