New ! Computer Applications MCQ Practise Tests



PHP Function and Array Model Questions

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Applications

Time : 01:00:00 Hrs
Total Marks : 50
    5 x 1 = 5
  1. Which one of the following is the right way of defining a function in PHP?

    (a)

    function { function body }

    (b)

    data type functionName(parameters) { function body }

    (c)

    functionName(parameters) { function body }

    (d)

    function fumctionName(parameters) { function body }

  2. Indices of arrays can be either strings or numbers and they are denoted as

    (a)

    $my_array {4}

    (b)

    $my_array [4]

    (c)

    $my_array | 4 |

    (d)

    None of them

  3. PHP arrays are also called as

    (a)

    Vector arrays

    (b)

    Perl arrays

    (c)

    Hashes

    (d)

    All of them

  4. ______ stores more than one value of same data type in single array variable.

    (a)

    Arrays

    (b)

    Function

    (c)

    Indexed array

    (d)

    Multidimensional array

  5. A _________ array is an array containing one or more arrays.

    (a)

    Associative

    (b)

    Indexed

    (c)

    Multi-dimensional

    (d)

    All of these

  6. 5 x 1 = 5
  7. PHP has over _________ functions built in that perform different tasks.

    A PHP Error was encountered

    Severity: Warning

    Message: A non-numeric value encountered

    Filename: material/details.php

    Line Number: 1002

    ()

    700

  8. PHP functions are dived into _____ types.

    A PHP Error was encountered

    Severity: Warning

    Message: A non-numeric value encountered

    Filename: material/details.php

    Line Number: 1002

    ()

    three

  9. A user-defined Function declaration begins with the keyword __________

    A PHP Error was encountered

    Severity: Warning

    Message: A non-numeric value encountered

    Filename: material/details.php

    Line Number: 1002

    ()

    function

  10. The parameter is also called as __________.

    A PHP Error was encountered

    Severity: Warning

    Message: A non-numeric value encountered

    Filename: material/details.php

    Line Number: 1002

    ()

    arguments

  11. Array defines with the keyword___________.

    A PHP Error was encountered

    Severity: Warning

    Message: A non-numeric value encountered

    Filename: material/details.php

    Line Number: 1002

    ()

    array ( )

  12. 5 x 2 = 10
  13. Define Array in PHP.

  14. Usage of Array in PHP.

  15. List out the types of array in PHP.

  16. What is associative array?

  17. 5 x 3 = 15
  18. Differentiate user defined and system defined Functions.

  19. Write Short notes on Array.

  20. Differentiate Associate array and Multidimensional array.

  21. Write the rules for parameters.

  22. Write the advantages of functions.

  23. 3 x 5 = 15
  24. Explain Function concepts in PHP.

  25. Discuss in detail about User define Functions with a suitable example.

  26. Explain the Multidimensional Array.

*****************************************

Reviews & Comments about 12th Standard Computer Applications Chapter 4 PHP Function and Array Model Question Paper

Write your Comment