1. Question: Which of the following functions are available to aid you in manipulating the case of characters in a string ?

    A
    strtolower();

    B
    strtoupper();

    C
    ucfirst();

    D
    ucword();

    Note: Not available
    1. Report
  2. Question: 
    <?php
        $url = "http://WWW.EXAMPLE.COM/";
        echo strtolower($url);
    ?>
    Which of the following is correct output for above Statement ?

    A
    B
    www.example.com

    C
    D
    WWW.EXAMPLE.COM

    Note: Not available
    1. Report
  3. Question:  — Creates an array by using one array for keys and another for its values

    A
    Array_Splice

    B
    array_combine

    C
    Array_Fill()

    Note: Not available
    1. Report
  4. Question: Which statement are true about Array?

    A
    An array is traditionally defined as a group of items that share certain characteristics

    B
    As array values can be other arrays, trees and multidimensional arrays are also possible.

    C
    Offer  considerable practical value to the programmer and are used to divide an otherwise complex.

    Note: Not available
    1. Report
  5. Question: <?php     $title = "O'Malley wins the heavyweight championship!";     echo ucwords($title); ?> Which of the following is correct output for above Statement ?

    A
    O'Malley wins the heavyweight championship!

    B
    O'Malley Wins The Heavyweight Championship!

    C
    O'Malley wins the Heavyweight Championship!

    D
    O'MALLEY WINS THE HEAVYWEIGHT CHAMPIONSHIP !

    Note: Not available
    1. Report
  6. Question: Which function use to remove a portion of the array and replace it with something else

    A
    Array_Splice

    B
    array_combine

    C
    Array_Fill()

    Note: Not available
    1. Report
  7. Question: How to remove duplicate from an array?

    A
    Array_Duplicate

    B
    Array_Unique

    C
    Array_Push()

    Note: Not available
    1. Report
  8. Question: Which will output for the following code?
    <?php 
        $sentence = "the newest version of PHP was released today!"; 
        echo ucfirst($sentence);
    ?>

    A
    the newest version of PHP was released today!

    B
    The newest version of PHP was released today!

    C
    THE NEWEST VERSION OF PHP WAS RELEASED TODAY!

    D
    The Newest Version Of Php Was Released Today!

    Note: Not available
    1. Report
  9. Question: <?php $a[0] = 1; $a[1] = 3; $a[2] = 5; $result = count($a); print_r($result); ?> What will be the output?

    A
    3

    B
    Array([0]=>3)

    C
    2

    Note: Not available
    1. Report
  10. Question: $grades = array(42, 98, 100, 100, 43, 12); sort($grades); print_r($grades); What will be the output?

    A
    Array ( [0] => 100 [1] => 100 [2] => 98 [3] => 43 [4] => 42 [5] => 12 )

    B
    Array ( [0] => 12 [1] => 42 [2] => 43 [3] => 98 [4] => 100 [5] => 100 )

    C
    Array ( [12] => 0 [42] => 1 [43] => 2 [98] => 3 [100] => 4 [100] => 5 )

    D
    Array ( [3] => 98 [4] => 100 [5] => 100 [0] => 12 [1] => 42 [2] => 43 )

    Note: Not available
    1. Report
Copyright © 2025. Powered by Intellect Software Ltd