0% found this document useful (0 votes)
63 views2 pages

Sem2 C++ Complete Questions

Uploaded by

Aneesh Shinde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views2 pages

Sem2 C++ Complete Questions

Uploaded by

Aneesh Shinde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

SEM 2 C++ SET 2

Q1. Answer the following


1. What is friend function? Write a program to display mark sheets of FYIT students.
2. Explain class and objects with a suitable program.
3. Explain access specifier and Explain public, private, protect with suitable program.
4. Explain encapsulation with a suitable program.
5. What is polymorphism? Define the term dynamic binding and message passing.
6. What is object-oriented development?Benefits and application of object-oriented
programming.
7. What is object-oriented development? Write features of object oriented programming?
8. Write a short note on a)Data abstraction b)Encapsulation c)Member function d)Passing
object as an argument.
9. Write down advantages and disadvantages of procedure-oriented programming
language

Q2. Answer the following


1. What is the constructor state its characteristic.
2. Explain the concept of operator overloading? Write down the rules for operator
overloading?
3. Explain this pointer with a suitable example.
4. Explain destructor with a suitable example.
5. Explain pure virtual function and static function.
6. What is data type in C++? Explain the categories of data type? Explain arithmetic
operator with suitable example.
7. Write a short note on default constructor, parameterized constructor and write a simple
program for constructor.
8. Explain function overloading.

Q3. Answer the following


1. Explain multi-level inheritance with a suitable example.
2. Explain the use of throw and catch keywords with proper syntax.
3. Explain single inheritance with an example program.
4. What is an exception? What are different types of error explain in brief?
5. C++ program to handle various exception handling by using exception handling
mechanism?
6. Explain types of inheritance in brief.
7. When should a program throw a exception? What are the advantages of using exception
handling in a program.
Q4. Answer the following
1. Explain file pointer in brief. Write a program to write in a file.
2. Write a program to create a file.
3. What is file and file names write a syntax to set a path?
4. Why do we use file handling concept in C++.
5. What are the file operations? Explain different modes of files.
6. What function do we use in file handling explain in brief?
7. What are the file operators in C++? Write the syntax to open a file.
8. Differentiate between function template and class template

Q5. Answer the following


1. Explain for loop and function template briefly.
2. Explain If statement in C++ with a suitable example.
3. Explain terminating loops and skipping conditions.
4. Explain Nested if else statement with suitable example.
5. Explain if else statement with a suitable example program.
6. Explain order of operations in brief.
7. Explain terminating loops and skipping conditions in brief.
8. Write a program on a class template

You might also like