New ! Computer Applications MCQ Practise Tests



PHP Function and Array 1 Mark Book Back Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Applications

Time : 00:15:00 Hrs
Total Marks : 10

     Multiple Choice Question

    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. PHP’s numerically indexed array begin with position ___________________.

    (a)

    1

    (b)

    2

    (c)

    0

    (d)

    -1

  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. Identify the parameter in the function.
    < ? php
    function abc (\($\)x)
    {\($\) y =10;}
    abc (5);
    ?>

    (a)

    \($\)x

    (b)

    \($\)y

    (c)

    10

    (d)

    5

  6. Associative arrays are a __________ pair data structure.

    (a)

    Single value

    (b)

    Key value

    (c)

    Double value

    (d)

    String value

  7. In parameterized, the parameters are like __________________.

    (a)

    Variables

    (b)

    Constants

    (c)

    String

    (d)

    Null value

  8. In PHP arrays are of ___________ types.

    (a)

    1

    (b)

    2

    (c)

    3

    (d)

    4

  9. \($\) stud = array (“Roll” ⇒ “12501”, “Name” ⇒ “Hari”); Identify the type of array.

    (a)

    Indexed array

    (b)

    Associative array

    (c)

    Vector array

    (d)

    Multidimensional array

  10. Arrays more than ____ levels deep are hard to manage.

    (a)

    1

    (b)

    2

    (c)

    3

    (d)

    Multiple

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

Reviews & Comments about 12th Standard Computer Applications English Medium - PHP Function and Array 1 Mark Book Back Question Paper and Answer Key 2022 - 2023

Write your Comment