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

CISP CH 8 Arrays Question and answers already passed 2025

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

CISP CH 8 Arrays Question and answers already passed 2025

Institución
CISP CH 8 Arrays
Grado
CISP CH 8 Arrays









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

Escuela, estudio y materia

Institución
CISP CH 8 Arrays
Grado
CISP CH 8 Arrays

Información del documento

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

Temas

Vista previa del contenido

CISP CH 8 Arrays Question and
answers already passed 2025
8.1 Can you store a mixture of data types in an array? - correct answer Arrays
are specifically designed for storing and processing lists of data. Like a
variable, an array is a named storage location in memory. Unlike a variable,
an array can hold a group of values. All of the values in an array must be the
same data type. You can have an array of Integers, an array of Reals, or an
array of Strings, but you cannot store a mixture of data types in an array.


8.1 What is an array size declarator? - correct answer Declare Integer
units[10]


Notice that this statement looks like a regular Integer variable declaration
except for the number inside the brackets. The number inside the brackets,
called a size declarator, specifies the number of values that the array can
hold. This pseudocode statement declares an array named units that can hold
10 integer values. In most programming languages, an array size declarator
must be a nonnegative integer.


Declare Real salesAmounts[7]


This statement declares an array named salesAmounts that can hold 7 real
numbers.


Declare String names[50]


This statement declares an array that can hold 50 strings. The name of the
array is names.

, 8.1 In most languages, can the size of an array be changed while the program
is running? - correct answer In most languages, an array's size cannot be
changed while the program is running. If you have written a program that uses
an array and then find that you must change the array's size, you have to
change the array's size declarator in the source code. Then you must
recompile the program (or rerun the program if you are using an interpreted
language) with the new size declarator. To make array sizes easier to
maintain, many programmers prefer to use named constants as array size
declarators.


Constant Integer SIZE = 10
Declare Integer units[SIZE]


Many array processing techniques require you to refer to the array's size.
When you use a named constant as an array's size declarator, you can use
the constant to refer to the size of the array in your algorithms. If you ever
need to modify the program so the array is a different size, you need only to
change the value of the named constant.


8.1 What is an array element? - correct answer The storage locations in an
array are known as elements. In memory, an array's elements are usually
located in consecutive memory locations. Each element in an array is
assigned a unique number known as a subscript.


Constant Integer SIZE = 5 Declare Integer numbers[SIZE]


The numbers array has five elements. The elements are assigned the
subscripts 0 through 4.


8.1 What is a subscript? - correct answer (Subscripts are also known as
indexes.) Subscripts are used to identify specific elements in an array. In most
$19.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

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.
LEWISSHAWN55 Yale University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
87
Miembro desde
2 año
Número de seguidores
46
Documentos
7240
Última venta
1 mes hace
THE SHOP FOR EXAMS,TESTBANKS,AQA, WHAT YOU STUDY AND WISH TO PASS THEN COME AND CHECK FOR YOUR NEED ......

WANT TO PASS YOUR EXAMS??? IF YES CHECK OUT MY ACCOUNT FOR ALL YOUR EXAMS NEED BE IT NURSING,REALTORS, HUMAN RESOURCE,MATHS,BIOLOGY,WGU,ICT, YOU BETTER CHECK MY ACCOUNT FOR MORE IF YOU GET WHAT U WANT THEN FEEL FREE TO PURCHASE AT A BETTER PRICE........

3.1

10 reseñas

5
5
4
0
3
0
2
1
1
4

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