This quiz is automatically created to help you get started. It will be created only once.

1. What is the difference between the following two statements?

1] DELETE * FROM [ simple_table_without_indexes_and_keys ]

2] TRUNCATE TABLE [ simple_table_without_indexes_and_keys ]

 

 
 
 
 

2. Which change will make the following PHP script the string “Hello, World!”?

<?php

function myfunction()

{

???????

print $string;

}

myfunction(“Hello, World”);

?>

 
 
 
 

3. What is mysql_pconnect() used for?

 

 
 
 
 

4. How many parameters can the following PHP dunction accept?

<?php

function get_sum()

{

//…………….

}

?>

 
 
 

5. Is it  true that functions in PHP cannot be overloaded or redefined

 
 

6. How do you start a PHP session?

 

 
 
 
 

7. What will the following PHP script display?

<?php

abstract class Foo{

abstract function bar(array $param = NULL)

}

class Moo extends Foo

{

public function bar(array $params)

{

echo count($params);

}

}

$c = new Moo;

$c->bar(array(5));

?>

 
 
 
 

Question 1 of 7