1. Question: Which of the following tags are an acceptable way to begin a PHP Code block?

    A
    <SCRIPT LANGUAGE="php">

    B
    <!

    C
    <%

    D
    <?php

    E
    <?

    Note: Not available
    1. Report
  2. Question: What is the output of the following?
    <?php
    
    $a = 010;
    $b = 0xA;
    $c = 2;
    
    print $a + $b + $c;
    
    ?>

    A
    20

    B
    22

    C
    18

    D
    $a is an invalid value

    E
    2

    Note: Not available
    1. Report
  3. Question: What is the output of the following?
    <?php
    
    $a = 20;
    
    function myfunction($b) {
    	$a = 30;
    	
    	global $a, $c;
    	return $c = ($b + $a);
    }
    
    print myfunction(40) + $c;
    
    ?>

    A
    120

    B
    Syntax Error

    C
    60

    D
    70

    Note: Not available
    1. Report
  4. Question: To ensure that a given object has a particular set of methods, you must provide a method list in the form of an ________ and then attach it as part of your class using the ________keyword.

    A
    array, interface

    B
    interface, implements

    C
    interface, extends

    D
    instance, implements

    E
    access-list, instance

    Note: Not available
    1. Report
  5. Question: What is ASP style script delimiter?

    A
    <? ... ?>

    B
    <% ... %>

    C
    <?php ... ?>

    D
    none

    Note: Not available
    1. Report
  6. Question: Which of the following is short tag in PHP?

    A
    <? ... ?>

    B
    <% ... %>

    C
    <?= ... ?>

    D
    none

    Note: Not available
    1. Report
  7. Question: Which function is used to get details server information using PHP?

    A
    php_server_info()

    B
    phpinfo()

    C
    php_info()

    D
    server_info()

    Note: Not available
    1. Report
  8. Question: What is the principal purpose of PEAR?

    A
    and officially sanctioned library of open-source component contributed by PHP architects

    B
    and officially sanctioned library of documentation standard component contributed by PHP architects

    C
    and officially sanctioned library of web services product component contributed by PHP architects

    D
    All

    Note: Not available
    1. Report
  9. Question: Which of the following statement is correct?

    A
    A static variable does not lose its value when the function exits.

    B
    A static variable loses its value when the function exits.

    C
    A static variable keeps data always.

    D
    None

    Note: Not available
    1. Report
  10. Question: What will be the output?
    <?php
      $value=1
     do{
     $count=3;
     $value=$value+2;
     $value=$count*$value;
     } while ($count >=12);
     echo “value=$value”;
     ?>

    A
    Line 6 will show an error

    B
    Line 8 will show an error

    C
    The output is 12

    D
    The output is 9

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