• ¿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 4 fuera de 55 páginas
Examen

java exam, computer science final, oop practice test, data structures exam, java programming, cse 205, object oriented programming, software engineering, java study guide, university exam, programming test, college exam, asu cse, computer science students

Document preview thumbnail
Vista previa 4 fuera de 55 páginas

Download the complete CSE 205 Final Exam with verified correct answers for 2025. Covers Java OOP, inheritance, polymorphism, recursion, data structures (stacks, queues, linked lists), JavaFX GUI, exception handling, software engineering principles, and more. Ideal for computer science students studying object-oriented programming.

Vista previa del contenido

CSE 205 Final with correct answers
2025

Havingvmultiplevclassvmethodsvofvthevsamevnamevwhereveachvmethodvhasvavdifferentvnumbervofvo
rvtypevofvparametersvisvknownvas



a)vmethodvoverloading

b)vEncapsulation

c)vimporting

d)vinformationvhiding

e)vencapsulationv-vcorrect-answersv-a)vmethodvoverloading



Thevrelationshipvbetweenvavclassvandvanvobjectvisvbestvdescribedvas



a)vobjectsvarevinstancesvofvclasses

b)vclassesvarevinstancesvofvobjects

c)vclassesvarevprogramsvwhilevobjectsvarevvariables

d)vobjectsvandvclassesvarevthevsamevthing

e)vobjectsvarevthevinstancevdatavofvclassesv-vcorrect-answersv-a)vobjectsvarevinstancesvofvclasses

,Tovdefinevavclassvthatvwillvrepresentvavcar,vwhichvofvthevfollowingvdefinitionsvisvmostvappropriate?



a)vpublicvclassvCAR

b)vpublicvclassvcar

c)vprivatevclassvcar

d)vprivatevclassvCar

e)vpublicvclassvCarv-vcorrect-answersv-e)vpublicvclassvCar



WhichvofvthevfollowingvreservedvwordsvinvJavavisvusedvtovcreatevanvinstancevofvavclass?



a)vnew

b)vpublic

c)vpublicvorvprivate,veithervcouldvbevused

d)vclass

e)vimportv-vcorrect-answersv-a)vnew



WhatvdoesvacronymvAPIvstandsvfor?

a)vApplicationvParametervInternet

b)vApplicationvProgrammingvInterface

c)vApplyvProgrammingvInteractive

d)vAbstractionvProgrammingvInterfacev-vcorrect-answersv-b)vApplicationvProgrammingvInterface



Avclass'vconstructorvusuallyvdefines



a)vhowvanvobjectvisvinitialized

b)vhowvanvobjectvisvinterfaced

,c)vifvthevinstancevdatavarevaccessiblevoutsidevofvthevobjectvdirectly

d)vthevnumbervofvmethodsvinvthevclass

e)vthevnumbervofvinstancevdatavinvthevclassv-vcorrect-answersv-a)vhowvanvobjectvisvinitialized



Javavmethodsvcanvreturnvonlyvprimitivevtypesv(int,vdouble,vfloat,vchar,vboolean,vetc).



True

Falsev-vcorrect-answersv-False



AllvJavavclassesvmustvcontainvavmainvmethodvwhichvisvthevfirstvmethodvexecutedvwhenvthevJavavcla
ssvisvcalledvupon.



True

Falsev-vcorrect-answersv-False



usevthevfollowingvclassvdefinition

importvjava.text.DecimalFormat;

publicvclassvStudent

{vprivatevStringvname;

v privatevStringvmajor;

v privatevdoublevgpa;

v privatevintvhours;

v publicvStudent(StringvnewName,vStringvnewMajor,vdoublevnewGPA,vintvnewHours)

v v { namev=vnewName;

v majorv=vnewMajor;

v gpav=vnewGPA;

, v hoursv=vnewHours;

v }

v publicvStringvtoString(v)

v v { DecimalFormatvdfv=vnewvDecimalFormat("0.000");

v returnvnamev+v"\n"v+vmajorv+v"\n"v+vdf.format(gpa)v+v"\n"v+vhours

v }

}

WhichvofvthevfollowingvcouldvbevusedvtovinstantiatevavnewvStudentvs1?



a)vnewvStudent(s1);

b)vnewvStudentvs1v=v("JanevDoe",v"ComputervScience",v3.333,v33);

c)vStudentvs1v=vnewvStudent("JanevDoe",v"ComputervScience",v3.333,v33);

d)vStudentvs1v=vnewvStudent(v);

e)vs1v=vnewvStudent(v);v-vcorrect-answersv-
c)vStudentvs1v=vnewvStudent("JanevDoe",v"ComputervScience",v3.333,v33);



Considervavmethodvdefinedvwithvthevheader:vpublicvvoidvfoo(intva,vintvb).vWhichvofvthevfollowingvm
ethodvcallsvisvlegal?

a)vfoo(0v/v1,v2v*v3);

b)vfoo(0,v0.1);

c)vfoo(0);

d)vfoo(1v+v2,v3v*v0.1);

e)vfoo(v);v-vcorrect-answersv-a)vfoo(0v/v1,v2v*v3);



Usevthevfollowingvpartialvclassvdefinitions:v

publicvclassvA1v

{v

Información del documento

Subido en
14 de diciembre de 2025
Número de páginas
55
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$15.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.
LYKTETSOS
2.0
(1)
Vendido
20
Seguidores
8
Artículos
1541
Última venta
1 semana 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