php programming language MCQ : Arrays -Sorting Link3

Php programming language MCQ : Arrays: Link3

Arrays MCQ

       Are you worried about the answers to PHP programming-Arrays-Identifying elements of an array, Storing data in arrays, Multidimensional arrays, Extracting multiple values, Converting between arrays and variables, Traversing arrays, Sorting questions? We have arranged the Show Answer button under the each question. Candidates can click on it to know the right option among the given alternatives. Furthermore, the applicants can check our web portal @ www.totalmcq.com to take part in more MCQ on various subject. Wish, the given information about the Arrays MCQ will helpful to the advance and can learn the various types of questions and answers.


Q.1. PHP arrays are also called as--------

A. Vector arrays                                                              B. Perl arrays
C. Hashesfunction                                                       D. All of the above

Q.2. When we simply want iteration through looping an array values we can use---------

A. current ( )                                                              B. foreach ( )
C. next ( ) function                                                       D. None of the above

Q.3. count ( ) function is identical to -------.

A. is_array ( ) function B. in_array ( ) function
C. sizeof ( )
D. None of the above

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

A. Argument is an array
B. Argument is number type
C. Argument is character type
D. None of the above

Q.5.An array is a collection of------.

A. Strings
B. Indexed variables
C. Characters
D. Functions

Q.6. Which function take two arguments and returns true if element contained as a value of an array?

A. is_array ( ) function
B. in_array ( ) function
C. count ( ) function
D. isset ( ) function

Q.7. There are how many ways to create an array in PHP script

A. 1
B. 2
C. 3
D. 4

Q.8. For purpose of iteration Foreach is a ---------.

A. Function
B. language construct
C. Both A and B
D. loop

Q.9. 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 the above

Q.10. Unlike vector arrays of C and C++ PHP arrays can store ----------.

A. Same type of data                                                                                B. Varied types of data
C. Small amount of data                                                                             D. All of the above