

MCQOPTIONS
Saved Bookmarks
This section includes 78 Mcqs, each offering curated multiple-choice questions to sharpen your Php knowledge and support exam preparation. Choose a topic below to get started.
51. |
Bdadd ( ), bcsub ( ), bcmult ( ), bcdiv ( ), bcmod ( ), bcpow all these functions belongs to |
A. | Base conversion functions |
B. | Trigonometric function |
C. | Arbitrary precision function |
D. | Exponential function |
Answer» D. Exponential function | |
52. |
$multi_array [1] [2] [3] [4] = "I am working on PHP"; will create |
A. | One dimensional array |
B. | 5 dimensional array |
C. | 4 dimensional array |
D. | None of them |
Answer» D. None of them | |
53. |
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 |
Answer» B. Value ( ) function | |
54. |
To rewind pointer at beginning of list |
A. | The reset ( ) function is used |
B. | The rewind ( ) function is used |
C. | The set ( ) function is used |
D. | None of them |
Answer» B. The rewind ( ) function is used | |
55. |
Which one from followings is not a trigonometric function |
A. | sin( ) |
B. | atan ( ) |
C. | Tan ( ) |
D. | pow ( ) |
Answer» E. | |
56. |
End ( ) function jumps pointer |
A. | To the last entry in the list |
B. | To the first entry in the list |
C. | To one step back |
D. | To one step forward |
Answer» B. To the first entry in the list | |
57. |
Array_merge ( ) function merges |
A. | Two arrays |
B. | Three arrays |
C. | More than three |
D. | Merges array with a string |
Answer» B. Three arrays | |
58. |
For changing array with random numbers which function we can use? |
A. | reverse ( ) function |
B. | random ( ) |
C. | array_random_number ( ) |
D. | shuffle ( ) |
Answer» E. | |
59. |
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 |
Answer» C. Specifying indices | |
60. |
Multidimensional arrays are simple arrays that have |
A. | One dimensional |
B. | Many arrays stored in them |
C. | No indexes |
D. | 1 element |
Answer» C. No indexes | |
61. |
You cannot alter an array while you are iterating your array through |
A. | array_walk ( ) function |
B. | each ( ) function |
C. | next ( ) function |
D. | end ( ) function |
Answer» B. each ( ) function | |
62. |
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 |
Answer» D. All of them | |
63. |
Prev ( ) function is used for |
A. | To rewind the pointer at the beginning |
B. | To move the pointer back by one |
C. | To move the pointer at the end |
D. | All of them |
Answer» C. To move the pointer at the end | |
64. |
For finding nonempty elements in array we use |
A. | is_array ( ) function |
B. | sizeof ( ) function |
C. | array_count ( ) function |
D. | count ( ) function |
Answer» E. | |
65. |
Array_pad ( ) takes three arguments, one of them is |
A. | An input array |
B. | A pad size |
C. | Value to pad with |
D. | All of them |
Answer» E. | |
66. |
Queues are similar to stacks but |
A. | It works on FIFO principle |
B. | It works on LIFO principle |
C. | It works on FILO principle |
D. | None of them |
Answer» B. It works on LIFO principle | |
67. |
A function that takes an array and returns a new array, where old values are changed with new keys? |
A. | array_keys ( ) |
B. | array_values ( ) |
C. | array_count_values |
D. | None of them |
Answer» D. None of them | |
68. |
Baseconvert ( ) function converts a |
A. | String argument into floats |
B. | String argument into numbers |
C. | String argument into boolean |
D. | String argument into arrays |
Answer» C. String argument into boolean | |
69. |
Shuffle ( ) function operates directly on its array arguments and changes it, that's why it is called |
A. | Constructive Function |
B. | Destructive function |
C. | Array changing function |
D. | None of them |
Answer» C. Array changing function | |
70. |
Array_flip ( ) function changes keys of an array into |
A. | Integers |
B. | Characters |
C. | Boolean |
D. | Values |
Answer» E. | |
71. |
For changing arrays into strings, which function is used? |
A. | exp ( ) |
B. | explode ( ) |
C. | implode ( ) |
D. | imp ( ) |
Answer» D. imp ( ) | |
72. |
Compact ( ) function is used to create an array from |
A. | Variables |
B. | Values |
C. | Functions |
D. | Both a and b |
Answer» E. | |
73. |
What does explode ( ) function do? |
A. | Converts a string into integers |
B. | Converts a string into arrays |
C. | Finds the length of array |
D. | Finds the length of string |
Answer» C. Finds the length of array | |
74. |
Functions that returns a new array without disturbing their old arguments might be called as |
A. | Destructive function |
B. | Constructive function |
C. | Nondestructive function |
D. | Both a and c |
Answer» E. | |
75. |
Which of them is an abstract data structure (ADT)? |
A. | Stacks |
B. | Functions |
C. | Queues |
D. | Both a and c |
Answer» E. | |
76. |
How many functions are used by PHP to convert between arrays and variables? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
Answer» C. 3 | |
77. |
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 |
Answer» E. | |
78. |
LIFO stands for |
A. | List of Outputs |
B. | Last in First Out |
C. | First in Last Out |
D. | None of them |
Answer» D. None of them | |