Get fully solved assignment. Buy
online from website
online store
or
plz drop a mail with your sub
code
we will revert you within 2-3
hour or immediate
Charges rs
125/subject
If urgent
then call us on 08791490301
ASSIGNMENT DRIVE - SPRING 2017
PROGRAM - Bachelor of Computer Application
– BCA
SEMESTER - I
SUBJECT CODE & NAME - BCA213 – Object
Oriented Programming – C++
BK ID B2114 NUMBER OF ASSIGNMENTS,
CREDITS & MARKS 2, 4 Credits, 30 marks each
Assignment
Set -1 Questions
Q1
Differentiate between an external variable and an automatic variable with the
help of an example. 10
Answer:-
Automatic variables is default variable
in C++. All the variables we have created and used in programs are automatic
variables. These variables can also be declared by prefixing the keyword auto.
One of important characteristics of these variables are that they are created
only when the function or program block in which they are
Q2
What is “this pointer” in C++? What are the features of “this pointer”? [3+7]
Answer:-
The this
pointer is used as a pointer to the class object instance by the member
function. The address of the class instance is passed as an implicit parameter
Q3
Explain destructor in detail. 10
Answer:-
Destructors are usually used to
deallocate memory and do other cleanup for a class object and its class members
when the object is destroyed. A destructor is
Assignment
Set -2 Questions
Q1
What is Polymorphism? What are the different types of Polymorphism? 3+7
Answer:-
Polymorphism means same content but
different forms. In C++, polymorphism enables the same program code calling
different functions of different classes. Imagine a situation where you would
like to create a class shape and
derive
Q2
Discuss the following functions of file operations a) tellg() b) seekp() c)
ignore() d) getline() 2.5x4
Answer:-
a)
tellg()
tellg() – Returns an int type, that shows
the current position of the inside-pointer. This one works only when you read a
file. Example:
#include <
Q3
Explain sequence containers 10
Answer:-
STL provides a number of container types,
representing objects that contain other objects. The STL contains sequence
containers and
Get fully solved assignment. Buy
online from website
online store
or
plz drop a mail with your sub
code
we will revert you within 2-3
hour or immediate
Charges rs
125/subject
If urgent
then call us on 08791490301
No comments:
Post a Comment