BCA_SEM4_OCT_2023_Question_Papers
BCA_SEM4_OCT_2023_Question_Papers
:
P6448 [6158]-41
[Total No. of Pages : 5
[6158]-41 1 P.T.O.
e) Constructor can return _________.
i) void data
a) Define constructor.
i) Object
ii) Class
iii) Polymorphism
[6158]-41 2
f) Read the code carefully and answer the questions below
Class ABC
{
int temp;
Public:
ABC ( )
{
temp = 0;
}
ABC(int t)
{
temp = t;
}
void display ( )
{
cout << temp << endl;
}
};
main ( )
{
ABC a;
___________ statement 1;
___________ statement 2;
}
[6158]-41 3
Q3) Answer the following (Any five): [5×4=20]
a) Write 4 differences between Procedure oriented programming and object
oriented Programming.
b) What is operator overloading? Explain rules of operator overloading.
c) Write a program to add two complex numbers using binary operator
overloading.
d) Write a C++ program to copy the contents on one file to another.
e) Which are the two ways of defining member function? Explain any one
with example.
b) What is a file? Explain various file stream classes for file manipulation.
d) Write a program to create a class shape with function to find area of the
shape and display name of the shape with essential components. Create
derived classes circle, rectangle and trapeziod having overridden function
area and display. Write a program to illustrate use of virtual function.
[6158]-41 4
g) Trace the output and justify
i) # include <iostream.h>
class Base 1
{
Public:
Base 1 ( )
{ cout <<“Base 1’s constructor called”<<endl;}
};
class Base2
{
Public :
Base 2 ( )
{ cout <<“Base 2’s constructor called”<<endl;}
};
class Derived : Public Base 1, Public Base 2
{ Public :
Derived ( )
{
cout << “Derived’s constructor called”<<endl;
}
};
main ( )
{
Derived d;
}
ii) # include < iostream.h>
int x;
main ( )
{
int x = 10;
cout <<“value of x is” << : : x;
cout <<“value of x is: << x;
}
[6158]-41 5
Total No. of Questions : 4] SEAT No. :
P.T.O.
B) Attempt All of the following : [5 × 1 = 5]
a) List different datatypes supported by PHP.
b) Write any two features of HTTP protocol.
c) What is the advantage of default arguments?
d) List different databases supported by PHP.
e) Write statement to create XMLhttpRequest object as per the brower
support.
[6158]-42 2
f) Explain following functions :
i) array_chunk ()
ii) explode()
iii) compact()
iv) list()
g) How variable number of arguments are handled in PHP? Illustrate with
suitable example.
[6158]-42 3
Total No. of Questions : 4] SEAT No. :
P6450 [6158]-43
[Total No. of Pages : 3
[6158]-43 1 P.T.O.
d) __________ is the technique used to extract information from large
number of people.
i) Record review ii) Questionnaires
iii) Observation iv) None of the above
[6158]-43 2
e) Explain XP Model.
a) Consider the following case study & Draw the decision tree.
i) The driver lives in a city with population < 10,000 & he is married.
ii) The driver lives in a city with population < 10,000 and he is married
and his age is above 30 years.
b) Draw context level and 1st level DFD for library management system.
[6158]-43 3