C++ SIMP Updated-2023

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

BPLCK205D- Intro to C++ Programming

SIMP Questions -22SCHEME


BY TIE REVIEW TEAM -SVIT and KSIT

Average time to be spent per module- 60 Mins

Module-1(Study any 5 Questions)

1. Explain the overview of C++ language considering a program as an


example,also explain the structure of a C++ Program
2. Explain the following with a programming example
i) Encapsulation
ii) Abstraction and abstract classes
iii) Inheritance
iv) Polymorphism
v)Function overloading
3. What are objects and classes? Explain with examples
4. What is object oriented programming? Explain with example how it is different from
object based programming
5. Explain message passing in with a suitable example
6. Explain the following with a code snippet (i)Methods (ii)Abstract classes

Module-2(Study any 5 Questions)

1. What is a function? How to declare and define functions in C++? Explain with
examples
2. Explain call by reference and value with example
3. List out and explain the different variables and operations used in C++ with examples,
explain briefly the importance of Scope resolution operators
4. What is an inline function? How is it different from normal function?
5. What is function overloading? Explain with examples
6. What is a default argument? Explain with examples.
7. explain C++ Tokens and reference variables in C++ with examples.
Module-3(Study any 5 questions)

1. Explain multilevel and multiple inheritance with the help of programming examples
2. Describe the importance of constructor and destructor. Explain its use with a program
3. illustrate the use of different types of inheritance with a programming example for
each
4. Explain base and derived classes pertaining to inheritance with examples
5. What is hybrid inheritance? Explain with example
6. Differentiate between Single,Multiple Hierarchical and Hybrid Inheritance with
appropriate code snippets -10M

Module-4 (Study any 5/all questions)

1. With a neat diagram, discuss stream class hierarchy in C++.


2. Write the various functions used to open, close, read and write data in text files
3. Explain how to write and read time in/from binary file using fstream using a program
4. What are text files and binary files? Explain with programming examples
5. Explain get (), put( ) and getline( ) functions with examples

Module- 5(Study any 5 questions)

1. Discuss exception handling mechanisms in C++ with snippets


2. Explain exception handling, Write a function which throws a division by zero
exception and catch it in the catch block. Write a C++ program to demonstrate usage
of try, catch and throw to handle exceptions.
3. Discuss catching class types as exceptions and re-throwing an exception with
examples.
4. Explain the use of try, catch and throw statements in exception handling with examples.
5. Explain pre-defined exception in C++ with example
6. Explain how array of bounds exceptions is handled, Write a C++ program function
which handles an array of bounds exceptions using C++.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy