Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Examen

CSE 2221 Midterm 2 2025 UPDATE Verified Questions And Answers | With 100% Correct Answers graded A+ Guaranteed Success!!

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

CSE 2221 Midterm 2 2025 UPDATE Verified Questions And Answers | With 100% Correct Answers graded A+ Guaranteed Success!!

Institución
CSE 2221
Grado
CSE 2221

Vista previa del contenido

CSE 2221 Midterm 2 2025 UPDATE Verified Questions And Answers |
CSE 2221 Midterm 2
With 100% Correct Answers graded A+ Guaranteed Success!!
Study online at https://quizlet.com/_643dbg

1. what is a natural number an integer greater than or equal to 0

2. in the instance method n.method- n; this
Name(arguments); ______ is called the
receiver and the corresponding dis-
tinguished formal parameter has the
name ______-

3. what does "#cat" mean the previous value of cat

4. what does m.add(k) do adds k to value of m (changes value of m but not
value of k)

5. what does m.subtract(k) do subtracts k from value of m (changes value of m but
not of k)

6. what does m.multiply(k) do multiplies m by value of k (changes value of m but
not of k)

7. what does NaturalNumber r = m.di- divides m by k and returns the remainder to variable
vide(k) do r

8. what does m.copyFrom(k) do copies value of k into value of m

9. what does int comp = m.compare- compares value of m to k; if m > k, comp gets set to
To(k) do 1, if equal, comp = 0 and if less than, comp = -1

10. what does m.multiplyBy10(d) do multiplies m by 10 then adds k

11. what does int r = m.divideBy10() do divides m by 10 and sets r equal to the remainder

12. boolean z = m.isZero() returns z to true if m is zero

13. what does m.clear() do sets value of m to zero

1/9

, CSE 2221 Midterm 2
Study online at https://quizlet.com/_643dbg

14. m.transferFrom(k) sets value of m = k and resets k to zero

15. String s = m.toString returns the string version of m to s (ex: if m = 143, s
= "143")

16. primitive types vs reference types primitive types are boolean, char, int, double; refer-
ence types are String, XMLTree, SimpleReader, etc.

17. primitive variable variable of a primitive type (int, double, boolean,
char)

18. reference variable variable of a reference type (XMLTree, String)

19. reference value vs object value object value is the actual value while reference value
is the memory address of the object

20. notation for reference value triangle with arrow pointing to object value

21. when you do String s = t, changing the changes the value of s
value of t ___________

22. when doing NaturalNumber n = z, changes the value of z
changing the value of n ________

23. immutable types vs mutable types immutable types (ex: String, XMLTree, etc.) values
cannot change but mutable types (SimpleRead-
er, NaturalNumber, etc.) values can change via a
method

24. what must you use to see if two .equals()
strings are equal

25. what are the only types that change natural numbers (if a method like increment is used)
when passed into a static method and arrays

2/9

Escuela, estudio y materia

Institución
CSE 2221
Grado
CSE 2221

Información del documento

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

Temas

$15.49
Accede al documento completo:

¿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

Conoce al vendedor
Seller avatar
ExamVault

Conoce al vendedor

Seller avatar
ExamVault Teachme2-tutor
Ver perfil
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
33
Miembro desde
1 año
Número de seguidores
1
Documentos
253
Última venta
5 meses hace

0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

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