Monday, July 8, 2013

Online PHP Test-2


Que.1. Which syntax is default syntax in PHP?

A:    < ?php ?>
B:    <% %>
C:    < ? ?>
D:    < script language="php">

Right Answer: A

Que.2. Which of the following delimiter syntax is PHP's default delimiter syntax

A:    <? php ?>
B:    <% %>
C:    <? ?>
D:    <script language="php"> </script>

Right Answer: A

Que.3. Which of the following delimiter is default in PHP?

A:    <?php ?>
B:    <% %>
C:    <? ?>
D:    <script language="php"> </script>

Right Answer: A

Que.4. What is the expansion of LAMP?

A:    Linux And MySQL PHP
B:    Linux Apache MySQL PHP

Right Answer: B

Que.5. Which operator is used to concatenate two strings in PHP?

A:    dot operator (.)
B:    plus operator (+)

Right Answer: A

Que.6. Whether One-line comment begin with pound sing(#) in PHP?

A:    True
B:    False
C:    None of above

Right Answer: A

Que.7. Which of following comments is supported by PHP.

A:    Single line c++ syntax - //
B:    Shell syntax - #
C:    Both of above
D:    None of above

Right Answer: C

Que.8. What PHP stands for?

A:    Hypertext Preprocessor
B:    Pre Hypertext Processor
C:    Pre Hyper Processor
D:    PHP: Hypertext Preprocessor

Right Answer: D

Que.9. There are three different kind of arrays:

A:    Numeric array, String array, Multidimensional array
B:    Numeric array, Associative array, Dimensional array
C:    Numeric array, Associative array, Multidimensional array
D:    Const array, Associative array, Multidimensional array

Right Answer: C

Que.10. PHP is __________________.

A:    Partially cross-platform
B:    Truly cross-platform
C:    None of above

Right Answer: B

Que.11. Can we embedded directly PHP code into XHTML document?

A:    FALSE
B:    TRUE

Right Answer: B

Que.11. Can we embedded directly PHP code into XHTML document?

A:    FALSE
B:    TRUE

Right Answer: B

Que.13. Variables always start with a ________ in PHP.

A:    Pond-sign
B:    Yen-sign
C:    Dollar-sign
D:    Euro-sign

Right Answer: C

Que.14. Which of the following function is used to change the root directory in PHP?

A:    choot()
B:    change_root()
C:    cd_root()
D:    cd_r()

Right Answer: A

Que.15. Which of the following tags in PHP is not a valid way to begin and end a PHP code block?

A:    <?php ?>
B:    <! -->
C:    <? ?>
D:    <script language="php"></script>

Right Answer: B

Que.16. What will the ?getdate() function returns in PHP?

A:    An integer
B:    A floating-point number
C:    An array
D:    A string
E:    A Boolean

Right Answer: C

Que.17. What is full form of PHP?

A:    PreHypertextProcessor
B:    HypertextPreprocessor
C:    Hypertext Postprocessor
D:    PostHypertextProcessor

Right Answer: B

Que.18. The left association operator % is used in PHP for __________.

A:    percentage
B:    bitwise or
C:    division
D:    modulus

Right Answer: D

Que.19. Which one is right in PHP?

A:    <?php var_name = $value;?>
B:    <?php $var_name = $value; ?>
C:    <?php $var_name = value;?>
D:    <?php var_name = value;?>

Right Answer: B

Que.20. SQL is not case sensitive. DELETE is the same as delete.

A:    TRUE
B:    FALSE

Right Answer: A