Search Your Paper

Showing posts with label Object Oriented Programming Using C Plus Plus BCA 3rd. Show all posts
Showing posts with label Object Oriented Programming Using C Plus Plus BCA 3rd. Show all posts

Friday, September 2, 2016

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) Write about if-else construct.
b) What do you mean by data hiding in C++?
c) What are some advantages/disadvantages of using friend functions?
d) How the end of file can be detected?
e) What do you mean by pure virtual function?
f) Can I overload the destructor of class? Support your answer.
g) What do you mean by new and delete operator?
h) Define the use of structure in file operations.
i) How 2-Dimensional Array can be declared in C++?
j) Define Static Functions.
SECTION-B

2. What are the main characteristics of an object oriented programming? Discuss basic structure of C++ program with example.

3. How you will define a function? Explain the concept of "Pass by value" and "Pass by reference" with suitable example.

4. What purpose is served by constructors and destructors? List the rules while writing a constructor function. Explain with help of an example.

5. Define inheritance. What are various types of inheritance that can be implemented in C++? Discuss with examples.

6. How to copy contents of one file to another through C++ program?

7. Define Polymorphism. Discuss with example how it can be implemented in C++?



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
1.                  
a.                 Define the term Data Hiding.
b.                 Explain #define directives.
c.                  What are advantages of using functions?
d.                 Explain Switch statement.
e.                  What is operator overloading?
f.                   Explain various types of constructors in C++
g.                 Discuss the use of Inheritance in Programming.
h.                 What are pure virtual functions?
i.                   What is open() function?
j.                    What do you mean by input and Output streams?

Section –B

2.   Explain various Control Structure in C++ with example.

3. What is Pointer? Explain Pointer Arithmetic.

4.                   
       a.                 What do you mean by class? How it is declared?
       b.                 Difference between private and public Class

5. Explain with example how to overload Unary Operator?

6. Define Inheritance and its types. Discuss multiple and multilevel inheritance by an example?

7.                  
       a.      Explain the following functions
            Tellg() , seekg(), read(), write()

       
       b.     Explain input and Output Redirection.



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. 



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
Q. 1.
(a) Can we overload destructor in C+? Why or why not.
(b) Differentiate between + and +.
(c) What is Early Binding?
(d) What do you understand by Pas By Reference?
(e) What are Local and Global variables?
(f) What is Dynamic Memory Allocation?
(g) Write down the syntax to create a class and object.
(h) What is Base and Derived Class?
(i) What do you understand by Streams?
(j) What in Buffer?
Section-B

Q. 2. (a) Why it is necessary to include header files at the beginning of the program? What role they                 play?
         (b) Differentiate between a structure and a class.

Q. 3. (a) What are visibility modes in C+?
        (b) Differentiate between C and C+.

Q. 4. How can you overload Unary operators? Discus with C+ program.

Q. 5. Define a constructor. What purpose does it serve? How will you declare a constructor? Explain with example.

Q. 6. What is Inheritance? What are its different types? Also write C+ program to implement multilevel inheritance.


Q. 7. Write a note on 

      (a) Virtual Functions (b) Copy Constructor



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) Define multiple – inheritance.
 b) Define operator overloading.
 c) Define virtual function.
 d) Define friend function.
 e) Define Static function.
 f) Define function overloading.
 g) Differentiate between call by value and call by reference.
 h) What is pointer?
 i) What is a constructor?
 j) What is redirection? Explain.
Section - B

Q2) Why there is a need of Object Oriented Language? Explain encapsulation, polymorphism and inheritance.

Q3) Explain various loop control and jump statements in C++

Q4) What are the uses of recursion? Write a recursive program in C++ to findfactorial of a given number.

Q5) What are the uses of functions? Explain function overloading andoverriding with examples.

Q6) What is the difference between public class, private class, protected classand static class? Explain.


Q7) Explain different types of inheritance with examples. 



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 preprocessor directives?
b) What is function?
c) What is the syntax to overload an operator?
d) What is static function?
e) Define variable.
f) What is the use of buffer?
g) What is class?
h) Define and declare string.
i) What is the use of friend class?
j) What is the use of protected access specifies?

Section - B

