PHP Arrays and Functions Mcqs
Our collections of Multiple choice questions and answers focuses on study of PHP. These questions are chosen from a collection of most authoritative and best reference books on PHP Arrays and Functions. Our aim is to prepare an individual for competitive exams like NTS, GAT, ECAT, University and College entrance exams and various tests and job interviews. One should practice our Mcqs to assimilate PHP Arrays and Functions comprehensively.
PHP Programming Mcqs
- Basics of PHP Mcqs
- PHP Arrays and Functions Mcqs
- PHP Constants and Operators Mcqs
- PHP Controls Structures Mcqs
- PHP Error and Exception Handling Mcqs
- PHP Filesystem Mcqs
- PHP Functions Mcqs
- PHP Objects Tools and Variables Mcqs
- PHP OOP Mcqs
- PHP Session Handling Mcqs
- Strings and Regular Expressions Mcqs
Computer MCQS
Sciences MCQS
2.
Act of adding values into a stack is called
Popping
Polling
Pushing
None
3.
For changing array with random numbers which function we can use?
Reverse ( ) function
Random ( )
Array_random_number ( )
Shuffle ( )
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
4.
Arsort ( ) function same as asort ( ) but
It sorts values in descending order
It sorts values in ascending order
It start sorting values from middle
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
5.
Popping is an act of
Adding values
Taking off values from stack
Transferring values from stack
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
6.
Array_merge ( ) function merges
Two arrays
Three arrays
More than three
Merges array with a string
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
7.
A function that takes an array and returns a new array, where old values are changed with new keys?
Array_keys ( )
Array_values ( )
Array_count_values
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
8.
For reversing an array which function is used?
Reverse ( ) function
Array_rev ( ) function
Array_reverse ( )
Change_array_order ( )
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
9.
Side effect of array_pop ( ) function is
It removes the first element of an array
It removes last element of an array
It modifies an array from middle
All of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
10.
A function that returns keys of its input array in form of new array where keys are stored as values, is a
Return_function ( )
Keys ( ) function
Implode ( ) function
Array_keys ( ) function
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
11.
Which function displays structured information about variables including its type and value?
Asort ( )
Ksort ( )
Sort ( )
Var_dump ( )
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
12.
Array_values ( ) function returns an array containing
New values of array
All the values of array
0 and 1 values of array
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
13.
Queues are similar to stacks but
It works on FIFO principle
It works on LIFO principle
It works on FILO principle
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
14.
Stacks work on principle of
LIFO
FIFO
FILO
None of them
15.
Array_slice ( ) function starts accepting arguments from
First argument
Second argument
Third argument
Both b and c
Answer & Solution
No Solution for this Answer..! Report or Discus this Question