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 consisting of TEN questions carrying
TWO
marks each.
2.
SECTION-B contains SIX questions carrying TEN marks each and students has to
attempt any FOUR questions.
SECTION-A
l.
Write briefly :
(a)
What is the difference between variable and constant? Explain with example.
(b)
What are escape sequences? What is their role in C++?
(c)
Define preprocessor directives. Why are they required in C++ Programs?
(d)
What is unary and binary operator overloading? Explain.
(e)
What are various pitfall of operator overloading?
(f)
Explain any three string function by taking suitable examples.
(g)
What are various data types available in C++?
(h)
What are streams in C++? Explain various types of streams.
(i)
What are public and private access specifies? Explain difference between
them.
(j)
What do you mean by error? Give various types of error a C++
program can have.
SECTION–B
2.
What is object-oriented programming? Discuss the salient features of object
oriented programming with examples from C++.
3.
Define and distinguish between operators overloading and function overloading.
How unary and binary operators are overloaded?
4.
Write a note on the following :
a)
Array of Structure.
b)
Break and continue statement.
5.
What is reusability? How inheritance implements the concept of reusability in
C++? Also explain various types of inheritance by taking suitable examples.
6.
Write a program in C++ to count the frequency of vowels in a given string.
7.
Write a note on the following :
a)
Arithmetic Operators and expression.
b)
Decision making statements.
0 comments:
Post a Comment
North India Campus