advanced array functions

MCQsQuestion.com has 5 Question/Answers about Topic advanced array functions

Compact ( ) function is used to create an array from

Compact ( ) function is used to create an array from
  • A. Variables
  • B. Values
  • C. Functions
  • D. Both A and B
  • Correct Answer: Option D

Array_splice function is same as array_slice but it starts taking arguments from

Array_splice function is same as array_slice but it starts taking arguments from
  • A. First argument
  • B. Second argument
  • C. Third argument
  • D. Fourth argument
  • Correct Answer: Option D

Popping is an act of

Popping is an act of
  • A. Adding values
  • B. Taking off values from stack
  • C. Transferring values from stack
  • D. None of them
  • Correct Answer: Option B

A function that returns keys of its input array in form of new array where keys are stored as values, is a

A function that returns keys of its input array in form of new array where keys are stored as values, is a
  • A. return_function ( )
  • B. keys ( ) function
  • C. implode ( ) function
  • D. array_keys ( ) function
  • Correct Answer: Option D

Array_slice ( ) function starts accepting arguments from

Array_slice ( ) function starts accepting arguments from
  • A. First argument
  • B. Second argument
  • C. Third argument
  • D. Both B and C
  • Correct Answer: Option D