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

COSC 2436 - Exam 1 Questions and Answers

Puntuación
-
Vendido
-
Páginas
16
Grado
A+
Subido en
06-12-2025
Escrito en
2025/2026

COSC 2436 - Exam 1 Questions and Answers

Institución
COSC
Grado
COSC










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

Escuela, estudio y materia

Institución
COSC
Grado
COSC

Información del documento

Subido en
6 de diciembre de 2025
Número de páginas
16
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

COSC 2436 - Exam 1 Questions and
Answers16

Given the following code, what will be the value of finalAmount when it is displayed?



public class Order

{

private int orderNum;

private double orderAmount;

private double orderDiscount;

public Order(int orderNumber, double orderAmt, double orderDisc)

{

orderNum = orderNumber;

orderAmount = orderAmt;

orderDiscount = orderDisc;

}

public int getOrderAmount()

{

return orderAmount;

}

public int getOrderDisc()

{

return orderDisc;

}

}

,public class CustomerOrder

{

public static void main(String[] args)

{

int ordNum = 1234;

double ordAmount = 580.00;

double discountPer = .1;

Order order;

double finalAmount = order.getOrderAmount() —

order.getOrderAmount() * order.getOrderDisc();

System.out.printf("Final order amount = $%,.2f\n", finalAmount);

}

}



A) 528.00

B) 580.00

C) There is no value because the constructor has an error.

D) There is no value because the object, order, has not been created. - ANSWERS-D) There is no
value because the object, order, has not been created.



Two or more methods in a class may have the same name as long as __________.



A) they have different return types

B) they have different parameter lists

C) they have different return types but the same parameter list

D) You cannot have two methods with the same name. - ANSWERS-B) they have different
parameter lists

, When an object is created, the attributes associated with the object are called __________.



A) instance fields

B) class instances

C) instance methods

D) fixed attributes - ANSWERS-A) instance fields



Methods that operate on an object's fields are called __________.



A) instance variables

B) instance methods

C) public methods

D) private methods - ANSWERS-B) instance methods



The __________ package is automatically imported into all Java programs.



A) java.java

B) java.default

C) java.util

D) java.lang - ANSWERS-D) java.lang



Given the following two-dimensional array declaration, which statement is true?

int[][] numbers = new int[6][9];



A) The numbers array has 54 rows.
$11.99
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

Thumbnail
Package deal
BUNDLE - COSC EXAMS
-
24 2025
$ 268.26 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.
Bensuda Oxford University
Ver perfil
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
847
Miembro desde
3 año
Número de seguidores
445
Documentos
21474
Última venta
2 días hace
ECONOMICS,NURSING,BIOLOGY AND ALL REVISION MATERIALS

DEDICATED TO PROVIDE YOU WITH THE BEST LEARNING MATERIALS THAT WILL IMPROVE YOUR GRADES ,WELCOME TO ALIZGRADES AND LETS DO IT TOGETHER!!! GOODLUCK!!!!!!!

3.7

158 reseñas

5
74
4
24
3
25
2
11
1
24

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