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
Document preview thumbnail
Vista previa 1 fuera de 4 páginas
Examen

Programming Logic and Design, Chapter 6, Review Questions and Answers

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

Programming Logic and Design, Chapter 6, Review Questions and Answers

Vista previa del contenido

Programming Logic and Design,
Chapter 6, Review Questions and
Answers

6. Suppose that you have declared a numeric array named numbers, and two of its
elements are numbers[1] and numbers[4]. You know that .

a. numbers[4] is larger than numbers[1]
b. the array has at least five elements
c. the array has been initialized
d. the two elements are three bytes apart in memory - ANSWER-b.

7. Suppose that you want to write a program that inputs customer data and displays
a summary of the number of customers who owe more than $1000 each, in each of
12 sales regions. Customer data variables include name, zipCode, balanceDue, and
regionNumber. At some point during record processing, you would add to an array
element whose subscript would be represented by .

a. name
b. zipCode
c. balanceDue
d. regionNumber - ANSWER-d.

8. A program contains a seven-element array that holds the names of the days of the
week. At the start of the program, you display the day names using a subscript
named dayNum. You display the same array values again at the end of the program,
where you as a subscript to the array.

a. must use dayNum
b. can use dayNum, but can also use another variable
c. must not use dayNum
d. must use a numeric constant instead of a variable - ANSWER-b.

9. Suppose that you have declared an array as follows: num values[4] = 0, 0, 0, 0.
Which of the following is an allowed operation?

qa. values[2] = 17
b. input values[0]
c. values[3] = values[0] + 10
d. all of the above - ANSWER-d.

10. Suppose that you have declared an array as follows: num values[4] = 0, 0, 0, 0.
Which of the following is an allowed operation?

a. values[4] = 80

Información del documento

Subido en
22 de marzo de 2025
Número de páginas
4
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$13.99

¿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.
lectknancy
3.8
(80)
Vendido
327
Seguidores
27
Artículos
26139
Última venta
4 días 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