PHP Function and Array Model Question Paper

12th Standard EM

    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 which starts with _________ (double underscore) is know as...

    (a)

    Magic Function

    (b)

    Inbuilt Function

    (c)

    Default Function

    (d)

    User Defined Function

  3. For finding nonempty elements in array we use

    (a)

    is_array ( ) function

    (b)

    sizeof ( ) 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)

    Sizeof

    (c)

    Array_Coun

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

    ()

    700

  13. PHP functions are dived into _____ types.

    ()

    three

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

    ()

    function

  15. The parameter is also called as __________.

    ()

    arguments

  16. Array defines with the keyword___________.

    ()

    array ( )

  17. 5 x 1 = 5
  18. Indexed Arrays

  19. (1)

    Numeric Index

  20. Associative Arrays

  21. (2)

    System function

  22. Multidimensional Arrays

  23. (3)

    Key valued pair

  24. Parameterized function

  25. (4)

    Function with arguments

  26. Predefined function

  27. (5)

    Array containing one or more array

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

  29. What is parameterized Function.

  30. Write Syntax of the 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 System define Functions.

  39. Differentiate user define and system define 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.

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

TN 12th Standard EM Computer Applications free Online practice tests

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

Write your Comment