100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COSC Final Exam 1336 Questions with correct solutions $8.49   Add to cart

Exam (elaborations)

COSC Final Exam 1336 Questions with correct solutions

 13 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...

[Show more]

Preview 1 out of 3  pages

  • August 25, 2024
  • 3
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COSC 1336
  • COSC 1336
avatar-seller
Freshy
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

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

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

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.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75759 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$8.49
  • (0)
  Add to cart