PHP multidimensional arrays

MCQsQuestion.com has 7 Question/Answers about Topic PHP multidimensional arrays

Indices of arrays can be either strings or numbers and they are denoted as

Indices of arrays can be either strings or numbers and they are denoted as
  • A. $my_array {4}
  • B. $my_array [4]
  • C. $my_array| 4 |
  • D. None of them
  • Correct Answer: Option B

Arrays that can store their values in association with unique keys or indices are called

Arrays that can store their values in association with unique keys or indices are called
  • A. Associative arrays
  • B. Key based arrays
  • C. indices based arrays
  • D. All of them
  • Correct Answer: Option A

Creating a new array from specification of its elements and associated keys, is known as

Creating a new array from specification of its elements and associated keys, is known as
  • A. Direct assignment
  • B. Array ( ) construct
  • C. Specifying indices
  • D. All of them
  • Correct Answer: Option B

Is_array ( ) function that takes a single argument of any type and returns a true value if

Is_array ( ) function that takes a single argument of any type and returns a true value if
  • A. Argument is character type
  • B. Argument is number type
  • C. Argument is an array
  • D. none of them
  • Correct Answer: Option C

User defined functions or may be built-in functions that’s make an array via methods internal to PHP is called as

User defined functions or may be built-in functions that’s make an array via methods internal to PHP is called as
  • A. Assignment arrays
  • B. Construct arrays
  • C. Functions returning arrays
  • D. All of them
  • Correct Answer: Option C

A function that takes two integers as arguments and returns an array filled with all integers between them, is known as

A function that takes two integers as arguments and returns an array filled with all integers between them, is known as
  • A. Range ( ) function
  • B. Value ( ) function
  • C. Limit ( ) function
  • D. None of them
  • Correct Answer: Option A

Other than index values an array can be retrieved by a function that is called as

Other than index values an array can be retrieved by a function that is called as
  • A. Retrieve ( ) function
  • B. Array_retrive ( ) function
  • C. list ( ) function
  • D. Array_call ( ) function
  • Correct Answer: Option C