Filters
Question type

Study Flashcards

Aside from its main function, the array_splice() function also renumbers the indexes in the array.

A) True
B) False

Correct Answer

verifed

verified

The in_array() function returns a Boolean value of TRUE if a value exists in an array.

A) True
B) False

Correct Answer

verifed

verified

The array_values() function operates directly on an array.

A) True
B) False

Correct Answer

verifed

verified

You use the ____ function to return a portion of an array and assign it to another array.


A) array_slice()
B) array_set()
C) array_assign()
D) array_key()

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

The array_key_exists() function determines whether a given index or key exists.

A) True
B) False

Correct Answer

verifed

verified

Run the ____________________ function to renumber an indexed array's element.

Correct Answer

verifed

verified

array_valu...

View Answer

Instead of appending one array to another you can merge two or more arrays with the array_merge() function.

A) True
B) False

Correct Answer

verifed

verified

The array_unshift() function adds ____ element(s) to the beginning of the array.


A) one or more
B) two or more
C) no new
D) only one

E) A) and B)
F) All of the above

Correct Answer

verifed

verified

You can create ____ that consist of multiple indexes or keys.


A) indexed arrays
B) two-dimensional arrays
C) multidimensional arrays
D) key arrays

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

To perform a reverse sort on an associative array by key and maintain the existing keys, use the _____ function.


A) ksort()
B) krsort()
C) uk_sort()
D) sort()

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

You can use the unset() function to remove array elements and other variables.

A) True
B) False

Correct Answer

verifed

verified

The ____________________ function moves the internal array pointer to the last element in an array.

Correct Answer

verifed

verified

The array_diff() function returns an array of elements that exist in one array but not in any other arrays to which it is compared.

A) True
B) False

Correct Answer

verifed

verified

You would use the ____________________ function t return an array of the elements that are common to all arrays that are compared.

Correct Answer

verifed

verified

array_inte...

View Answer

The ____ function returns an array of elements that exist in one array but not in any other arrays to which it is compared.


A) array_compare()
B) array_diff()
C) array_search()
D) array_match()

E) All of the above
F) A) and D)

Correct Answer

verifed

verified

You use the array_unshift() function to remove the first element from the beginning of an array.

A) True
B) False

Correct Answer

verifed

verified

The array_shift() function removes the ____ element from the beginning of an array.


A) last
B) first
C) second
D) middle

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

The ____ function removes duplicate elements from an array.


A) array_dup()
B) array_values()
C) array_unique()
D) array()

E) A) and D)
F) None of the above

Correct Answer

verifed

verified

The array_unique() function removes ____________________ elements from an array.

Correct Answer

verifed

verified

The____________________ function returns a Boolean value of TRUE if a given value exists in an array.

Correct Answer

verifed

verified

Showing 41 - 60 of 83

Related Exams

Show Answer