100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Examen

CSE 205 Final Questions and Answers 100% Solved

Puntuación
-
Vendido
-
Páginas
33
Grado
A+
Subido en
04-07-2025
Escrito en
2024/2025

Exam of 33 pages for the course CSE at CSE (CSE 205 Final)

Institución
CSE
Grado
CSE











Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
CSE
Grado
CSE

Información del documento

Subido en
4 de julio de 2025
Número de páginas
33
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

CSE 205 Final

Having multiple class methods of the same name where each method has a different
number of or type of parameters is known as

a) method overloading
b) Encapsulation
c) importing
d) information hiding
e) encapsulation – answer a) method overloading

The relationship between a class and an object is best described as

a) objects are instances of classes
b) classes are instances of objects
c) classes are programs while objects are variables
d) objects and classes are the same thing
e) objects are the instance data of classes – answer a) objects are instances of classes

To define a class that will represent a car, which of the following definitions is most
appropriate?

a) public class CAR
b) public class car
c) private class car
d) private class Car
e) public class Car - answere) public class Car

Which of the following reserved words in Java is used to create an instance of a class?

a) new
b) public
c) public or private, either could be used
d) class
e) import - answera) new

What does acronym API stands for?
a) Application Parameter Internet
b) Application Programming Interface
c) Apply Programming Interactive
d) Abstraction Programming Interface - answerb) Application Programming Interface

A class' constructor usually defines

,a) how an object is initialized
b) how an object is interfaced
c) if the instance data are accessible outside of the object directly
d) the number of methods in the class
e) the number of instance data in the class - answera) how an object is initialized

Java methods can return only primitive types (int, double, float, char, boolean, etc).

True
False - answerFalse

All Java classes must contain a main method which is the first method executed when
the Java class is called upon.

True
False - answerFalse

use the following class definition
import java.text.DecimalFormat;
public class Student
{ private String name;
private String major;
private double gpa;
private int hours;
public Student(String newName, String newMajor, double newGPA, int newHours)
{ name = newName;
major = newMajor;
gpa = newGPA;
hours = newHours;
}
public String toString( )
{ DecimalFormat df = new DecimalFormat("0.000");
return name + "\n" + major + "\n" + df.format(gpa) + "\n" + hours
}
}
Which of the following could be used to instantiate a new Student s1?

a) new Student(s1);
b) new Student s1 = ("Jane Doe", "Computer Science", 3.333, 33);
c) Student s1 = new Student("Jane Doe", "Computer Science", 3.333, 33);
d) Student s1 = new Student( );
e) s1 = new Student( ); - answerc) Student s1 = new Student("Jane Doe", "Computer
Science", 3.333, 33);

,Consider a method defined with the header: public void foo(int a, int b). Which of the
following method calls is legal?
a) foo(, 2 * 3);
b) foo(0, 0.1);
c) foo(0);
d) foo(1 + 2, 3 * 0.1);
e) foo( ); - answera) foo(, 2 * 3);

Use the following partial class definitions:
public class A1
{
public int x;
private int y;
protected int z;
...
}
public class A2 extends A1
{
protected int a;
private int b;
...
}
public class A3 extends A2
{
private int q;
...
}
Which of the following is true with respect to A1, A2 and A3?

a) A2 and A3 are both subclasses of A1
b) A1 and A2 are both subclasses of A3
c) A1 is a subclass of A2 and A2 is a subclass of A3
d) A3 is a subclass of A2 and A2 is a subclass of A1 - answerd) A3 is a subclass of A2
and A2 is a subclass of A1

Use the following partial class definitions:
public class A1
{
public int x;
private int y;
protected int z;
...
}
public class A2 extends A1
{
protected int a;

, private int b;
...
}
public class A3 extends A2
{
private int q;
...
}
Which of the following lists of instance data are accessible in class A2?

a) z, a, b
b) x, y, z, a
c) x, y, z, a, b
d) a, b
e) x, z, a, b - answere) x, z, a, b

Use the following partial class definitions:
public class A1
{
public int x;
private int y;
protected int z;
...
}
public class A2 extends A1
{
protected int a;
private int b;
...
}
public class A3 extends A2
{
private int q;
...
}
Which of the following lists of instance data are accessible in A3?

a) x, z, a, q
b) x, y, z, a, b, q
c) a, q
d) x, a, q
e) a, b, q - answera) x, z, a, q

Use the following partial class definitions:
public class A1
{
14,02 €
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Conoce al vendedor

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.
julianah420 Phoenix University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
652
Miembro desde
2 año
Número de seguidores
323
Documentos
33704
Última venta
1 día hace
NURSING,TESTBANKS,ASSIGNMENT,AQA AND ALL REVISION MATERIALS

On this page, you find all documents, package deals, and flashcards offered by seller julianah420

4,3

147 reseñas

5
101
4
20
3
7
2
5
1
14

Recientemente visto por ti

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