COSC Final Exam 1336 Questions with correct solutions
12 views 0 purchase
Course
COSC 1336
Institution
COSC 1336
COSC Final Exam 1336
An array is a(n) ____ of values in computer memory. - Answer- list
Array elements all have the same ____ in common. - Answer- data type
The number of elements in an array is called the ____ of the array. - Answer- size
A(n) ____ is another name for a subscript. - An...
COSC Final Exam 1336
An array is a(n) ____ of values in computer memory. - Answer- list
Array elements all have the same ____ in common. - Answer- data type
The number of elements in an array is called the ____ of the array. - Answer- size
A(n) ____ is another name for a subscript. - Answer- index
All array elements have the same group ____. - Answer- name
In all languages, subscript values must be sequential ____. - Answer- integers
Suppose that you have declared a numeric array named numbers, and two of its
elements are numbers[1] and numbers[5]. You know that ____. - Answer- there are
exactly three elements between those two elements
A program contains an array that holds all the names of the days of the week. Which
of the following is true? - Answer- the highest subscript is 6
Providing array values is sometimes called ____. - Answer- populating the array
An array can be used to replace ____. - Answer- nested decisions
The true benefit of using an array lies in your ability to use a ____ as a subscript to
the array. - Answer- variable
Named ____ hold values that do not change during a program's execution - Answer-
constants
Besides making your code easier to modify, using a ____ makes the code easier to
understand. - Answer- named constant
One advantage to using a named constant is that the statement becomes ____. -
Answer- self-documenting
When you search through a list from one end to the other, you are performing a
____. - Answer- linear search
If you declare a variable to be Boolean, you can set its value to ____. - Answer- true
or false
Which statement is true of arrays? - Answer- Only whole numbers can be used as
array subscripts.
A ____ relates parallel arrays. - Answer- subscript
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Freshy. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $8.49. You're not tied to anything after your purchase.