100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

CISP CH 8 Arrays Question and answers already passed 2025

Rating
-
Sold
-
Pages
11
Grade
A+
Uploaded on
12-07-2025
Written in
2024/2025

CISP CH 8 Arrays Question and answers already passed 2025

Institution
CISP CH 8 Arrays
Course
CISP CH 8 Arrays









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CISP CH 8 Arrays
Course
CISP CH 8 Arrays

Document information

Uploaded on
July 12, 2025
Number of pages
11
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

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

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
LEWISSHAWN55 Yale University
View profile
Follow You need to be logged in order to follow users or courses
Sold
87
Member since
2 year
Number of followers
46
Documents
7240
Last sold
1 month ago
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 reviews

5
5
4
0
3
0
2
1
1
4

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions