New ! Computer Applications MCQ Practise Tests



PHP Function and Array Model Question Paper

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Applications

Time : 02:00:00 Hrs
Total Marks : 60
    10 x 1 = 10
  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. A function in PHP starts with __ 

    (a)

    Function

    (b)

    __def

    (c)

    def

    (d)

    function

  3. For finding non empty elements in array we use

    (a)

    is_array ( ) function

    (b)

    size of ( ) function

    (c)

    array_count ( ) function

    (d)

    array_count ( ) function

  4. 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

  5. As compared to associative arrays vector arrays are much

    (a)

    Faster

    (b)

    Slower

    (c)

    Stable

    (d)

    None of them

  6. What functions count elements in an array?

    (a)

    count

    (b)

    Size of

    (c)

    Array_Count

    (d)

    Count_array

     

  7. A block of segment in a program that performs a specific operation tasks is known as

    (a)

    Arrays

    (b)

    Segments

    (c)

    Functions

    (d)

    All of these

  8. A Function is a type of___________.

    (a)

    sub routine

    (b)

    procedure

    (c)

    Either a or b

    (d)

    None of these

  9. __________ arrays are a key-value pair data structure.

    (a)

    Associative

    (b)

    Indexed

    (c)

    Multi-dimensional

    (d)

    All of these

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

    (a)

    Associative

    (b)

    Indexed

    (c)

    Multi-dimensional

    (d)

    All of these

  11. 5 x 1 = 5
  12. 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

  13. 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

  14. 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

  15. 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

  16. 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 ( )

  17. 5 x 1 = 5
  18. Indexed Arrays

  19. (1)

    Key valued pair

  20. Associative Arrays

  21. (2)

    Array containing one or more array

  22. Multidimensional Arrays

  23. (3)

    Function with arguments

  24. Parameterized function

  25. (4)

    System function

  26. Pre defined function

  27. (5)

    Numeric Index

    9 x 2 = 18
  28. Define Function in PHP.

  29. What is parameterized Function?

  30. What is the syntax for defining a function in PHP?

  31. Usage of Array in PHP.

  32. Define associative array.

  33. Write array Syntax in PHP

  34. What is associative array?

  35. What is Multi-Dimensional Array?

  36. Define function calling?

  37. 4 x 3 = 12
  38. Write the features of built-in Functions.

  39. Differentiate user defined and system defined Functions.

  40. Differentiate Associate array and Multidimensional array.

  41. Write the advantages of functions.

  42. 2 x 5 = 10
  43. Explain Function concepts in PHP.

  44. Explain the Multidimensional Array.

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

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

Write your Comment