CS 159 Lab 11 True or False

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/30

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:00 AM on 4/8/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

31 Terms

1
New cards

Declaration and definition of an array will not include a default initialization of all elements.

T

2
New cards

If the number of values provided for initialization of an array is fewer than the size of the array then the

remaining elements are zeros.

T

3
New cards

The address operator is necessary in a scanf to accept input for an individual array element when using the

indexing technique.

T

4
New cards

The called function cannot tell whether the value it receives comes from an array, an individual variable, or an

expression that evaluates to the expected type.

T

5
New cards

Indexed references to individual elements of an array are simply calculated addresses where the index value is

added to the address represented by the name of the array.

T

6
New cards

When passing a whole array to the function the total size of the array is necessary in the definition of the called

function.

F

7
New cards

When passing a whole array to the function the total size of the array is not necessary in the definition of the called

function.

T

8
New cards

It is only the starting point of the array in memory that is represented by the name of an array and not the ending

point.

T

9
New cards

The conversion code to use for input or output of an array element depends on the data type of the array.

T

10
New cards

Variables and loops are commonly used together to generate index values to access the elements of an array.

T

11
New cards

Arrays in the C programming language use a one-based index.

F

12
New cards

Arrays in the C programming language use a multi - based index.

T

13
New cards

To pass the whole array to a function you need to use the name of the array followed by empty square braces []

in the function call statement.

F

14
New cards

To pass the whole array to a function you need to use the empty square braces []

in the function call statement.

F

15
New cards

All elements of one array can be assigned to another through the use of the assignment operator and the name of

each array (example: x = y).

F

16
New cards

All elements of one array cannot be assigned to another through the use of the assignment operator and the name of

each array (example: x = y).

T

17
New cards

While the default technique of passing array elements is by value it is possible to pass elements by address using

the & operator (and the * operator in the function being called).

T

18
New cards

If more than one element of an array is passed to a function in a single function call then those elements are

passed by address.

F

19
New cards

If more than one element of an array is passed to a function in a single function call then those elements are

passed by value

T

20
New cards

Using the name of an array in the data list of a single printf function will result in the output of all elements of

the array.

F

21
New cards

To pass the whole array to a function you need to use the empty square braces []

in the function call statement.

F

22
New cards

All arrays sent to a given user-defined function must be of the same defined size.

F

23
New cards

All arrays sent to a given user-defined function may not be of the same defined size.

T

24
New cards

All elements of one array cannot be assigned to another through the use of the assignment operator and the name of each array (example: x = y).

T

25
New cards

Declaration and definition of an array will include a default initialization of all elements.

F

26
New cards

The address operator is not necessary in a scanf to accept input for an individual array element when using the indexing technique.

F

27
New cards

The name of an array is a primary expression whose value is the address of the first and last element in the array.

F

28
New cards

If the number of values provided for initialization of an array is fewer than the size of the array then the remaining elements are assigned a value of zero.

T

29
New cards

When accessing an array element the C language does not check whether the index is within the boundary of an array.

T

30
New cards

Individual elements of an array cannot be passed by address.

F

31
New cards

When passing a whole array to the function the total size of the array is necessary in the definition of the called function.

F