Roll No.
Total No. of Questions : 07
BCA
(Sem.–3rd)
OBJECT
ORIENTED PROGRAMMIGN USING C++
Subject
Code : BC-304
Paper
ID : [B0212]
Time : 3 Hrs.
INSTRUCTION TO CANDIDATES :
1.
Section-A is compulsory.
2.
Attempt any Four questions form Section-B.
SECTION-A
Q1)
a)
What are tokens in C++? Explain with example.
b)
What are logical operators in C++? Explain.
c)
What is general structure of C++ program?
d)
What is an object? What is the relationship between an object and class?
e)
What are arithmetic and relational expression? Explain.
f)
Write a program in C++ to generate the Fibonacci series as shown below
: 0112358132134.
g)
An unsigned int can be twice as large as the signed int. Explain how?
h)
What are pointers? Explain various advantages of pointers.
i)
Why do we need the preprocessor directive # include <iostream.h>?
j)
What is a class? How does it accomplish data hiding?
Section
- B
Q2)
Define OOP? Explain various advantages of C++ over C programming language.
Explain various data types support in C++ with their memory consumption.
Give examples to support your answer'
Q3)
What is a Function? How functions are declared and defined in C++? With the
help of suitable examples, define and distinguish between parameter passing’ by
value, address and reference'
Q4)
Write a note on the following :
(a)
C++ stream classes
(b)
Decision making statements.
Q5)
What are constructor and destructor? Explain their properties. Write a program
to add two numbers by using the concept of constructor.
Q6)
Explain the various functions involved in opening and closing a sequential file
in C++. Explain how an array of class objects can be stored and retrieved from
a file.
Q7)
Write a note on the following :
(a)
Inline Function.
(b)
Array and String Functions.
0 comments:
Post a Comment
North India Campus