Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

Exam time preparation and important questions

Beoordeling
-
Verkocht
-
Pagina's
28
Geüpload op
13-05-2025
Geschreven in
2024/2025

This document is very useful for the students who are eagerly to study about programming language

Instelling
Vak

Voorbeeld van de inhoud

Object Oriented Programming Concept Using C++
2 Marks Questions & Answers

Basics of OOPs

1. List out the characteristics of FOP.
1. Large programs are divided into smaller programs known as functions.
2. Most of the functions share global data
3. Functions transform data from one form to another.
4. It employs top-down approach.

2. List out the characteristics of OOP.
1. Programs are divided into objects.
2. Data is hidden.
3. Objects communicate with each other, by sending messages and receiving responses.
4. It follows bottom-up approach.

3. List down the basic concepts of OOP.
1. Objects
2. Classes
3. Data abstraction and encapsulation
4. Inheritance
5. Polymorphism
6. Dynamic binding
7. Message passing

4. Define an object.
Objects are the basic run time entities in an object oriented system.
They may represent a person, a place or any item that a program has to handle.

5. Define Object Oriented Programming.
OOP is a method of implementation in which programs are organized as co-operative collection of
objects, each of which represents an instance of some class and whose classes are all members of a
hierarchy of classes united through the property called Inheritance.

6. Define a class.
A class is a collection of objects with similar attributes and operations.
Eg. Class – Account
It will create an object savings_account belonging to the class Account.
7. Define Encapsulation.
The wrapping up of data and functions into a single unit is known as encapsulation. The data is kept safe
from external interference and misuse.

8. Define Data hiding?
The isolation of data from direct access by the program is called as data hiding or information hiding.

,9. Define Abstraction.
It refers to the act of representing essential features without including the background details.

10. Define ADT?
The classes which are using the concept of data abstraction is known as abstract data types (ADT).

11. Define data member and member function?
The attributes which are holding the information is known as data members.
The functions that operate on data member are sometimes called as member function.

12. Define Inheritance?
Inheritance is the process by which objects of one class acquire the properties of objects of another class.
The new derived class inherits the members of the base class and also adds its own.

13. Define Polymorphism?
It allows a single name/operator to be associated with different operations depending on the type of data
passed to it. An operation may exhibit different behaviors in different instances.

14. Define dynamic binding?
Dynamic binding means that the code associated with the given procedure call is not known until the
time of call at runtime.

15. What is message passing?
It is the process of invoking an operation on an object. In response to a message, the corresponding
function is executed in the object.

16. List down the benefits of OOP?
1. The principle of data hiding helps to build secure programs.
2. Through inheritance, redundant code is eliminated.
3. Software complexity can be easily managed.

17. List down the applications of OOP.
1. Real time system
2. Simulation and modeling
3. AI and expert system
4. Neural network programming.
5. CAD/CAM systems.

18. What is Implicit Type Conversion?
When an expression consists of data items of different types, the compiler performs type conversions
automatically. This is referred as Implicit Type Conversion.

19. What are the differences between ‘break’ and ‘continue’ statement.
Break
Break statement takes the control to the outside of loop
It is used in loop and also in switch statement

, continue
Continue statement takes the control to the beginning of loop
It can be used only in loop statement.

20. Distinguish ‘while’ and ‘do – while’ statements.
While
This is the top tested loop
Loop is not executed if the condition is false
do while
This is the bottom tested loop
Loop is executed at least once even though the condition is false.

21. Give the syntax of Array Initialization with an example.
Data-type array-name[size] = {list of values separated by comma};
(eg.) int mark[5] = {96,45,66,74,82};

22. Give four examples for String Manipulation functions.
strlen( ) – finds the length of string
strcpy( ) – copies the contents of one string to another
strcat( ) – concatenates two strings into one single string
strupr( ) – converts a lower case string to upper case

23. List the different types of parameter passing techniques.
(i) Pass by value
(ii) Pass by Address
(iii) Pass by Reference

24. What is Dynamic memory allocation?
Allocation of memory space for any data structure during the course of the program execution is called
as Dynamic memory allocation.

25. How memory management is performed dynamically in C++?
Two operators are available for dynamic memory management.
(i) new – for dynamic memory allocation
(ii) delete – for dynamic memory deallocation


Basics of C++ Language

1. Define class?
A class is a way to bind data and its associated functions together. It allows the data to be hidden if
necessary.

2. What are the parts of class specification?
The class specification has two parts
1. Class declaration – To describe the type and scope of its members

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
13 mei 2025
Aantal pagina's
28
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Onbekend

Onderwerpen

$15.69
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
praveenaadhithya35

Maak kennis met de verkoper

Seller avatar
praveenaadhithya35 (self)
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
3 jaar
Aantal volgers
0
Documenten
2
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen