• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 10 páginas
Examen

Object-Oriented Programming Test Questions And Answers

Document preview thumbnail
Vista previa 2 fuera de 10 páginas

OBJECT-ORIENTED PROGRAMMING TEST QUESTIONS AND ANSWERS...

Vista previa del contenido

OBJECT-ORIENTED PROGRAMMING TEST
QUESTIONS AND ANSWERS


What is OOPS? - ANSWER OOPS- Object Oriented Programming system in
which programs are considered as a collection of objects. Each object is nothing
but an instance of a class.


Write basic concepts of OOPS? - ANSWER Abstraction.
Encapsulation.
Inheritance.
Polymorphism.


What is a class? - ANSWER A class is simply an appearance of any kind of
object. It is a blueprint/plan/template that defines details about an object.


What is an object? - ANSWER An object is an instance of a class. It has its
own state, behavior, and identity.


What is Encapsulation? - ANSWER Encapsulation is an attribute of an object,
and it contains all data which is hidden. That hidden data can be restricted to the
members of that class.


Levels are Public, Protected, Private, Internal and Protected Internal.

, What is Polymorphism? - ANSWER Polymorphism is nothing but assigning
behavior or value in a subclass to something that was already declared in the
main class. Simply, polymorphism takes more than one form.


What is Inheritance? - ANSWER Inheritance is the concept where one class
shares the structure and behaviour defined in another class. If inheritance
applied on one class is called Single Inheritance, and if it depends on multiple
classes, then it is called multiple Inheritance.


What are manipulators? - ANSWER Manipulators are the functions which can
be used in conjunction with the insertion (<<) and extraction (>>) operators on
an object. Examples are endl and setw.


Define a constructor? - ANSWER A constructor is a method used to initialize
the state of an object, and it gets invoked at the time of object creation. Rules
for constructor are:


- The name of Constructor should be the same as that of class name.
- A constructor does not have any return type.


Define Destructor? - ANSWER A destructor is a method which is
automatically called when the object is made of scope or destroyed. Destructor
name is also the same as class name but with the tilde symbol before the name.


What is an Inline function? - ANSWER An inline function is a technique used
by the compilers and instructs to insert complete body of the function wherever
that function is used in the program source code.

Información del documento

Subido en
10 de enero de 2025
Número de páginas
10
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$11.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
luzlinkuz
3.8
(333)
Vendido
1626
Seguidores
853
Artículos
32825
Última venta
2 días hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes