Quiz #7. - Ch. 5 (Arrays) - [C Programming I]

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

In zyBooks, an array's size declarator (the value inside the square brackets when an array is declared) could be a constant.

True (A constant, variable, or literal can be used to declare the size of an array.)

Like regular variables, an array can be declared as a constant to prevent changes to the array.

True (Any data type, or array, can be declared as a constant.)

Like regular variables, an array can be declared and initialized at the same time.

True (Any data type, or array, can be initialized.)

A loop counter variable can be used as an array index (subscript) to step through an array.

True (Use a loop to cycle through an array to touch every element.)

An array declared with the statement: int numbers[7]; has _____ elements.

7 (The number inside the square brackets when declaring an array specifies the number of elements in the array.)

The 1st array element has an index of 1.

False (Arrays are zero-based.)

An array can hold a group of values that are of different data types.

False (You cannot mix-an-match data types in an array.)

Each item in an array is known as a(n) _____.

element (Elements are referenced by subscript (or index) numbers.)

The number inside the square brackets of an array, which determines the array element's location within the array, is called the _____ number.

index (Sometimes we refer to an array element as "sub x", where x is the index or subscript number.)

An array's index _____.

must be an integer (How could you reference element 2.3 or 5.7? This is why the index number must be an integer.)


Set pelajaran terkait

Chapter 7: Legal Dimensions of Nursing Practice

View Set

important terms to know for 257 final/quizzes

View Set

Bible Exam 5 (Final) Study Guide

View Set

Chapter 8 Missed Test bank question

View Set

Chapter 2: Determination of Interest Rates

View Set