Q2) What is the difference between structure and union? Explain both of them with example and syntax.

Q3) What is inheritance? What are the different types of it? What do you mean by ambiguity in inheritance?

Q4) What is file handling? What are the various operations of file? Write a small program to read the name of a student from a file.

Q5) What are the various control and conditional statements in C++? Explain the use of break and continue statement.

Q6) What is an array? What is various type of array? Write a program ro arrange a list of elements in ascending order.


Q7) What is constructor? Write a small program to demonstrate copy constructor and destructor.



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
1.
a) What do you mean by header file?
b) What are function prototypes?
c) What is the significance of access specifies in a class?
d) What are some advantages/disadvantages of using friend functions?
e) How many ways are there to initialize an int with a constant?
f) Write a declaratory for a pure virtual function called purevar0 that returns
type void and takes one argument of type int.
g) What do you mean by pure virtual function?
h) Can I overload the destructor for my class? Support your answer.
i) What do you mean by new and delete operator?
j) Differentiate between macros and functions?

Section - B

Q2) What are the main characteristics of an object oriented programming? Compare them with the structured programming?

Q3) What is a class? Give an advantage of having classes in a program. How does it accomplish data hiding?

Q4) What do you mean by recursion? Write a program in C ++ to find the GCD of two numbers using recursion.

Q5) What is multiple inheritance? How it is realized in C++? Give suitable examples.

Q6) What purpose is served by constructors and destructors? Can we overload them?

Q7) Write a C++ program that prompts the user to enter the name of two files, and copies the contents of the first file into the second file. Your program should be able to handle any kind of error that occurs during the course of program execution.



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.



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

Ql)
a) How the end of file can be detected?
b) Write about if --else construct.
c) What are inline functions?
d) Define the use of structure in file operations'
e) Name two objects of stream class associated with the standard device
for error messages
f)Describe the "kind of' class relationship. Give an example.
g) What are manipulators?
h) Write about sequential input output operations'
i) How is a static variable different from a static function.
j) What are the advantages/disadvantages of using friend functions?

Section - B

Q2) Explain the essential characteristics that an object oriented program should support?

Q3) Explain tire user defined data types. How are they used to declare built in data types?

Q4) What are constructors? Flow to declare a constructor? List the rules while writing a constructor function. Explain with help of an example.

Q5) Define inheritance. What is the inheritance mechanism in C++? What should be the structure of a clas5 when it has to be base for other classes?

Q6) (a) Explain the differences between passing arguments "by reference" and "by addresses" to functions.
(b) What is meant by abstract base class? Explain.


Q7) What is the difference between Static binding and Run time binding? Explain with a suitable C++ code.

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) Differentiate between class and object.
b) Explain the various control structures of C++.
c) What do you mean by header file?
d) What are function prototypes?
e) What are some advantages / disadvantages of using friend functions?
f) How many ways are there to initialize an int with a constant?
g) What do you mean by data hiding in C++?
h) Explain the role of file iostream.h in C++.
i) What do you mean by new and delete operator?
j) Differentiate between macros and functions.

Section - B

Q2) What are the main characteristics of an object oriented programming? Compare them with the structured programming?

Q3) Can we use the same function name for a member function of a class and outside function in the same program file? If yes how are they distinguished? If no, give reasons.

Q4) What do you mean by recursion? Write a program in C** to find the GCD of two numbers using recursion

Q5) What is multiple inheritance? How it is realized in C++? Give suitable examples

Q6) Explain the use of virtual and static functions. Give at least example in each case.


Q7) Write a C*i program that prompts the user to enter the name of two files, and copies the contents of the first file into the second file. Your program should be able to handle any kind of error that occr.trs during the course of program execution.

Popular

Archive

North India Campus. Powered by Blogger.

Welcome to North India Campus

Search Question Paper

Labels

