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 205 Midterm Review UPDATED ACTUAL Exam Questions and CORRECT Answers

Puntuación
-
Vendido
-
Páginas
21
Grado
A+
Subido en
20-08-2025
Escrito en
2025/2026

CSE 205 Midterm Review UPDATED ACTUAL Exam Questions and CORRECT Answers Evaluate the following code to determine the output. class Foo { public int i = 62; public Foo(int i) { this.i = i; } } ... Foo x = new Foo(15), y = new Foo(50);

Mostrar más Leer menos
Institución
CSE 205
Grado
CSE 205

Vista previa del contenido

CSE 205 Midterm Review UPDATED
ACTUAL Exam Questions and CORRECT
Answers
Evaluate the following code to determine the output.


class Foo {
public int i = 62;


public Foo(int i) {
this.i = i;
}
}
...
Foo x = new Foo(15), y = new Foo(50);
y.i = x.i;
y.i = 10;

System.out.println(x.i); - CORRECT ANSWER - 15



Which of the following are valid Java Identifiers? - CORRECT ANSWER - - Names can
CONTAIN letters, digits, underscores, and dollar signs
- Names MUST begin with a letter
- Names 'should' start with a lowercase letter and it cannot contain whitespace
- Reserved words (like Java keywords, such as int or boolean) cannot be used as names


Ex. of proper identifiers:
SpEcIaL_vAlUe
a555c

,Tax
age1


What will be the output of this code?
int a = 5;
int x = a;
a = 10;

System.out.print(x); - CORRECT ANSWER - 5


Given the following int (integer) variables, a = 15, b = 46, c = 4, d = 5, evaluate the expression:


a + b % (c * d) - CORRECT ANSWER - 21


(T/F) Evaluate this logical expression:


true || ! false - CORRECT ANSWER - True



(T/F) Evaluate this expression: 3 <= 2 - CORRECT ANSWER - False



(T/F) Evaluate this expression: 8 + 7 > 5 && 16 - 5 <= 8 - CORRECT ANSWER - False


Which of the following are Java primitive data types? Choose all that apply. - CORRECT
ANSWER - Float, Double, Boolean, Char


Which of the following Java literals have the data type boolean? Choose all that apply. -
CORRECT ANSWER - true, false


(boolean is true / false)

, When the following expression is evaluated, the result will be what Java data type?


"-48" + "1" - CORRECT ANSWER - String


Which of the following would be the best data type for a variable to store a book title? -
CORRECT ANSWER - String


Write a line of Java code that will declare a int variable named y that is initialized to the value -
80. - CORRECT ANSWER - int y = -80;


What is the output of this Java program?


class Driver {
public static void main(String[] args) {
foo(6);
bar(8);
}
static void foo(int a) {
System.out.print(a);
bar(a - 1);
}
static void bar(int a) {
System.out.print(a);
}

} - CORRECT ANSWER - 658


What is the output of this Java program?

Escuela, estudio y materia

Institución
CSE 205
Grado
CSE 205

Información del documento

Subido en
20 de agosto de 2025
Número de páginas
21
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$13.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


Documento también disponible en un lote

Thumbnail
Package deal
CSE 205 Bundled Exam Questions WITH CORRECT Answers
-
25 2025
$ 118.89 Más información

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.
MGRADES Stanford University
Ver perfil
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
1459
Miembro desde
2 año
Número de seguidores
105
Documentos
97742
Última venta
1 día hace
MGRADES

Welcome to MGRADES ,Based at Stanford University in California. I guarantee success and you may end up coming back again and again. We do this for you . We offer the best study and exam materials for a wide range of courses and units. Make your study sessions more efficient and effective. Dive in and discover all you need to excel in your academic journey!

3.8

235 reseñas

5
97
4
50
3
53
2
15
1
20

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