1ST Semester M.SC IT(D) 1ST Semester MBA 1st & 2nd Semester BE 1st Semester B.Com 1st Semester BBA 1st Semester BCA (D) 1st Semester Bsc. IT (D) 1st Semester Bsc. IT 1 1st Semester M.Tech 1st Semester MCA 1st Semester MCA (D) 2nd Sem B.Com 2nd Sem BB 2nd Sem BBA 2nd Sem BCA 2nd Sem BCA (D) 2nd Sem BSC IT(D) 2nd Sem BSC(IT) 2nd Semester MBA A Foundation Course in Human Values and Professional Ethics ACCOUNTING FOR MANAGEMENT ADVANCE SOFTWARE ENGINEERING ADVANCED COMMUNICATION SYSTEMS ADVANCED MATHEMATICS FOR ENGINEERS Accounting and Financial Management Accounting and Financial Managementm Adolescence And Family Education B.Ed (Dec 2013) Adolescence And Family Education B.Ed (Dec 2014) Adolescence and Family Education B.Ed (2012) Advanced Accounting 2 Aligarh Muslim University Applied Physics 1 B.Ed (Dec 2008) B.Ed (Dec 2009) B.Ed (Dec 2011) B.Ed (Dec 2012) B.Ed (Dec 2013) B.Ed (Dec 2014) B.Ed (June 2008) B.Ed (June 2009) B.Ed (June 2015) BA 1 Syllabus BBA 1 BBA 2 BCA Question Papers BCA Syllabus 1 Bachelor in Science Fashion and Technology Basic Accounting Basic Chemistry Basic Electrical Engineering Basic Electronics Basic Mathematics BSC 1 Basoc Accounting Bridge Course in Mathematics Bsc.IT Business Communication-1 Business Communication-2 Business Communication-I 2 Business Environment 2 Business Laws 1 Business Mathematics Business Organisation and Management Business Statistics 2 C C Programming C Programming Bsc IT 1 C Programming Lecture Videos CADM 1st Semester Communication 2 Communication Skills Communication Skills 1 Communication and Soft Skills Communicative English Computer Applications Computer Fundamental Computer Graphics Video Lecture Computer In Education B.Ed (Dec 2013) Computer Mathematical Foundation MCA D Computer Networks 1st Semester Computer Operating System Computer Organization and Assembly Language Computer System Architecture 2 Computer and Education B.Ed (Dec 2011) Computer and Education B.Ed (Dec 2012) Computer in Education B.Ed (Dec 2008) Computer in Education B.Ed (Dec 2009) Computer in Education B.Ed (Dec 2014) Corporate Accounting Curriculum and Instruction B.Ed (Dec 2009) Curriculum and Instruction B.Ed (Dec 2011) Curriculum and Instruction B.Ed (Dec 2012) Curriculum and Instruction B.Ed (Dec 2013) Curriculum and Instruction B.Ed (Dec 2014) Curriculuman and Instruction B.Ed (Dec 2008) DATA COMMUNICATION NETWORK Data Structure 2 Data Structures 2 Data Structures Through C 2 Database Management with Microsoft Access Bsc IT 1 Delhi University News Desktop Publishing Tools 2 Digital Circuits and Logic Design 2 Digital Circuits and Logic Design 2 BCA D Digital Electronics 2 Digital Electronics Fundamentals 2 Distance Education B.Ed (Dec 2008) Distance Education B.Ed (Dec 2009) Distance Education B.Ed (Dec 2011) Distance Education B.Ed (Dec 2012) Distance Education B.Ed (Dec 2013) Distance Education B.Ed (Dec 2014) Dot Net Interview Questions & Answers. ELECTRONICS SYSTEM DESIGN Education Technology B.Ed (Dec 2009) Education and Evaluation B.Ed (Dec 2009) Education and Society B.Ed (Dec 2008) Education and Society B.Ed (Dec 2009) Education and Society B.Ed (Dec 2011) Education and Society B.Ed (Dec 2012) Education and Society B.Ed (Dec 2013) Education and Society B.Ed (Dec 2014) Educational Evaluation B.Ed (Dec 2008) Educational Evaluation B.Ed (Dec 2011) Educational Evaluation B.Ed (Dec 2012) Educational Evaluation B.Ed (Dec 2013) Educational Evaluation B.Ed (Dec 2014) Educational Technology B.Ed (Dec 2008) Educational Technology B.Ed (Dec 2011) Educational Technology B.Ed (Dec 2012) Educational Technology B.Ed (Dec 2013) Engineering Drawing and Graphics Engineering Mathematics Engineering Question Paper set 1 Engineering Syllabus English and Communication Skills English and Communication Skills 2 Environmental Science 2 Finaicial Accounting Financial Accounting Financial Management 2 Sem Fundamentals of Information Technology Bsc 1 Guidance and Counseling B.Ed (Dec 2008) Guidance and Counseling B.Ed (Dec 2011) Guidance and Counseling B.Ed (Dec 2012) Guidance and Counseling B.Ed (Dec 2013) Guidance and counseling B.Ed (Dec 2009) HIV and Aids Education B.Ed (Dec 2011) HIV and Aids Education B.Ed (Dec 2012) HIV and Aids Education B.Ed (Dec 2013) HP University News Hotel Management and Air Lines Syllabus Human Resource Management Human Resource Management 2 Information Management Information Technology for Management Intoduction to microprocessor 2 BCA D Introduction of Computers BBA1 Introduction to Computers 2 Introduction to I.T MCA D Introduction to Information Technology Introduction to Information Technology(BCA) Kurukshetra University News Lecture 20 Clipping -- Lines And Polygons MBA Papers MCA Notes MCA Question Papers Macro Economics 2 Management Syllabus Managerial Economics Marketing Management 2 Master Of Technology M-Tech Syllabus Mercantile Law 2 Metal Cutting Question Paper Metal Forming Question Paper Micro Economics NEURAL NETWORKS & FUZZY LOGIC Network Security OOP CPP 2 Object Oriented Programming in C++ Object Oriented Programming in Cpp Operating System Bsc IT 1 Operating system (BCA) Organisational Behaviour Organization Behaviour 2 Other Universities Others PCM 2 BCA D PGDCA PTU Affiliated Colleges of Integerated College PTU Affiliated Colleges of Management College PTU Affiliated Colleges of Architecture PTU Affiliated Colleges of Engineering PTU Affiliated Colleges of Pharmacy College PTU Forms Download PTU News and Events Panjab University News Pharmacy Syllabus Principles and Practices of Management Production and Operations Management 2 Programming Logic Development with C Programming in C Programming in C MCA D Psychology of Learning and Development B.Ed (Dec 2013) Psychology of Learning and Development B.Ed (Dec 2008) Psychology of Learning and Development B.Ed (Dec 2009) Psychology of Learning and Development B.Ed (Dec 2011) Psychology of Learning and Development B.Ed (Dec 2012) Quantitative Techniques RDBMS 2 RDBMS-I 2 Relational Database Management System Research Methodology 2 SAD 2 BCA D Syllabus of Computer Applications Syllabus of Journalism and Mass Communication Syllabus of Medical Laboratory Science System Analysis and Design System Analysis and Design 2 System Analysis and Design MCA D Teacher and School B.Ed (Dec 2008) Teacher and School B.Ed (Dec 2009) Teacher and School B.Ed (Dec 2011) Teacher and School B.Ed (Dec 2012) Teacher and School B.Ed (Dec 2013) Teacher of English B.Ed (Dec 2009) Teaching of English B.Ed (Dec 2008) Teaching of English B.Ed (Dec 2011) Teaching of English B.Ed (Dec 2012) Teaching of English B.Ed (Dec 2013) Teaching of Mathematics B.Ed (Dec 2009) Teaching of Mathematics B.Ed (Dec 2011) Teaching of Mathematics B.Ed (Dec 2012) Teaching of Mathematics B.Ed (Dec 2013) Teaching of Science B.Ed (Dec 2008) Teaching of Science B.Ed (Dec 2009) Teaching of Science B.Ed (Dec 2011) Teaching of Science B.Ed (Dec 2012) Teaching of Science B.Ed (Dec 2013) Teaching of Social Studies B.Ed (Dec 2008) Teaching of Social Studies B.Ed (Dec 2011) Teaching of Social Studies B.Ed (Dec 2012) Teaching of Social Studiess B.Ed (Dec 2013) Teaching of Social Study B.Ed (Dec 2009) Technical Communication UGC NET Computer Science Question Paper Uttarakhand Open University Video Lecture Web Technologies 1st Semester Web Technologies 2 Welding Technology Question Paper Workshop on IT and E-Commerce 2 data structures 2 BCA D principles of management 2